bed_assignments table
The bed_assignments table in the Hospital Management System Database Schema schema has 5 columns, keyed by id, with 2 foreign keys to admissions and beds.
A patient can be moved between beds. released_at null means currently occupying.
Columns (5)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| admission_id | uuid | not null, references admissions.id | |
| bed_id | uuid | not null, references beds.id | |
| assigned_at | timestamptz | not null | |
| released_at | timestamptz |
Indexes (2)
(admission_id, assigned_at)(bed_id, released_at)
Relationships
bed_assignments.admission_idreferencesadmissions.idbed_assignments.bed_idreferencesbeds.id