ORSchedule
ComplexED & periop
<co-or-schedule>ORSchedule lays out the day's surgical cases per operating room on a timeline, with case status, delays, the current time and room utilization; SurgeryBoard shows the same cases as a status board table.
import { ORSchedule } from 'health-components';
Examples
Showcase
Status Board
Family Board
Empty
Usage
<ORSchedule rooms={rooms} cases={cases} now="10:40" />
<SurgeryBoard rooms={rooms} cases={cases} publicView />
When to use
- OR desk and anesthesia coordinator planning.
- Surgery status board for staff (board variant) and families (publicView).
When not to use
- Clinic appointments: Calendar.
Variants and states
| Variant | What it is |
|---|---|
| timeline | Rooms as rows, cases as blocks positioned by start and duration; red Now line. |
| board | SurgeryBoard: table by room and start. |
| statuses | Scheduled, Pre-op, In Room, Anesthesia Ready, Incision, Closing, PACU, Complete, Delayed, Cancelled, Add-on. |
| delayed | Block shifts by the delay, red border, reason shown on the board. |
| cancelled | Struck through. |
| utilization | Per room, flagged below 70%. |
| publicView | Board hides names for family display. |
| empty | No cases booked. |
Accessibility
- Timeline is a grid; each case block is focusable with a full spoken label (time, procedure, surgeon, status).
- Status is text inside the block and a tag on the board.
- Times use 24-hour HH:MM in tabular figures.
Do and don't
- Do: Show laterality on the board.
- Do: Show delay reasons.
- Don't: Show patient names on a family-facing display.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
rooms * | ORRoom[] | — | Operating rooms, top to bottom; required |
cases * | ORCase[] | — | Cases of the day; required |
variant | ORScheduleVariant | 'timeline' | 'timeline' (rooms as rows, cases as blocks) | 'board' (status table) |
dayStart | string | '07:00' | Timeline start 'HH:MM' |
dayEnd | string | '19:00' | Timeline end 'HH:MM' |
now | string | none | Current time 'HH:MM' for the red Now line |
publicView | boolean | false | Board for families: shows publicId instead of names |
date | string | 'this day' | Day shown in the empty state |
title | string | 'OR Schedule' (timeline) or 'Surgery Status Board' (board) | Card title |
subtitle | string | none | Line under the title |
rangeContext | RangeContextId | 'ed' when no global context is set | Which shared reference range flags use; the lab range on a result still wins |
Also accepts native attributes, including defaultChecked, defaultValue, autoFocus, plus className and event handlers on the root element.
Angular, Vue and HTML
Register the elements once (Angular guide), then use <co-or-schedule>. Attributes take strings; arrays and objects are set as properties (Angular [prop], Vue :prop) or as JSON attributes. Callbacks are DOM events with the value in event.detail.
Angular template
<co-or-schedule variant="…" day-start="…" [rooms]="rooms"></co-or-schedule>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | rooms | Operating rooms, top to bottom; required |
| property / JSON attribute | cases | Cases of the day; required |
| attribute | variant | 'timeline' (rooms as rows, cases as blocks) | 'board' (status table); default 'timeline' |
| attribute | day-start / dayStart | Timeline start 'HH:MM'; default '07:00' |
| attribute | day-end / dayEnd | Timeline end 'HH:MM'; default '19:00' |
| attribute | now | Current time 'HH:MM' for the red Now line; default none |
| attribute | public-view / publicView | Board for families: shows publicId instead of names; default false |
| attribute | date | Day shown in the empty state; default 'this day' |
| attribute | title | Card title; default 'OR Schedule' (timeline) or 'Surgery Status Board' (board) |
| attribute | subtitle | Line under the title; default none |
| attribute | range-context / rangeContext | Which shared reference range flags use; the lab range on a result still wins; default 'ed' when no global context is set |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus |