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 |
|---|---|---|---|
| number | ||
| |||
| boolean | True when the vendor reports the cart locked; a write may conflict. | |
| number | Vendor-side patient id (numeric in ScriptSure today). | |
| number |