Quick summary
The Medication orders payload structure includes multiple fields under the
orders object. Understand the available fields that you receive in the Medication orders payload to parse and save orders to your EHR.medication_orders under orders, along with noteId, encounterId, and contents.
This guide describes the Medication orders payload structure and explains each field in a Medication order object.
Refer to Medication orders overview for instructions to enable Medication orders in your Web SDK integration.
Medication orders payload
When you submit a note, the Headed Web SDK returns a note submission payload after it successfully submits the note. The payload includesnoteId, encounterId, and contents.
If you enable Medication orders, the payload also includes the orders object. Medication details are available in orders.medication_orders.
You can receive the payload using either of the following methods:
onNoteSubmitprop (React only, recommended)note-submission:successevent (React and JavaScript)
JSON
orders object when you enable Medication orders in your Web SDK integration.
To enable Medication orders, pass the Medications LOINC code
52471-0 in ambientOptions.sections. Refer to Medication orders overview for instructions to enable Medication orders in your Web SDK integration.Structured orders returned on note submission. For Medication orders, read
orders.medication_orders with values and partial_values.For
noteId, encounterId, and contents, refer to Response fields in Note management.Medication order payload structure
The example below shows the payload structure for a single Medication order object.JSON
Available fields
Each field in a Medication order object can have the following values. Use these fields to parse the Medication orders payload and save orders to your EHR.Example code
The example code below shows how to parse the Medication orders payload and save orders to your EHR.JavaScript