patients table
The patients table in the Hospital Management System Database Schema schema has 11 columns, keyed by id. 9 columns in patient_addresses, emergency_contacts, patient_insurance_policies, patient_allergies and 5 more reference it.
The MRN is the identifier humans use. The uuid is what foreign keys use, so an MRN reissue never breaks history.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| medical_record_number | varchar(32) | unique, not null | |
| first_name | varchar(80) | not null | |
| last_name | varchar(80) | not null | |
| date_of_birth | date | not null | |
| sex | sex_at_birth | not null | |
| blood_type | varchar(3) | ||
| phone | varchar(32) | ||
| varchar(255) | |||
| deceased_at | timestamptz | ||
| created_at | timestamptz | not null |
Indexes (1)
(last_name, first_name, date_of_birth)
Relationships
patient_addresses.patient_idreferencespatientsemergency_contacts.patient_idreferencespatientspatient_insurance_policies.patient_idreferencespatientspatient_allergies.patient_idreferencespatientsappointments.patient_idreferencespatientsencounters.patient_idreferencespatientsadmissions.patient_idreferencespatientsprescriptions.patient_idreferencespatientsinvoices.patient_idreferencespatients