Skip to main content

core.medicationcartcontentsresponse

Home > @medplum/core > MedicationCartContentsResponse

MedicationCartContentsResponse interface

Vendor-neutral view of the patient's cart as the vendor holds it, reconciled against local drafts.

vendorTotal is what the prescriber will see in the approval widget; draftCount is what the local record says. They diverge whenever items contains a line that is not in-sync or not-staged — the drift a draft-derived cart badge cannot detect on its own.

Signature:

export interface MedicationCartContentsResponse

Properties

Property

Modifiers

Type

Description

draftCount

readonly

number

items

readonly

MedicationCartLine

locked

readonly

boolean

True when the vendor reports the cart locked; a write may conflict.

vendorPatientId

readonly

number

Vendor-side patient id (numeric in ScriptSure today).

vendorTotal

readonly

number