This data model allows you to exchange files (e.g., JPEG, PDF, WAV) like photos, videos, and audio recordings, as well as imaging and documents to or from a patient's chart.
You can also send files or documents with the Notes and Results data models. Learn how to send a file with different data models.
This data model has event types that allow you to:
- save, replace, or delete a media document; or
- query for and receive media documents.
Query for media type of documents. Results are returned in Media.QueryReponse.
Request Body Schema
- Metarequired, object
- DataModelrequired, stringReliable
Media
- 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 filter results on.
If multiple patients are provided, media 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 of the Patient
- IDTypestring, nullReliable
ID Type for the corresponding ID of this patient (ie. MRN, EHRID)
- VisitNumbersArray of string
Array of patient visits to query on.
If multiple visits are provided, media associated with any of the patient visits will be returned. - DocumentTypesArray of string
Array of document types to query on.
The type of media to retrieve (E.g. Consent Form, Treatment Plan) - DocumentIDsArray of string
Array of document identifiers to query on.