imaging_studies table
The imaging_studies table in the Hospital Management System Database Schema schema has 11 columns, keyed by id, with 3 foreign keys to encounters and staff.
accession_number is what ties this row to the image itself in the PACS. Pixels never live in this database.
Columns (11)
| 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 | |
| performed_by_staff_id | uuid | references staff.id | |
| modality | imaging_modality | not null | |
| body_site | varchar(120) | ||
| status | lab_order_status | not null | |
| ordered_at | timestamptz | not null | |
| performed_at | timestamptz | ||
| report | text | ||
| accession_number | varchar(40) | unique |
Indexes (1)
(encounter_id, ordered_at)
Relationships
imaging_studies.encounter_idreferencesencounters.idimaging_studies.ordered_by_staff_idreferencesstaff.idimaging_studies.performed_by_staff_idreferencesstaff.id