Skip to main content

core.medicationordersetrequest

Home > @medplum/core > MedicationOrderSetRequest

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)

patientId

readonly

string

planDefinitionId?

readonly

string

(Optional)

vendorOrderSetId?

readonly

number | string

(Optional) Vendor-side order-set id. Numeric in ScriptSure today; kept as number | string so vendors with non-numeric ids can adopt the operation without a wire-format change.