ECLINICALWORKS
Submit Smart Form Auditc
Submit smart form auditc in eClinicalWorks
POSThttps://api.ontross.com/api/integrations/ecw/submit-smart-form-auditc
How to complete this screening
Required
patientId, encounterId, and drank_in_past_year.
If the answer is No
Omit all follow-up fields. eCW records a negative screen with a score of 0.
If the answer is Yes
All three follow-ups are required:
drinking_frequencytypical_drinkssix_or_more_drinks_frequency
Calculated by eCW
Do not send a date, score, interpretation, or patient sex. The live form supplies them.
Use the exact values listed below. The request body on the right is a valid copy-and-paste starting point.
Request Fields
input
object
requiredAnswers for eCW's AUDIT-C (Standard) Smart Form.
input.patientId
string
requiredPatient id
input.encounterId
string
requiredEncounter id
input.drank_in_past_year
string
requiredDid the patient have a drink containing alcohol in the past year?
Accepted values
YesNoinput.drinking_frequency
string
Drinking frequency
Accepted values
NeverMonthly or less2 to 4 times a month2 to 3 times a weekDaily or almost dailyDeclined to specifyinput.typical_drinks
string
Typical drinks
Accepted values
1 or 2 drinks3 or 4 drinks5 or 6 drinks7 to 9 drinks10 or more drinksDeclined to specifyinput.six_or_more_drinks_frequency
string
Six or more drinks frequency
Accepted values
NeverLess than monthly2 to 4 times a month2 to 3 times per week4 or more times a weekDeclined to specifyauth_id
string
requiredAuth id
Output Fields
submitted
boolean
Submitted
score
integer
Score
interpretation
string
Interpretation
Code
curl --request POST \
--url https://api.ontross.com/api/integrations/ecw/submit-smart-form-auditc \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"patientId":"patient_id","encounterId":"encounter_id","drank_in_past_year":"Yes","drinking_frequency":"Monthly or less","typical_drinks":"1 or 2 drinks","six_or_more_drinks_frequency":"Never"},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"patientId": "patient_id",
"encounterId": "encounter_id",
"drank_in_past_year": "Yes",
"drinking_frequency": "Monthly or less",
"typical_drinks": "1 or 2 drinks",
"six_or_more_drinks_frequency": "Never"
},
"auth_id": "auth_uuid_here"
}