Learn about the Medication orders JSON payload structure returned on Web SDK note submission
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.
The Headed Web SDK returns Medication orders when a provider submits a note. The note submission payload includes 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.
When you submit a note, the Headed Web SDK returns a note submission payload after it successfully submits the note. The payload includes noteId, 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:
onNoteSubmit prop (React only, recommended)
note-submission:success event (React and JavaScript)
Refer to Receiving note content in Note management for how to handle note sections and the full response structure.Example schema:
The note submission payload includes the 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.
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.