admissions table
The admissions table in the Hospital Management System Database Schema schema has 8 columns, keyed by id, with 3 foreign keys to encounters, patients and staff. 2 columns in bed_assignments and medication_administrations reference it.
Only inpatient encounters get an admission row, which is why this is a one-to-one against encounters.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| encounter_id | uuid | unique, not null, references encounters.id | |
| patient_id | uuid | not null, references patients.id | |
| admitting_staff_id | uuid | not null, references staff.id | |
| status | admission_status | not null | |
| admitted_at | timestamptz | not null | |
| discharged_at | timestamptz | ||
| discharge_disposition | varchar(120) |
Indexes (2)
(patient_id, admitted_at)(status)
Relationships
admissions.encounter_idreferencesencounters.idadmissions.patient_idreferencespatients.idadmissions.admitting_staff_idreferencesstaff.idbed_assignments.admission_idreferencesadmissionsmedication_administrations.admission_idreferencesadmissions