ECLINICALWORKS
Write Social History
Write social history in eClinicalWorks
POSThttps://api.ontross.com/api/integrations/ecw/write-social-history
Request Fields
input
object
requiredInput object.
input.patientId
string
requiredeClinicalWorks patient identifier for the current chart.
input.encounterId
string
requiredEncounter identifier where the Social History note will be written.
input.socialHistoryNotes
string
Free-text Social History note content to write. Social History has no note categories.
Default
""input.append_input
boolean
If true, append socialHistoryNotes to existing note content. If false, write only the provided socialHistoryNotes value.
Default
falseauth_id
string
requiredAuth id
Output Fields
writeSuccess
boolean
Write success
Code
curl --request POST \
--url https://api.ontross.com/api/integrations/ecw/write-social-history \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"patientId":"100001","encounterId":"200001","socialHistoryNotes":"Lives with family and reports regular weekly exercise.","append_input":false},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"patientId": "100001",
"encounterId": "200001",
"socialHistoryNotes": "Lives with family and reports regular weekly exercise.",
"append_input": false
},
"auth_id": "auth_uuid_here"
}