Tross
ECLINICALWORKS

Write Social History

Write social history in eClinicalWorks

POSThttps://api.ontross.com/api/integrations/ecw/write-social-history
Request Fields
input
object
required
Input object.
input.patientId
string
required
eClinicalWorks patient identifier for the current chart.
input.encounterId
string
required
Encounter 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
false
auth_id
string
required
Auth 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"
}