ECLINICALWORKS
Fetch patient medications
List current medications for an encounter.
POSThttps://preview.ontross.com/api/integrations/ecw/fetch-patient-medications
Request Fields
input.encounter_id
string
requiredSame encounter identifier, in the snake_case spelling these operations expect.
Example
"9620412"input.patient_id
string
requiredSame patient identifier, in the snake_case spelling these operations expect.
Example
"348144"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
PastVisitLock
string
Raw eCW lock flag on the prior visit's medication list.
Example
"0"Taking
array
Medications the patient confirms they currently take.
Taking[].itemvalue
string
Medication name, despite the generic field name.
Example
"Folic Acid"Taking[].strMedSig
string
Sig instructions for taking this medication.
Example
"Take 1 tablet orally once daily."Taking[].DoctorFlagName
string
Raw eCW doctor flag label on the medication entry.
Example
"Prescribed"Taking[].StrengthVal
string
Strength per unit, for example 40 MG.
Example
"1 MG"Taking[].FormulationVal
string
Dosage form such as tablet or capsule.
Example
"Tablet"Taking[].RouteVal
string
Route of administration such as oral or topical.
Example
"Oral"Taking[].FrequencyVal
string
How often the patient takes this medication.
Example
"Once a day"Taking[].StartDate
string
Date the patient started taking this medication.
Example
"03/14/2026"Taking[].StopDate
string
Date the medication was stopped, empty when ongoing.
Example
"04/14/2026"Taking[].PreparedBy
string
Staff member who entered the prescription in eCW.
Example
"Example,Riley"Taking[].RxOrderNo
string
eCW's order number for this prescription.
Example
"9001301"Taking[].NDCCode
string
National Drug Code for the prescribed product.
Example
"00591-0322-01"Taking[].RxNotes
string
Notes attached to the prescription for the pharmacy.
Example
"Dispense as written."Taking[].AdditionalInstructions
string
Extra sig instructions eCW stores on this prescription.
Example
"Take with food."Not Taking
array
Drug records currently unused, serialized under Not Taking.
Not Taking[].itemvalue
string
Medication name, despite the generic field name.
Example
"Folic Acid"Not Taking[].strMedSig
string
Sig instructions for taking this medication.
Example
"Take 1 tablet orally once daily."Not Taking[].DoctorFlagName
string
Raw eCW doctor flag label on the medication entry.
Example
"Prescribed"Not Taking[].StrengthVal
string
Strength per unit, for example 40 MG.
Example
"1 MG"Not Taking[].FormulationVal
string
Dosage form such as tablet or capsule.
Example
"Tablet"Not Taking[].RouteVal
string
Route of administration such as oral or topical.
Example
"Oral"Not Taking[].FrequencyVal
string
How often the patient takes this medication.
Example
"Once a day"Not Taking[].StartDate
string
Date the patient started taking this medication.
Example
"03/14/2026"Not Taking[].StopDate
string
Date the medication was stopped, empty when ongoing.
Example
"04/14/2026"Not Taking[].PreparedBy
string
Staff member who entered the prescription in eCW.
Example
"Example,Riley"Not Taking[].RxOrderNo
string
eCW's order number for this prescription.
Example
"9001301"Not Taking[].NDCCode
string
National Drug Code for the prescribed product.
Example
"00591-0322-01"Not Taking[].RxNotes
string
Notes attached to the prescription for the pharmacy.
Example
"Dispense as written."Not Taking[].AdditionalInstructions
string
Extra sig instructions eCW stores on this prescription.
Example
"Take with food."Discontinued
array
Medications eCW lists under its Discontinued heading.
Discontinued[].itemvalue
string
Medication name, despite the generic field name.
Example
"Folic Acid"Discontinued[].strMedSig
string
Sig instructions for taking this medication.
Example
"Take 1 tablet orally once daily."Discontinued[].DoctorFlagName
string
Raw eCW doctor flag label on the medication entry.
Example
"Prescribed"Discontinued[].StrengthVal
string
Strength per unit, for example 40 MG.
Example
"1 MG"Discontinued[].FormulationVal
string
Dosage form such as tablet or capsule.
Example
"Tablet"Discontinued[].RouteVal
string
Route of administration such as oral or topical.
Example
"Oral"Discontinued[].FrequencyVal
string
How often the patient takes this medication.
Example
"Once a day"Discontinued[].StartDate
string
Date the patient started taking this medication.
Example
"03/14/2026"Discontinued[].StopDate
string
Date the medication was stopped, empty when ongoing.
Example
"04/14/2026"Discontinued[].PreparedBy
string
Staff member who entered the prescription in eCW.
Example
"Example,Riley"Discontinued[].RxOrderNo
string
eCW's order number for this prescription.
Example
"9001301"Discontinued[].NDCCode
string
National Drug Code for the prescribed product.
Example
"00591-0322-01"Discontinued[].RxNotes
string
Notes attached to the prescription for the pharmacy.
Example
"Dispense as written."Discontinued[].AdditionalInstructions
string
Extra sig instructions eCW stores on this prescription.
Example
"Take with food."Unknown Status
array
Drug records with uncertain use, serialized under Unknown Status.
Unknown Status[].itemvalue
string
Medication name, despite the generic field name.
Example
"Folic Acid"Unknown Status[].strMedSig
string
Sig instructions for taking this medication.
Example
"Take 1 tablet orally once daily."Unknown Status[].DoctorFlagName
string
Raw eCW doctor flag label on the medication entry.
Example
"Prescribed"Unknown Status[].StrengthVal
string
Strength per unit, for example 40 MG.
Example
"1 MG"Unknown Status[].FormulationVal
string
Dosage form such as tablet or capsule.
Example
"Tablet"Unknown Status[].RouteVal
string
Route of administration such as oral or topical.
Example
"Oral"Unknown Status[].FrequencyVal
string
How often the patient takes this medication.
Example
"Once a day"Unknown Status[].StartDate
string
Date the patient started taking this medication.
Example
"03/14/2026"Unknown Status[].StopDate
string
Date the medication was stopped, empty when ongoing.
Example
"04/14/2026"Unknown Status[].PreparedBy
string
Staff member who entered the prescription in eCW.
Example
"Example,Riley"Unknown Status[].RxOrderNo
string
eCW's order number for this prescription.
Example
"9001301"Unknown Status[].NDCCode
string
National Drug Code for the prescribed product.
Example
"00591-0322-01"Unknown Status[].RxNotes
string
Notes attached to the prescription for the pharmacy.
Example
"Dispense as written."Unknown Status[].AdditionalInstructions
string
Extra sig instructions eCW stores on this prescription.
Example
"Take with food."Code
curl --request POST \
--url https://preview.ontross.com/api/integrations/ecw/fetch-patient-medications \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"encounter_id":"9620412","patient_id":"348144"},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"encounter_id": "9620412",
"patient_id": "348144"
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"PastVisitLock": "0",
"Taking": [
{
"itemvalue": "Folic Acid",
"strMedSig": "Take 1 tablet orally once daily.",
"DoctorFlagName": "Prescribed",
"StrengthVal": "1 MG",
"FormulationVal": "Tablet",
"RouteVal": "Oral",
"FrequencyVal": "Once a day",
"StartDate": "03/14/2026",
"StopDate": "04/14/2026",
"PreparedBy": "Example,Riley",
"RxOrderNo": "9001301",
"NDCCode": "00591-0322-01",
"RxNotes": "Dispense as written.",
"AdditionalInstructions": "Take with food."
}
],
"Not Taking": [
{
"itemvalue": "Folic Acid",
"strMedSig": "Take 1 tablet orally once daily.",
"DoctorFlagName": "Prescribed",
"StrengthVal": "1 MG",
"FormulationVal": "Tablet",
"RouteVal": "Oral",
"FrequencyVal": "Once a day",
"StartDate": "03/14/2026",
"StopDate": "04/14/2026",
"PreparedBy": "Example,Riley",
"RxOrderNo": "9001301",
"NDCCode": "00591-0322-01",
"RxNotes": "Dispense as written.",
"AdditionalInstructions": "Take with food."
}
],
"Discontinued": [
{
"itemvalue": "Folic Acid",
"strMedSig": "Take 1 tablet orally once daily.",
"DoctorFlagName": "Prescribed",
"StrengthVal": "1 MG",
"FormulationVal": "Tablet",
"RouteVal": "Oral",
"FrequencyVal": "Once a day",
"StartDate": "03/14/2026",
"StopDate": "04/14/2026",
"PreparedBy": "Example,Riley",
"RxOrderNo": "9001301",
"NDCCode": "00591-0322-01",
"RxNotes": "Dispense as written.",
"AdditionalInstructions": "Take with food."
}
],
"Unknown Status": [
{
"itemvalue": "Folic Acid",
"strMedSig": "Take 1 tablet orally once daily.",
"DoctorFlagName": "Prescribed",
"StrengthVal": "1 MG",
"FormulationVal": "Tablet",
"RouteVal": "Oral",
"FrequencyVal": "Once a day",
"StartDate": "03/14/2026",
"StopDate": "04/14/2026",
"PreparedBy": "Example,Riley",
"RxOrderNo": "9001301",
"NDCCode": "00591-0322-01",
"RxNotes": "Dispense as written.",
"AdditionalInstructions": "Take with food."
}
]
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}