medOS Revenue
Charge Capture Billing
Order → pending charge → posted → sales order → cashier
Every order posts a pending charge line the moment it's placed; the line is captured atomically when care happens. Pricing resolves through one Postgres function against a 34,000-SKU menu — no silent zeros, no blocked care.
ORDERPENDINGCAPTUREDSOCASHIER
itemstage฿ price
LAB-0042CBC — complete blood count
paid฿180XR-1107Chest X-ray PA upright
sales-order฿420ER-STAYER bed stay · 142 min
realized฿1,860MED-2231Ceftriaxone 1 g IV
realized฿96MR-0218MRI brain with contrast
pending฿8,500IMP-0095Titanium plate implantno silent zero
needs_pricing—append-only · 34,205 SKUs · resolve_menu_price()
Capabilities
Append-only billable_ledger — the one spine ER, IPD, OR and LR write to
resolve_menu_price(): contract-overrides-payor resolution with price history
Atomic realize/void functions; labour cancel cascades handled
needs_pricing flag — nothing silently bills at zero
Consume-to-charge: patient-scoped stock issues post to the ledger automatically