Tross
Demo dataBook a demo
ECLINICALWORKS

Write treatment notes

Write treatment notes for a diagnosis.

POSThttps://preview.ontross.com/api/integrations/ecw/write-treatment-notes
Request Fields
input.patientId
string
required
Patient chart being read or written, from fetch-patients.
Example
"407069"
input.icd10Code
string
required
Already-assessed diagnosis row the treatment note attaches to.
Example
"E11.00"
input.encounterId
string
required
Encounter being read or written, from fetch-appointments.
Example
"1870494"
input.date
string
Picks the encounter or schedule day when encounterId is omitted.
Example
"03/14/2026"
input.treatmentNotes
string
Treatment plan text saved against the diagnosis row.
Example
"Continue metformin and recheck A1c in three months."
input.internalNotes
string
Internal note saved on the same Treatment row as treatmentNotes.
Example
"Discussed metformin titration with the care team."
input.append_input
boolean
Appends text after the stored note instead of replacing it.
Example
true
Default
false
auth_id
string
required
Saved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
Example
"00000000-0000-4000-8000-000000000000"
Output Fields
treatmentNotesWritten
string
Treatment text eCW stored after the write.
Example
"Continue metformin and recheck A1c in three months."
writeSuccess
boolean
Whether eCW accepted the chart write.
Example
true
Code
curl --request POST \
  --url https://preview.ontross.com/api/integrations/ecw/write-treatment-notes \
  --header 'X-API-Key: REPLACE_KEY_VALUE' \
  --header 'content-type: application/json' \
  --data '{"input":{"patientId":"407069","date":"03/14/2026","icd10Code":"E11.00","treatmentNotes":"Continue metformin and recheck A1c in three months.","internalNotes":"Discussed metformin titration with the care team.","encounterId":"1870494","append_input":true},"auth_id":"auth_uuid_here"}'
Request BODY
{
  "input": {
    "patientId": "407069",
    "date": "03/14/2026",
    "icd10Code": "E11.00",
    "treatmentNotes": "Continue metformin and recheck A1c in three months.",
    "internalNotes": "Discussed metformin titration with the care team.",
    "encounterId": "1870494",
    "append_input": true
  },
  "auth_id": "auth_uuid_here"
}
Response BODY
{
  "id": "string",
  "workflow_id": "string",
  "auth_id": "string",
  "status": "string",
  "input": {},
  "output": {
    "treatmentNotesWritten": "Continue metformin and recheck A1c in three months.",
    "writeSuccess": true
  },
  "files": null,
  "created_at": "2019-08-24T14:15:22Z",
  "started_at": "2019-08-24T14:15:22Z",
  "completed_at": "2019-08-24T14:15:22Z"
}