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.
Receive media file metadata and content based on the query parameters defined in Media.Query.
Request Body Schema
- Metarequired, object
- DataModelrequired, stringReliable
Media
- EventTyperequired, stringReliable
QueryResponse
- 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.
- MediaArray of object
- Patientobject
- IdentifiersArray of object
List of IDs and ID types that identify the patient
- IDstring, nullReliable
ID for the patient
- IDTypestring, nullReliable
Type of ID.
E.g. MRN, EPI
- Visitobject
- VisitNumberstring, nullReliable
Visit Number.
A VisitNumber is highly recommended so that the document can be associated with a specific visit
- FileTypestring, nullReliable
Identifies the format of the file (e.g., PDF, JPG).
- FileNamestring, nullReliable
Displays the name of the file.
- FileContentsstring, nullReliable
Contains the encoded base64 string with the contents of the file.
- DocumentTypestring, nullReliable
Classifies the type of document (e.g., consent form, treatment plan).
- DocumentIDstring, nullReliable
Contains the unique identifier for the document. You must have the document ID to update the document later.
- DocumentDescriptionstring, nullPossible
Contains a descriptive label for the document.
- CreationDateTimestring, nullPossible
Displays the timestamp for when the file was created.
ISO 8601 Format - ServiceDateTimestring, nullPossible
Displays the timestamp for when the related clinical service occurred.
ISO 8601 Format