referrals table
The referrals table in the Hospital Management System Database Schema schema has 8 columns, keyed by id, with 4 foreign keys to encounters, staff and specialties.
referred_to_staff_id may be null when the referral names a specialty rather than a named clinician.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| encounter_id | uuid | not null, references encounters.id | |
| referring_staff_id | uuid | not null, references staff.id | |
| referred_to_staff_id | uuid | references staff.id | |
| specialty_id | uuid | references specialties.id | |
| reason | varchar(255) | not null | |
| status | referral_status | not null | |
| created_at | timestamptz | not null |
Relationships
referrals.encounter_idreferencesencounters.idreferrals.referring_staff_idreferencesstaff.idreferrals.referred_to_staff_idreferencesstaff.idreferrals.specialty_idreferencesspecialties.id