Media

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.

QueryResponse

Receive media file metadata and content based on the query parameters defined in Media.Query.

Beta
Data on Demand Enabled

Request Body Schema

  • Meta
    required, object
    • DataModel
      required, string
      Reliable

      Media

    • EventType
      required, string
      Reliable

      QueryResponse

    • EventDateTime
      string, null
      Reliable

      Displays the UTC date and time that an outgoing request is delivered or an incoming request is received.
      ISO 8601 Format

    • Test
      boolean, null
      Reliable

      Indicates whether the request is a test or not.

    • Source
      object

      Contains the information for the system initiating the message, including the source ID and name.
      Included in messages from Redox

      • ID
        string, null
        Reliable

        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

      • Name
        string, null
        Reliable

        Displays the name of the system initiating the message.

    • Destinations
      Array 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.

      • ID
        string, null
        Reliable

        Identifies the endpoint that the request is directed to.
        UUID

      • Name
        string, null
        Reliable

        Displays the name of the endpoint that the request is directed to.

    • Logs
      Array of object

      Contains the log identifier(s) for the request.

      • ID
        string, null
        Reliable

        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

      • AttemptID
        string, null
        Reliable

        Identifies the request log attempt value, which is useful when retries are possible.
        UUID

    • FacilityCode
      string, null
      Possible

      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.

  • Media
    Array of object
    • Patient
      object
      • Identifiers
        Array of object

        List of IDs and ID types that identify the patient

        • ID
          string, null
          Reliable

          ID for the patient

        • IDType
          string, null
          Reliable

          Type of ID.
          E.g. MRN, EPI

    • Visit
      object
      • VisitNumber
        string, null
        Reliable

        Visit Number.
        A VisitNumber is highly recommended so that the document can be associated with a specific visit

    • FileType
      string, null
      Reliable

      Identifies the format of the file (e.g., PDF, JPG).

    • FileName
      string, null
      Reliable

      Displays the name of the file.

    • FileContents
      string, null
      Reliable

      Contains the encoded base64 string with the contents of the file.

    • DocumentType
      string, null
      Reliable

      Classifies the type of document (e.g., consent form, treatment plan).

    • DocumentID
      string, null
      Reliable

      Contains the unique identifier for the document. You must have the document ID to update the document later.

    • DocumentDescription
      string, null
      Possible

      Contains a descriptive label for the document.

    • CreationDateTime
      string, null
      Possible

      Displays the timestamp for when the file was created.
      ISO 8601 Format

    • ServiceDateTime
      string, null
      Possible

      Displays the timestamp for when the related clinical service occurred.
      ISO 8601 Format

Example
json
1
{
2
"Meta": {
3
"DataModel": "Media",
4
"EventType": "QueryResponse",
5
"EventDateTime": "2024-12-20T18:11:36.537Z",
6
"Test": true,
7
"Source": {
8
"ID": "7ce6f387-c33c-417d-8682-81e83628cbd9",
9
"Name": "Redox Dev Tools"
10
},
11
"Destinations": [
12
{
13
"ID": "af394f14-b34a-464f-8d24-895f370af4c9",
14
"Name": "Redox EMR"
15
}
16
],
17
"Logs": [
18
{
19
"ID": "d9f5d293-7110-461e-a875-3beb089e79f3",
20
"AttemptID": "925d1617-2fe0-468c-a14c-f8c04b572c54"
21
}
22
],
23
"FacilityCode": null
24
},
25
"Media": [
26
{
27
"Patient": {
28
"Identifiers": [
29
{
30
"ID": "0000000001",
31
"IDType": "MR"
32
},
33
{
34
"ID": "e167267c-16c9-4fe3-96ae-9cff5703e90a",
35
"IDType": "EHRID"
36
},
37
{
38
"ID": "a1d4ee8aba494ca",
39
"IDType": "NIST"
40
}
41
]
42
},
43
"Visit": {
44
"VisitNumber": "1234"
45
},
46
"FileType": "JPG",
47
"FileName": "SampleImage",
48
"FileContents": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBD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PUuN+DLsvRX30gU4TXcl+W16FWZgd60CdneoHm6vJws2zIx6jdXb8SjuDAU15Gbm15GRUaa6vhU9yYFeItfcy4lCOA/x2cp0B7bgSycNsRqsjCQkoAroBvmEDpVv6lavysuxvTDRED1AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQP//Z",
49
"DocumentType": "Sample Image",
50
"DocumentID": "b169923c-42g9-4fe3-91hg-8ckf1094e90l",
51
"DocumentDescription": null,
52
"CreationDateTime": "2017-06-22T19:30:04.387Z",
53
"ServiceDateTime": "2017-06-22T17:00:00.387Z"
54
}
55
]
56
}