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, stringReliableMedia 
- EventTyperequired, stringReliableNew 
- EventDateTimestring, nullReliableDisplays the UTC date and time that an outgoing request is delivered or an incoming request is received. 
 ISO 8601 Format
- Testboolean, nullReliableIndicates whether the request is a test or not. 
- SourceobjectContains the information for the system initiating the message, including the source ID and name. 
 Included in messages from Redox- IDstring, nullReliableIdentifies 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, nullReliableDisplays the name of the system initiating the message. 
 
- DestinationsArray of objectContains 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, nullReliableIdentifies the endpoint that the request is directed to. 
 UUID
- Namestring, nullReliableDisplays the name of the endpoint that the request is directed to. 
 
- LogsArray of objectContains the log identifier(s) for the request. - IDstring, nullReliableIdentifies 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, nullReliableIdentifies the request log attempt value, which is useful when retries are possible. 
 UUID
 
- FacilityCodestring, nullPossibleCode 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 objectList of IDs and ID types that identify the patient - IDrequired, stringReliableID for the patient 
- IDTyperequired, stringReliableType of ID. 
 E.g. MRN, EPI
 
- Demographicsobject- FirstNamestring, nullReliablePatient's first name 
- MiddleNamestring, nullPossiblePatient's middle name or middle initial. For patients with multiple middle names, all their middle names are included in this field. 
- LastNamestring, nullReliablePatient's last name 
- DOBstring, nullReliablePatient's date of birth. 
 In ISO 8601 format
- SSNstring, nullProbablePatient's social security number 
- Sexstring, nullReliableValue SetPatient's sex 
- Racestring, nullPossibleValue SetPatient's race 
- IsHispanicboolean, nullPossibleValue SetIndicates if the patient is of hispanic origin. 
- Religionstring, nullPossibleValue SetPatient's religious affiliation 
- MaritalStatusstring, nullPossibleValue SetPatient's marital status 
- IsDeceasedboolean, nullPossibleIndicates if the patient is deceased 
- DeathDateTimestring, nullPossibleDate and Time the patient was proclaimed deceased. 
 ISO 8601 Format
- PhoneNumberobject- Homestring, nullProbablePatient's home phone number. 
 In E. 164 Format. (e.g. +16085551234)
- Officestring, nullProbablePatient's office phone number. 
 In E. 164 Format. (e.g. +16085551234)
- Mobilestring, nullProbablePatient's mobile phone number. 
 In E. 164 Format. (e.g. +16085551234)
 
- EmailAddressesArray of stringPatient's email address(es) 
- Languagestring, nullPossibleValue SetPatient's primary spoken language. 
 In ISO 639-1 alpha values (e.g. 'en'). Supported Values
- CitizenshipArray of stringPatient's nation(s) of citizenship. 
 In ISO 3166 alpha 2 format (e.g. 'US').
- AddressobjectPatient's home address - StreetAddressstring, nullProbableStreet address 
- Citystring, nullProbableCity 
- Statestring, nullProbableState 
- ZIPstring, nullProbableZIP 
- Countystring, nullPossibleCounty 
- Countrystring, nullPossibleValue SetCountry 
 
 
- NotesArray of stringPatient-level notes 
 
- Mediarequired, object- FileTyperequired, stringReliableIdentifies the format of the file (e.g., PDF, JPG). 
- FileNamerequired, stringReliableDisplays the name of the file. 
- FileContentsrequired, stringReliableContains the encoded base64 string with the contents of the file. 
- DocumentTyperequired, stringReliableClassifies the type of document (e.g., consent form, treatment plan). 
- DocumentIDrequired, stringReliableContains the unique identifier for the document. You must have the document ID to update the document later. 
- Providerrequired, object- IDrequired, stringReliableID of the Identifies the provider that's responsible for the document. 
- IDTypestring, nullReliableID type of the ID for the Identifies the provider that's responsible for the document. 
- FirstNamestring, nullPossibleFirst name of the Identifies the provider that's responsible for the document. 
- LastNamestring, nullPossibleLast name of the Identifies the provider that's responsible for the document. 
- CredentialsArray of stringList of credentials for the Identifies the provider that's responsible for the document. 
 e.g. MD, PhD
- AddressobjectProvider's address - StreetAddressstring, nullPossibleStreet address 
- Citystring, nullPossibleCity 
- Statestring, nullPossibleState 
- ZIPstring, nullPossibleZIP 
- Countystring, nullPossibleCounty 
- Countrystring, nullPossibleValue SetCountry 
 
- EmailAddressesArray of stringProvider's email address(es) 
- PhoneNumberobject- Officestring, nullPossibleProvider's office phone number. 
 In E. 164 Format. (e.g. +16085551234)
 
- LocationobjectProvider's location - Typestring, nullPossibleType of location. 
 Examples: Clinic, Department, Home, Nursing Unit, Provider's Office, Phone
- Facilitystring, nullPossibleFacility. 
 Example: Community Hospital
- FacilityIdentifiersArray of objectList of IDs specific to this facility - IDstring, nullPossibleAn ID specific to this facility 
- IDTypestring, nullPossibleThe source or system to which this ID pertains. 
 Could be an OID or a human-readable name
 
- Departmentstring, nullPossibleDepartment 
- DepartmentIdentifiersArray of objectList of IDs specific to this department - IDstring, nullPossibleAn ID specific to this department 
- IDTypestring, nullPossibleThe source or system to which this ID pertains. 
 Could be an OID or a human-readable name
 
- Roomstring, nullPossibleRoom. 
 Example: 136
 
 
- Availabilityrequired, stringReliableValue SetIndicates whether the document is available for use. This should be populated with either Available or Unavailable. 
 Not supported with data on demand.
- DocumentDescriptionstring, nullPossibleContains a descriptive label for the document. 
- CreationDateTimestring, nullPossibleDisplays the timestamp for when the file was created. 
 ISO 8601 Format
- ServiceDateTimestring, nullPossibleDisplays the timestamp for when the related clinical service occurred. 
 ISO 8601 Format
- DirectAddressFromstring, nullPossibleContains the sender's Direct address if one or both sides are using Direct messaging. 
 Not supported with data on demand.
- DirectAddressTostring, nullPossibleContains the recipient's Direct address if one or both sides are using Direct messaging. 
 Not supported with data on demand.
- Authenticatedstring, nullReliableDisplays 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, nullReliableID of the provider who authenticated the document. 
 This ID is often required for Inpatient Visits.
- IDTypestring, nullReliableID type of the ID for the provider who authenticated the document 
- FirstNamestring, nullPossibleFirst name of the provider who authenticated the document 
- LastNamestring, nullPossibleLast name of the provider who authenticated the document 
- CredentialsArray of stringList of credentials for the provider who authenticated the document. 
 e.g. MD, PhD
- AddressobjectProvider's address - StreetAddressstring, nullPossibleStreet address 
- Citystring, nullPossibleCity 
- Statestring, nullPossibleState 
- ZIPstring, nullPossibleZIP 
- Countystring, nullPossibleCounty 
- Countrystring, nullPossibleValue SetCountry 
 
- EmailAddressesArray of stringProvider's email address(es) 
- PhoneNumberobject- Officestring, nullPossibleProvider's office phone number. 
 In E. 164 Format. (e.g. +16085551234)
 
- LocationobjectProvider's location - Typestring, nullPossibleType of location. 
 Examples: Clinic, Department, Home, Nursing Unit, Provider's Office, Phone
- Facilitystring, nullPossibleFacility. 
 Example: Community Hospital
- FacilityIdentifiersArray of objectList of IDs specific to this facility - IDstring, nullPossibleAn ID specific to this facility 
- IDTypestring, nullPossibleThe source or system to which this ID pertains. 
 Could be an OID or a human-readable name
 
- Departmentstring, nullPossibleDepartment 
- DepartmentIdentifiersArray of objectList of IDs specific to this department - IDstring, nullPossibleAn ID specific to this department 
- IDTypestring, nullPossibleThe source or system to which this ID pertains. 
 Could be an OID or a human-readable name
 
- Roomstring, nullPossibleRoom. 
 Example: 136
 
 
- NotificationsArray of objectContains a list of providers that should be notified when the document posts to the patient's chart. 
 Not supported with data on demand.- IDstring, nullReliableID of the provider who should be notified. 
 This ID is often required for Inpatient Visits.
- IDTypestring, nullReliableID type of the ID for the provider who should be notified 
- FirstNamestring, nullPossibleFirst name of the provider who should be notified 
- LastNamestring, nullPossibleLast name of the provider who should be notified 
- CredentialsArray of stringList of credentials for the provider who should be notified. 
 e.g. MD, PhD
- AddressobjectProvider's address - StreetAddressstring, nullPossibleStreet address 
- Citystring, nullPossibleCity 
- Statestring, nullPossibleState 
- ZIPstring, nullPossibleZIP 
- Countystring, nullPossibleCounty 
- Countrystring, nullPossibleValue SetCountry 
 
- EmailAddressesArray of stringProvider's email address(es) 
- PhoneNumberobject- Officestring, nullPossibleProvider's office phone number. 
 In E. 164 Format. (e.g. +16085551234)
 
- LocationobjectProvider's location - Typestring, nullPossibleType of location. 
 Examples: Clinic, Department, Home, Nursing Unit, Provider's Office, Phone
- Facilitystring, nullPossibleFacility. 
 Example: Community Hospital
- FacilityIdentifiersArray of objectList of IDs specific to this facility - IDstring, nullPossibleAn ID specific to this facility 
- IDTypestring, nullPossibleThe source or system to which this ID pertains. 
 Could be an OID or a human-readable name
 
- Departmentstring, nullPossibleDepartment 
- DepartmentIdentifiersArray of objectList of IDs specific to this department - IDstring, nullPossibleAn ID specific to this department 
- IDTypestring, nullPossibleThe source or system to which this ID pertains. 
 Could be an OID or a human-readable name
 
- Roomstring, nullPossibleRoom. 
 Example: 136
 
 
 
- Visitobject- VisitNumberstring, nullReliableDisplays 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, nullPossibleContains 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.
- LocationobjectDisplays the location of the patient visit. This may be used to validate or to identify your application/device. - Typestring, nullProbableType of location. 
 Examples: Clinic, Department, Home, Nursing Unit, Provider's Office, Phone
- Facilitystring, nullProbableFacility. 
 Example: Community Hospital
- FacilityIdentifiersArray of objectList of IDs specific to this facility - IDstring, nullProbableAn ID specific to this facility 
- IDTypestring, nullProbableThe source or system to which this ID pertains. 
 Could be an OID or a human-readable name
 
- Departmentstring, nullProbableDepartment 
- DepartmentIdentifiersArray of objectList of IDs specific to this department - IDstring, nullProbableAn ID specific to this department 
- IDTypestring, nullProbableThe source or system to which this ID pertains. 
 Could be an OID or a human-readable name
 
- Roomstring, nullProbableRoom. 
 Example: 136
- Bedstring, nullProbableBed. 
 Example: B
 
 
- OrdersArray of object- IDstring, nullPossibleContains the unique identifier of the order request, which is assigned by the system that placed the order. 
- Namestring, nullPossibleDisplays the name of the order, which is assigned by the system that placed the order.