lab_orders table
The lab_orders table in the Hospital Management System Database Schema schema has 7 columns, keyed by id, with 2 foreign keys to encounters and staff. 1 column in lab_order_items references it.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| encounter_id | uuid | not null, references encounters.id | |
| ordered_by_staff_id | uuid | not null, references staff.id | |
| status | lab_order_status | not null | |
| priority | order_priority | not null | |
| ordered_at | timestamptz | not null | |
| collected_at | timestamptz |
Indexes (2)
(encounter_id, ordered_at)(status, priority)
Relationships
lab_orders.encounter_idreferencesencounters.idlab_orders.ordered_by_staff_idreferencesstaff.idlab_order_items.lab_order_idreferenceslab_orders