If you haven’t already, check out our high-level summary and best practices for sending a file to an integrated system. The details below get into the specific “how-to” but it’s best to have a general idea before getting started.
With the Data Model API, you can use the Notes or Results data model to send a file to your integrated system. This depends on the context of the file:
To add a file to a patient's chart with the Notes data model, most EHR systems require that you provide the patient identifier and basic demographic information (e.g., name, date of birth). They may also require relevant provider information like the note type, unique note ID, and whether or not the note has been authenticated by a physician and is authorized to be shared in the patient’s chart.
To associate a note with a specific visit or area in the EHR system, you may also need to provide a visit number.
You can also use the Media data model for sending a general file, but we recommend sticking with the Notes data model.
Notes can send files as plain or rich text, so the content is subject to the rendering capabilities of each individual EHR system. Notes may also offer superior searchability and usability (if the EHR system has search or natural language processing [NLP] capabilities). Media can typically used for files like PDFs, images, or audio files. For images, though, most EHR systems don't use the Media data model to receive diagnostic quality images, and DICOM files are above the size limits for Media.
Each data model has their own supported fields and requirements. Below, we only highlight the fields you need to include for sending files.
Learn more about data models we support, including fields, requirements, and details for each one.
Note.ContentType
field, enter Base64 Encoded (as one of the supported values from the valueset).Note.FileContents
field, insert the base64 encoded string for the file.Note.FileName
field, enter the name of the file.Note.DocumentType
field, enter the type of document that should be associated with the file (e.g., consent form, treatment plan).Note.DocumentID
field, enter the unique identifier for this document.Note.Provider.ID
field, enter the ID of the provider responsible for the document.{…"Note": {"ContentType": "Base64 Encoded","FileContents": "XG82ZSC0aHUgd3F5IHlvdSBsaYU=","FileName": "Order Specific Note","DocumentType": "Clinical Note","DocumentID": "b169267c-10c9-4fe3-91ae-9ckf5703e90l","Provider": {“ID”: "4356789876",…}…}
Orders[].Results[].Value
field, insert the base64 encoded string for the file.Orders[].Results[].ValueType
field, enter Encapsulated Data (as one of the supported values from the valueset).Orders[].Results[].FileType
field, enter a valid file type.{…"Orders": [{ …"Results": [{"Value": "XG82ZSC0aHUgd3F5IHlvdSBsaYU=","ValueType": "Encapsulated Data","FileType": "PDF",…}]}]}
Media.FileType
field, enter a valid file type.Media.FileName
field, enter the name of the file.Media.FileContents
field, insert the base64 encoded string for the file. Media.DocumentType
field, enter the type of document that should be associated with the file (e.g., consent form, treatment plan).Media.DocumentID
field, enter the unique identifier for this document.Media.Provider.ID
field, enter the ID of the provider responsible for the document. Media.Availability
field, enter the relevant value from the supported valueset (i.e., Available, Unavailable, Obsolete, Deleted, Cancelled).{ …"Media": {"FileType": "PDF","FileName": "Annual visit","FileContents": "XG82ZSC0aHUgd3F5IHlvdSBsaYU=","DocumentType": "Consent form","DocumentID": "b169267c-10c9-4fe3-91ae-9ckf5703e90l","DocumentID": "b169267c-10c9-4fe3-91ae-9ckf5703e90l","Provider": {“ID”: "4356789876",…}"Availability": "Available",…}}
For larger files, you must first upload them to Redox. Then, you can refer to the file in your requests.
curl https://blob.redoxengine.com/upload \-H "Authorization: Bearer "-X POST \-F file=@file.pdf
201 Created
status with the URI reference to your file in the body of the response:{"location": "https://blob.redoxengine.com/123456789"}