This data model allows providers to request services with instructions for a patient's treatment. The order is generally triggered when the provider places an order or when the provider releases it (e.g., after ordering, a clinician takes action on a worklist of pending orders).
Orders commonly contain lab orders. If so, the EHR system sends a message with an expected date and time when a practitioner places an order (e.g., glucose test). When a nurse doing lab rounds (inpatient) or at a collection center (outpatient) collects the specimen, the EHR might send Order.Update with additional information about the collection (e.g., collection user, collection date/time).
This data model has event types that allow you to:
- receive a notification for new, updated, canceled, or grouped orders; or
- query for and receive orders.
Query for orders by defining the search criteria. If you specify multiple criteria, the order(s) must match all the provided criteria to be returned. Results are returned in Order.QueryReponse.
Request Body Schema
- Metarequired, object
- DataModelrequired, stringReliable
Order
- EventTyperequired, stringReliable
Query
- EventDateTimestring, nullReliable
Displays the UTC date and time that an outgoing request is delivered or an incoming request is received.
ISO 8601 Format - Testboolean, nullReliable
Indicates whether the request is a test or not.
- Sourceobject
Contains the information for the system initiating the message, including the source ID and name.
Included in messages from Redox- IDstring, nullReliable
Identifies the system initiating the message. If you have multiple OAuth API keys per environment type, this value is required. If you have only one OAuth API key per environment type, or you're using legacy API keys, this value is optional.
UUID - Namestring, nullReliable
Displays the name of the system initiating the message.
- DestinationsArray of object
Contains the information for the endpoint(s) receiving the request. A request must contain at least one destination, but asynchronous requests can have more than one destination. Synchronous requests like queries can only support one destination.
Required when sending data to Redox.- IDstring, nullReliable
Identifies the endpoint that the request is directed to.
UUID - Namestring, nullReliable
Displays the name of the endpoint that the request is directed to.
- LogsArray of object
Contains the log identifier(s) for the request.
- IDstring, nullReliable
Identifies the request log(s) that correspond to this request. You can use this value to locate the relevant log in the Redox dashboard for support and reference.
UUID - AttemptIDstring, nullReliable
Identifies the request log attempt value, which is useful when retries are possible.
UUID
- FacilityCodestring, nullPossible
Code for the facility related to the message.
Only use this field if a health system indicates you should. The code is specific to the health system's EHR and might not be unique across health systems. In general, the facility fields within the data models (e.g. OrderingFacility) are more reliable and informative.
- PatientsArray of object
Array of patients to find orders for.
If multiple patients are provided, all orders associated with any of the patients will be returned.- IdentifiersArray of object
List of IDs and ID types that identify the patient.
If multiple identifiers are provided, only patients with all identifiers will be considered.- IDstring, nullReliable
ID for the patient.
- IDTypestring, nullReliable
Type of ID.
E.g. MRN, EPI
- VisitNumbersArray of string
Use to find order corresponding to a single visit. If multiple visit IDs orders for all matching visits will be returned.
Unique ID of a single visit - StartDateTimestring, nullProbable
Start of the time range to search for orders. This is based on the Order.TransactionDateTime.
ISO 8601 Format - EndDateTimestring, nullProbable
End of the time range to search for orders. This is based on the Order.TransactionDateTime.
ISO 8601 Format - OrderIDsArray of string
Array of order IDs assigned by the ordering system to filter queries by.
If multiple orders are provided, all matching orders will be returned. - ProceduresArray of object
Procedures to search/filter by.
All orders associated with any of the procedure codes provided will be returned.- Codestring, nullProbable
Code for the procedure
- Codesetstring, nullProbableValue Set
Code set used to identify the procedure.
If no code set is specified, a health system specific identifier is being used.