getStructuredData(for:) so your application can submit them through your EHR workflow.
Pass optional SukiAmbientConstant.kOrdersInfo in setSessionContext(with:) after you create the session when your workflow needs medication order context for the visit. This parameter is optional.
dictionary
Use this parameter when you need to attach medication order context for the ambient visit. Generated Medication orders from the encounter still come from what the provider prescribes during the session, and you retrieve them with
getStructuredData(for:) after processing completes.The data is structured as a single bundle. On the wire, the outer payload key is orders. Inside this bundle, you must include a single list keyed by MedicationOrderKeys.kMedicationOrders (wire string medication_orders). Each entry in this list represents a single medication order and must be formatted as an individual dictionary.You can skip kOrdersInfo entirely if it is not required for your workflow. If you do send the MedicationOrderKeys.kMedicationOrders list, each order in that list should satisfy the following recommendations.Payload keys
The following payload (wire) keys are important when present in theMedicationOrderKeys.kMedicationOrders array:-
medication_code: If provided, include bothcode_typeandcode. -
linked_diagnosis_codes: If provided, include at least one item containing bothcode_typeandcode. -
metadata.originandmetadata.encounter_relation: You must use only the approved values for these fields.
Swift
Next steps
Provide clinical context - FullsetSessionContext overview and combined example.
Medication orders - platform concept across ambient products.
Check status and retrieve content - Pull structured medication order payloads.