ECLINICALWORKS
Fetch asc encounters patient
List ambulatory surgery encounters for a patient.
POSThttps://preview.ontross.com/api/integrations/ecw/fetch-asc-encounters-patient
Request Fields
input.patientId
string
requiredPatient chart being read or written, from fetch-patients.
Example
"407069"auth_id
string
requiredSaved 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
encounters
array
The encounter or appointment rows this call returned.
encounters[].nEncID
integer
eCW encounter id for this surgical center visit.
Example
782416encounters[].strDate
string
Visit date as eCW formats it for display.
Example
"09/18/2025"encounters[].strStartTime
string
Visit start time as eCW formats it.
Example
"08:00 AM"encounters[].strProcedureNames
string
Procedure names on this surgical center encounter.
Example
"Cataract extraction with intraocular lens implant"encounters[].bChildEncFetched
boolean
Whether eCW already loaded this encounter's child encounters.
Example
falseencounters[].nDischargeInstEncID
integer
Encounter holding the discharge instructions for this case.
Example
782417encounters[].opRecEncList
string
Raw eCW operative record encounter list, may be null.
Example
"[982433]"encounters[].dischargeEncDetails
string
Discharge instruction encounter details, null unless eCW loaded them.
Example
"{\"nEncID\":982432}"encounters[].bIsEncOpen
boolean
Whether the ASC encounter is still open.
Example
trueencounters[].formStatus
string
Status of the ASC encounter's form completion.
Example
"Incomplete"encounters[].childEncDetails
string
Child encounter details, null unless eCW loaded them.
Example
"[{\"nEncID\":982433}]"encounters[].reason
string
Why the call or hospitalization happened, saved as row text.
Example
"Cataract surgery"encounters[].status
string
Whether the allergy is active or inactive on the chart.
Example
"Open"encounters[].statusColor
string
Color eCW uses for this status in the list.
Example
"#008000"encounters[].claimReq
integer
Nonzero when the ASC encounter requires a claim.
Example
1encounters[].cancledVisitCode
string
Cancellation visit code, misspelled here exactly as eCW spells it.
Example
"CANCELLED"Code
curl --request POST \
--url https://preview.ontross.com/api/integrations/ecw/fetch-asc-encounters-patient \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"patientId":"407069"},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"patientId": "407069"
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"encounters": [
{
"nEncID": 782416,
"strDate": "09/18/2025",
"strStartTime": "08:00 AM",
"strProcedureNames": "Cataract extraction with intraocular lens implant",
"bChildEncFetched": false,
"nDischargeInstEncID": 782417,
"opRecEncList": "[982433]",
"dischargeEncDetails": "{\"nEncID\":982432}",
"bIsEncOpen": true,
"formStatus": "Incomplete",
"childEncDetails": "[{\"nEncID\":982433}]",
"reason": "Cataract surgery",
"status": "Open",
"statusColor": "#008000",
"claimReq": 1,
"cancledVisitCode": "CANCELLED"
}
]
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}