🗂️ Anesthesia Data Model — The Big Picture (1 of 2)

Everything hangs off one spine: anesthesia_cases. Tables are grouped by the case lifecycle phase. This board = the chart; board 2-of-2 = billing & the charge bridge.

Cardinality: 1──1 exactly one child per case · 1──N many children per case.  |  Every table below is RLS-scoped by organization_id.  |  Colors = lifecycle phase.

shared cases  Â·  one platform case (GI / anesthesia share it)
↓  1──1  (anesthesia_cases.case_id)
anesthesia_cases
THE SPINE — one row per anesthesia case. Every other table FKs to anesthesia_cases.id.
status · anesthesia_type · asa_classification · is_emergency · anesthesiologist_id / crna_id · signatures · is_locked · charge_ticket_status

🟢 Pre-Op

anesthesia_cases 1──1
anesthesia_pre_op
Driven by SynForm pre-anesthesia-v1.

🟣 Procedures NEW

anesthesia_cases 1──N
anesthesia_procedures
Feeds billing via the bridge → see board 2.

🟡 PACU / Recovery

anesthesia_cases 1──1
anesthesia_pacu
anesthesia_pacu 1──N
anesthesia_pacu_scores
Aldrete time-series (activity·resp·circ·conscious·O₂)

⚪ Audit

cases 1──N
anesthesia_chart_amendments
INSERT/SELECT only — no UPDATE/DELETE.

🔵 Intra-Op — the live chart (high-frequency time-series)

anesthesia_cases 1──N each (BIGSERIAL for the hot tables)

🔵 Intra-Op — Equipment & lines

anesthesia_cases 1──1
anesthesia_equipment
anesthesia_equipment 1──N
anesthesia_vascular_lines
peripheral IV / central / arterial / PICC — type, gauge, site, attempts

⚙️ Device Bridge — HL7 / monitor ingest (optional integration path)

anesthesia_devices (monitor/vent/gas-machine registry, per org) ──1:N──▶ anesthesia_device_assignments (device ⇄ case, time-windowed) ──1:N──▶ anesthesia_raw_messages (raw inbound, audit) ──1:N──▶ anesthesia_observations (normalized HR=72, SpO₂=98 → feed the chart)

Source: anesthesia migrations under backend/clinical-api/.../Modules/Anesthesia/Migrations + backend/aims-api/database/migrations. Key columns shown are illustrative — full column lists & the ER diagram are in the mermaid artifact.