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)

Columns of the imaging_studies table
ColumnTypeConstraintsDescription
iduuidprimary key
encounter_iduuidnot null, references encounters.id
ordered_by_staff_iduuidnot null, references staff.id
performed_by_staff_iduuidreferences staff.id
modalityimaging_modalitynot null
body_sitevarchar(120)
statuslab_order_statusnot null
ordered_attimestamptznot null
performed_attimestamptz
reporttext
accession_numbervarchar(40)unique

Indexes (1)

  • (encounter_id, ordered_at)

Relationships

  • imaging_studies.encounter_id references encounters.id
  • imaging_studies.ordered_by_staff_id references staff.id
  • imaging_studies.performed_by_staff_id references staff.id