patient_allergies table

The patient_allergies table in the Hospital Management System Database Schema schema has 7 columns, keyed by id, with 3 foreign keys to patients, allergens and staff.

Read by the pharmacy module before any prescription is written.

Columns (7)

Columns of the patient_allergies table
ColumnTypeConstraintsDescription
iduuidprimary key
patient_iduuidnot null, references patients.id
allergen_iduuidnot null, references allergens.id
severityseveritynot null
reactionvarchar(255)
recorded_attimestamptznot null
recorded_by_staff_iduuidreferences staff.id

Indexes (1)

  • (patient_id, allergen_id) unique

Relationships

  • patient_allergies.patient_id references patients.id
  • patient_allergies.allergen_id references allergens.id
  • patient_allergies.recorded_by_staff_id references staff.id