core.medicationordersetrequest | Medplum

MedicationOrderSetRequest interface

Vendor-neutral input for an order-set widget-URL bot.

One of planDefinitionId (Medplum reverse-lookup to the vendor's orderset id via a cross-system identifier) or vendorOrderSetId (escape hatch when no synced PD exists) is required. Bots reject input where both are set so the intent is unambiguous on the wire.

Signature:

export interface MedicationOrderSetRequest

Properties

Property Modifiers Type Description
appId? readonly string (Optional)
organization? readonly Reference (Optional) Selected practice location for multi-practice deployments.
patientId readonly string
planDefinitionId? readonly string (Optional)
vendorOrderSetId? readonly number | string (Optional) Vendor-side order-set id. Numeric in ScriptSure today; kept as `number