Units, rooms & beds
Create and manage assignable beds within rooms and units.
Last updated on
Units, rooms & beds
Units
A unit groups rooms under a floor — typically a ward, ICU pod, or hotel floor zone. Units expose:
- Display name and sort order
- Room and bed counts (computed)
- Available vs occupied bed counts
Rooms
Rooms belong to a unit. Each room has a name/number and holds one or more beds. Deleting a room is blocked while beds still exist.
Beds
Beds are the atomic assignable resource. Required fields:
| Field | Description |
|---|---|
| Label | Bed identifier within the room (A, B, 1…) |
| Status | Available, occupied, reserved, cleaning, maintenance, blocked |
| Department | Optional link for search filters and reporting |
| Tags | Equipment, isolation, gender policy, etc. |
Reservations
Plans may define maximum reservation minutes. Reserved beds auto-release when the timer expires (configurable per tenant).
Hierarchy search
The buildings search API returns a flattened hierarchy matching sidebar queries — useful for command palette navigation and external integrations.