core.medicationcartlinestatus
Home > @medplum/core > MedicationCartLineStatus
MedicationCartLineStatus type
Reconciliation verdict for one cart line, comparing what the vendor holds against the local draft MedicationRequests:
in-sync: the vendor line matches a draft. The normal case. -vendor-only: the vendor holds a line with no local draft — staged through another UI or by a session whose draft is gone. The prescriber will still see it in the approval widget, so a draft-derived cart count under-reports. -not-staged: a draft that has not been checked out yet, so the vendor legitimately does not hold it. Benign, not drift. -missing-from-vendor: a draft the vendor no longer holds. Resolves the ambiguity left by a failedremoveFromCart: the line really is gone.
Signature:
export type MedicationCartLineStatus = 'in-sync' | 'vendor-only' | 'not-staged' | 'missing-from-vendor';