lab_results table
The lab_results table in the Hospital Management System Database Schema schema has 8 columns, keyed by id, with 3 foreign keys to lab_order_items, staff and lab_results.
A correction is a new row pointing at the one it replaces. Results are never overwritten.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| lab_order_item_id | uuid | not null, references lab_order_items.id | |
| value_numeric | decimal(12,4) | ||
| value_text | varchar(255) | ||
| is_abnormal | boolean | not null | |
| resulted_at | timestamptz | not null | |
| verified_by_staff_id | uuid | references staff.id | |
| supersedes_result_id | uuid | references lab_results.id |
Indexes (1)
(lab_order_item_id, resulted_at)
Relationships
lab_results.lab_order_item_idreferenceslab_order_items.idlab_results.verified_by_staff_idreferencesstaff.idlab_results.supersedes_result_idreferenceslab_results.id