ECLINICALWORKS
Submit Drug Screening
Submit drug screening in eClinicalWorks
POSThttps://api.ontross.com/api/integrations/ecw/submit-drug-screening
How to complete this screening
Required
patientId, encounterId, and used_drugs_in_past_12_months.
Answer and comments
Use Yes or No. Optionally send comments; eCW saves it with the answer in Social History → Drugs.
Use the exact values listed below. The request body on the right is a valid copy-and-paste starting point.
Request Fields
input
object
requiredAnswer eCW's Social History Drugs screening question.
input.patientId
string
requiredeClinicalWorks patient identifier for the current chart.
input.encounterId
string
requiredEncounter identifier where the Drugs screening will be saved.
input.used_drugs_in_past_12_months
string
requiredAnswer to: Have you used drugs other than those for medical reasons in the past 12 months?
Accepted values
YesNoinput.comments
string
Optional free-text comment saved with the Drugs screening answer.
Default
""auth_id
string
requiredAuth id
Output Fields
submitted
boolean
Submitted
Code
curl --request POST \
--url https://api.ontross.com/api/integrations/ecw/submit-drug-screening \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"patientId":"patient_id","encounterId":"encounter_id","used_drugs_in_past_12_months":"No","comments":"Patient denies non-medical drug use."},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"patientId": "patient_id",
"encounterId": "encounter_id",
"used_drugs_in_past_12_months": "No",
"comments": "Patient denies non-medical drug use."
},
"auth_id": "auth_uuid_here"
}