core.medicationcheckoutitemresult
Home > @medplum/core > MedicationCheckoutItemResult
MedicationCheckoutItemResult interface
Per-line outcome from a cart checkout. A single bad line is reported here as failed rather than rolling back the lines that already queued.
Signature:
export interface MedicationCheckoutItemResult
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| boolean | (Optional) True when the line was **not** added because the same drug was already in the vendor's cart (the vendor-recommended duplicate check matched). Reported as | |
| string | (Optional) | |
| string | ||
| boolean | (Optional) True when the draft changed after an earlier checkout staged it, so its old line was taken out of the vendor's cart and the draft was staged again. Only set on | |
| 'queued' | 'failed' | ||
| string | (Optional) Vendor per-line reference returned at checkout, for diagnostics/audit. The concrete meaning is vendor-specific: a cart-item id for cart-based vendors (ScriptSure MedCart |