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)

Columns of the lab_results table
ColumnTypeConstraintsDescription
iduuidprimary key
lab_order_item_iduuidnot null, references lab_order_items.id
value_numericdecimal(12,4)
value_textvarchar(255)
is_abnormalbooleannot null
resulted_attimestamptznot null
verified_by_staff_iduuidreferences staff.id
supersedes_result_iduuidreferences lab_results.id

Indexes (1)

  • (lab_order_item_id, resulted_at)

Relationships