Tross
ECLINICALWORKS

Submit Smart Form Phq2

Submit smart form phq2 in eClinicalWorks

POSThttps://api.ontross.com/api/integrations/ecw/submit-smart-form-phq2
Request Fields
input
object
required
Input object.
input.patientId
string
required
Patient id
input.encounterId
string
required
Encounter id
input.q1_answer
string
required
Little interest or pleasure in doing things? One of: Not at all, Several days, More than half the days, Nearly every day, Declined to specify
Accepted values
Not at allSeveral daysMore than half the daysNearly every dayDeclined to specify
input.q2_answer
string
required
Feeling down, depressed, or hopeless? One of: Not at all, Several days, More than half the days, Nearly every day, Declined to specify
Accepted values
Not at allSeveral daysMore than half the daysNearly every dayDeclined to specify
auth_id
string
required
Auth id
Output Fields
submitted
boolean
Submitted
Code
curl --request POST \
  --url https://api.ontross.com/api/integrations/ecw/submit-smart-form-phq2 \
  --header 'X-API-Key: REPLACE_KEY_VALUE' \
  --header 'content-type: application/json' \
  --data '{"input":{"patientId":"string_id","encounterId":"string_id","q1_answer":"Not at all","q2_answer":"Not at all"},"auth_id":"auth_uuid_here"}'
Request BODY
{
  "input": {
    "patientId": "string_id",
    "encounterId": "string_id",
    "q1_answer": "Not at all",
    "q2_answer": "Not at all"
  },
  "auth_id": "auth_uuid_here"
}