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.
Save a new document to a patient's chart.
Request Body Schema
- Metarequired, object
- DataModelrequired, stringReliable
Media
- EventTyperequired, stringReliable
New
- 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.
- Patientrequired, object
- Identifiersrequired, Array of object
List of IDs and ID types that identify the patient
- IDrequired, stringReliable
ID for the patient
- IDTyperequired, stringReliable
Type of ID.
E.g. MRN, EPI
- Demographicsobject
- FirstNamestring, nullReliable
Patient's first name
- MiddleNamestring, nullPossible
Patient's middle name or middle initial. For patients with multiple middle names, all their middle names are included in this field.
- LastNamestring, nullReliable
Patient's last name
- DOBstring, nullReliable
Patient's date of birth.
In ISO 8601 format - SSNstring, nullProbable
Patient's social security number
- Sexstring, nullReliableValue Set
Patient's sex
- Racestring, nullPossibleValue Set
Patient's race
- IsHispanicboolean, nullPossibleValue Set
Indicates if the patient is of hispanic origin.
- Religionstring, nullPossibleValue Set
Patient's religious affiliation
- MaritalStatusstring, nullPossibleValue Set
Patient's marital status
- IsDeceasedboolean, nullPossible
Indicates if the patient is deceased
- DeathDateTimestring, nullPossible
Date and Time the patient was proclaimed deceased.
ISO 8601 Format - PhoneNumberobject
- Homestring, nullProbable
Patient's home phone number.
In E. 164 Format. (e.g. +16085551234) - Officestring, nullProbable
Patient's office phone number.
In E. 164 Format. (e.g. +16085551234) - Mobilestring, nullProbable
Patient's mobile phone number.
In E. 164 Format. (e.g. +16085551234)
- EmailAddressesArray of string
Patient's email address(es)
- Languagestring, nullPossibleValue Set
Patient's primary spoken language.
In ISO 639-1 alpha values (e.g. 'en'). Supported Values - CitizenshipArray of string
Patient's nation(s) of citizenship.
In ISO 3166 alpha 2 format (e.g. 'US'). - Addressobject
Patient's home address
- StreetAddressstring, nullProbable
Street address
- Citystring, nullProbable
City
- Statestring, nullProbable
State
- ZIPstring, nullProbable
ZIP
- Countystring, nullPossible
County
- Countrystring, nullPossibleValue Set
Country
- NotesArray of string
Patient-level notes
- Mediarequired, object
- FileTyperequired, stringReliable
Identifies the format of the file (e.g., PDF, JPG).
- FileNamerequired, stringReliable
Displays the name of the file.
- FileContentsrequired, stringReliable
Contains the encoded base64 string with the contents of the file.
- DocumentTyperequired, stringReliable
Classifies the type of document (e.g., consent form, treatment plan).
- DocumentIDrequired, stringReliable
Contains the unique identifier for the document. You must have the document ID to update the document later.
- Providerrequired, object
- IDrequired, stringReliable
ID of the Identifies the provider that's responsible for the document.
- IDTypestring, nullReliable
ID type of the ID for the Identifies the provider that's responsible for the document.
- FirstNamestring, nullPossible
First name of the Identifies the provider that's responsible for the document.
- LastNamestring, nullPossible
Last name of the Identifies the provider that's responsible for the document.
- CredentialsArray of string
List of credentials for the Identifies the provider that's responsible for the document.
e.g. MD, PhD - Addressobject
Provider's address
- StreetAddressstring, nullPossible
Street address
- Citystring, nullPossible
City
- Statestring, nullPossible
State
- ZIPstring, nullPossible
ZIP
- Countystring, nullPossible
County
- Countrystring, nullPossibleValue Set
Country
- EmailAddressesArray of string
Provider's email address(es)
- PhoneNumberobject
- Officestring, nullPossible
Provider's office phone number.
In E. 164 Format. (e.g. +16085551234)
- Locationobject
Provider's location
- Typestring, nullPossible
Type of location.
Examples: Clinic, Department, Home, Nursing Unit, Provider's Office, Phone - Facilitystring, nullPossible
Facility.
Example: Community Hospital - FacilityIdentifiersArray of object
List of IDs specific to this facility
- IDstring, nullPossible
An ID specific to this facility
- IDTypestring, nullPossible
The source or system to which this ID pertains.
Could be an OID or a human-readable name
- Departmentstring, nullPossible
Department
- DepartmentIdentifiersArray of object
List of IDs specific to this department
- IDstring, nullPossible
An ID specific to this department
- IDTypestring, nullPossible
The source or system to which this ID pertains.
Could be an OID or a human-readable name
- Roomstring, nullPossible
Room.
Example: 136
- Availabilityrequired, stringReliableValue Set
Indicates whether the document is available for use. This should be populated with either Available or Unavailable.
Not supported with data on demand. - 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 - DirectAddressFromstring, nullPossible
Contains the sender's Direct address if one or both sides are using Direct messaging.
Not supported with data on demand. - DirectAddressTostring, nullPossible
Contains the recipient's Direct address if one or both sides are using Direct messaging.
Not supported with data on demand. - Authenticatedstring, nullReliable
Displays the authenticated status of the document, which can be either True or False. If True, we recommend populating the related Media.Authenticator field.
Not supported with data on demand. - Authenticatorobject
- IDstring, nullReliable
ID of the provider who authenticated the document.
This ID is often required for Inpatient Visits. - IDTypestring, nullReliable
ID type of the ID for the provider who authenticated the document
- FirstNamestring, nullPossible
First name of the provider who authenticated the document
- LastNamestring, nullPossible
Last name of the provider who authenticated the document
- CredentialsArray of string
List of credentials for the provider who authenticated the document.
e.g. MD, PhD - Addressobject
Provider's address
- StreetAddressstring, nullPossible
Street address
- Citystring, nullPossible
City
- Statestring, nullPossible
State
- ZIPstring, nullPossible
ZIP
- Countystring, nullPossible
County
- Countrystring, nullPossibleValue Set
Country
- EmailAddressesArray of string
Provider's email address(es)
- PhoneNumberobject
- Officestring, nullPossible
Provider's office phone number.
In E. 164 Format. (e.g. +16085551234)
- Locationobject
Provider's location
- Typestring, nullPossible
Type of location.
Examples: Clinic, Department, Home, Nursing Unit, Provider's Office, Phone - Facilitystring, nullPossible
Facility.
Example: Community Hospital - FacilityIdentifiersArray of object
List of IDs specific to this facility
- IDstring, nullPossible
An ID specific to this facility
- IDTypestring, nullPossible
The source or system to which this ID pertains.
Could be an OID or a human-readable name
- Departmentstring, nullPossible
Department
- DepartmentIdentifiersArray of object
List of IDs specific to this department
- IDstring, nullPossible
An ID specific to this department
- IDTypestring, nullPossible
The source or system to which this ID pertains.
Could be an OID or a human-readable name
- Roomstring, nullPossible
Room.
Example: 136
- NotificationsArray of object
Contains a list of providers that should be notified when the document posts to the patient's chart.
Not supported with data on demand.- IDstring, nullReliable
ID of the provider who should be notified.
This ID is often required for Inpatient Visits. - IDTypestring, nullReliable
ID type of the ID for the provider who should be notified
- FirstNamestring, nullPossible
First name of the provider who should be notified
- LastNamestring, nullPossible
Last name of the provider who should be notified
- CredentialsArray of string
List of credentials for the provider who should be notified.
e.g. MD, PhD - Addressobject
Provider's address
- StreetAddressstring, nullPossible
Street address
- Citystring, nullPossible
City
- Statestring, nullPossible
State
- ZIPstring, nullPossible
ZIP
- Countystring, nullPossible
County
- Countrystring, nullPossibleValue Set
Country
- EmailAddressesArray of string
Provider's email address(es)
- PhoneNumberobject
- Officestring, nullPossible
Provider's office phone number.
In E. 164 Format. (e.g. +16085551234)
- Locationobject
Provider's location
- Typestring, nullPossible
Type of location.
Examples: Clinic, Department, Home, Nursing Unit, Provider's Office, Phone - Facilitystring, nullPossible
Facility.
Example: Community Hospital - FacilityIdentifiersArray of object
List of IDs specific to this facility
- IDstring, nullPossible
An ID specific to this facility
- IDTypestring, nullPossible
The source or system to which this ID pertains.
Could be an OID or a human-readable name
- Departmentstring, nullPossible
Department
- DepartmentIdentifiersArray of object
List of IDs specific to this department
- IDstring, nullPossible
An ID specific to this department
- IDTypestring, nullPossible
The source or system to which this ID pertains.
Could be an OID or a human-readable name
- Roomstring, nullPossible
Room.
Example: 136
- Visitobject
- VisitNumberstring, nullReliable
Displays a unique identifier for the patient visit. We highly recommend including a visit number so the document can be associated with a specific visit.
- AccountNumberstring, nullPossible
Contains an identifier that can span several visits often related to the same patient condition (e.g., surgeries, research study, pregnancy). In other words, the account number can be used to link related visits.
Not supported with data on demand. - Locationobject
Displays the location of the patient visit. This may be used to validate or to identify your application/device.
- Typestring, nullProbable
Type of location.
Examples: Clinic, Department, Home, Nursing Unit, Provider's Office, Phone - Facilitystring, nullProbable
Facility.
Example: Community Hospital - FacilityIdentifiersArray of object
List of IDs specific to this facility
- IDstring, nullProbable
An ID specific to this facility
- IDTypestring, nullProbable
The source or system to which this ID pertains.
Could be an OID or a human-readable name
- Departmentstring, nullProbable
Department
- DepartmentIdentifiersArray of object
List of IDs specific to this department
- IDstring, nullProbable
An ID specific to this department
- IDTypestring, nullProbable
The source or system to which this ID pertains.
Could be an OID or a human-readable name
- Roomstring, nullProbable
Room.
Example: 136 - Bedstring, nullProbable
Bed.
Example: B
- OrdersArray of object
- IDstring, nullPossible
Contains the unique identifier of the order request, which is assigned by the system that placed the order.
- Namestring, nullPossible
Displays the name of the order, which is assigned by the system that placed the order.