Tross
Demo dataBook a demo
ECLINICALWORKS

Fetch patient procedures

List patient procedure orders.

POSThttps://preview.ontross.com/api/integrations/ecw/fetch-patient-procedures
Request Fields
input.patientId
string
required
Patient chart being read or written, from fetch-patients.
Example
"348144"
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
unReviewedReportsCount
integer
Count of result reports not yet marked reviewed.
Example
0
nTotalCount
integer
Total matching orders, larger than the page returned.
Example
1
labDIProcedureOrders
array
One page of order rows, at most fourteen.
labDIProcedureOrders[].date
string
Calendar value returned on the historical order row.
Example
"02/04/2026"
labDIProcedureOrders[].assignedToId
integer
Staff member assigned the telephone encounter, from the practice user list.
Example
2986
labDIProcedureOrders[].reason
string
Why the call or hospitalization happened, saved as row text.
Example
"Intermittent palpitations"
labDIProcedureOrders[].prevencounterid
integer
Previous encounter eCW links to this order.
Example
0
labDIProcedureOrders[].fromLabId
integer
Identifier of the lab the order was sent to.
Example
0
labDIProcedureOrders[].CollectionDate
string
Date the specimen or study was collected.
Example
"02/14/2026"
labDIProcedureOrders[].ordencounterid
integer
Encounter where this order was placed.
Example
0
labDIProcedureOrders[].encounterId
integer
Encounter being read or written, from fetch-appointments.
Example
1025785
labDIProcedureOrders[].sDocType
string
Document type label for the attached document.
Example
"100"
labDIProcedureOrders[].assignedTo
string
Staff member the order or patient record is assigned to.
Example
"Example text."
labDIProcedureOrders[].result
string
Raw result value eCW stores for the order.
Example
"Normal"
labDIProcedureOrders[].InterfaceStatus
string
Status of the lab or imaging interface transmission.
Example
"Example text."
labDIProcedureOrders[].sDisplayResult
string
Result text eCW shows in the history row.
Example
"Normal sinus rhythm"
labDIProcedureOrders[].overdue
integer
Whether the order is past due, as 0 or 1.
Example
0
labDIProcedureOrders[].doctorId
integer
Provider identifier, a string on appointments and an integer on orders.
Example
5076
labDIProcedureOrders[].sDisplayName
string
Order name as eCW renders it for display.
Example
"Jane Doe"
labDIProcedureOrders[].nDocCount
integer
Number of documents attached to this order.
Example
0
labDIProcedureOrders[].id
integer
Source record identifier returned for this order.
Example
4897433
labDIProcedureOrders[].sOrderDesc
string
Description of what was ordered.
Example
"Routine ECG with interpretation"
labDIProcedureOrders[].Notes
string
Order notes visible to the ordering provider.
Example
"Obtain during today's visit."
labDIProcedureOrders[].approvalStatus
integer
Numeric eCW approval status for the order.
Example
0
labDIProcedureOrders[].facilityId
integer
Facility the telephone encounter is booked at, from the facility list.
Example
4
labDIProcedureOrders[].reportId
integer
eCW report record tied to this order.
Example
2838748
labDIProcedureOrders[].CollectionDateTime
string
Same collection moment with the time of day included.
Example
"02/14/2026"
labDIProcedureOrders[].sDisplayReason
string
Order reason as eCW renders it for display.
Example
"Intermittent palpitations"
labDIProcedureOrders[].IntNotes
string
Internal staff notes on the order, not patient facing.
Example
"Report routed for review."
labDIProcedureOrders[].FutureOrderDate
string
Date a future-dated order is scheduled to run.
Example
"11/06/2026"
labDIProcedureOrders[].OrderingPhysician
string
Name of the provider who placed the order.
Example
"Example,Alex"
labDIProcedureOrders[].received
integer
Whether the result has arrived, as 0 or 1.
Example
1
labDIProcedureOrders[].HMFlag
integer
Numeric health maintenance flag eCW set on the order.
Example
0
labDIProcedureOrders[].priority
integer
Priority stored on the telephone encounter, defaulting to 1.
Example
0
labDIProcedureOrders[].sOrderType
string
Order type label eCW assigns to the row.
Example
"Procedure"
labDIProcedureOrders[].publishToPortal
integer
Whether the result is published to the patient portal.
Example
0
labDIProcedureOrders[].patientname
string
Patient name repeated on every order row.
Example
"Doe, Jane"
labDIProcedureOrders[].itemId
integer
eCW catalog item behind this order or ICD-10 row.
Example
106238
labDIProcedureOrders[].canceled
integer
Nonzero when the order was canceled.
Example
0
labDIProcedureOrders[].Type
integer
Numeric eCW code for the order type.
Example
3
labDIProcedureOrders[].name
string
Source label returned for the historical order.
Example
"Jane Doe"
labDIProcedureOrders[].sDocDesc
string
Description of the document attached to this order.
Example
"ECG report"
labDIProcedureOrders[].EncounterType
integer
Numeric eCW type code for the ordering visit.
Example
1
labDIProcedureOrders[].futureflag
integer
Nonzero when the order is future-dated.
Example
0
labDIProcedureOrders[].ResultDate
string
Date the result came back from the lab.
Example
"02/14/2026"
labDIProcedureOrders[].status
integer
Numeric source disposition returned for this historical order.
Example
1
labOrderStatus
string
Status eCW reports for the order list request.
Example
"success"
Code
curl --request POST \
  --url https://preview.ontross.com/api/integrations/ecw/fetch-patient-procedures \
  --header 'X-API-Key: REPLACE_KEY_VALUE' \
  --header 'content-type: application/json' \
  --data '{"input":{"patientId":"348144"},"auth_id":"auth_uuid_here"}'
Request BODY
{
  "input": {
    "patientId": "348144"
  },
  "auth_id": "auth_uuid_here"
}
Response BODY
{
  "id": "string",
  "workflow_id": "string",
  "auth_id": "string",
  "status": "string",
  "input": {},
  "output": {
    "unReviewedReportsCount": 0,
    "nTotalCount": 1,
    "labDIProcedureOrders": [
      {
        "date": "02/04/2026",
        "assignedToId": 2986,
        "reason": "Intermittent palpitations",
        "prevencounterid": 0,
        "fromLabId": 0,
        "CollectionDate": "02/14/2026",
        "ordencounterid": 0,
        "encounterId": 1025785,
        "sDocType": "100",
        "assignedTo": "Example text.",
        "result": "Normal",
        "InterfaceStatus": "Example text.",
        "sDisplayResult": "Normal sinus rhythm",
        "overdue": 0,
        "doctorId": 5076,
        "sDisplayName": "Jane Doe",
        "nDocCount": 0,
        "id": 4897433,
        "sOrderDesc": "Routine ECG with interpretation",
        "Notes": "Obtain during today's visit.",
        "approvalStatus": 0,
        "facilityId": 4,
        "reportId": 2838748,
        "CollectionDateTime": "02/14/2026",
        "sDisplayReason": "Intermittent palpitations",
        "IntNotes": "Report routed for review.",
        "FutureOrderDate": "11/06/2026",
        "OrderingPhysician": "Example,Alex",
        "received": 1,
        "HMFlag": 0,
        "priority": 0,
        "sOrderType": "Procedure",
        "publishToPortal": 0,
        "patientname": "Doe, Jane",
        "itemId": 106238,
        "canceled": 0,
        "Type": 3,
        "name": "Jane Doe",
        "sDocDesc": "ECG report",
        "EncounterType": 1,
        "futureflag": 0,
        "ResultDate": "02/14/2026",
        "status": 1
      }
    ],
    "labOrderStatus": "success"
  },
  "files": null,
  "created_at": "2019-08-24T14:15:22Z",
  "started_at": "2019-08-24T14:15:22Z",
  "completed_at": "2019-08-24T14:15:22Z"
}