Skip to main content

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​

Storybook

Status Board​

Storybook

Family Board​

Storybook

Empty​

Storybook

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​

VariantWhat it is
timelineRooms as rows, cases as blocks positioned by start and duration; red Now line.
boardSurgeryBoard: table by room and start.
statusesScheduled, Pre-op, In Room, Anesthesia Ready, Incision, Closing, PACU, Complete, Delayed, Cancelled, Add-on.
delayedBlock shifts by the delay, red border, reason shown on the board.
cancelledStruck through.
utilizationPer room, flagged below 70%.
publicViewBoard hides names for family display.
emptyNo 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​

PropTypeDefaultDescription
rooms *ORRoom[]—Operating rooms, top to bottom; required
cases *ORCase[]—Cases of the day; required
variantORScheduleVariant'timeline''timeline' (rooms as rows, cases as blocks) | 'board' (status table)
dayStartstring'07:00'Timeline start 'HH:MM'
dayEndstring'19:00'Timeline end 'HH:MM'
nowstringnoneCurrent time 'HH:MM' for the red Now line
publicViewbooleanfalseBoard for families: shows publicId instead of names
datestring'this day'Day shown in the empty state
titlestring'OR Schedule' (timeline) or 'Surgery Status Board' (board)Card title
subtitlestringnoneLine under the title
rangeContextRangeContextId'ed' when no global context is setWhich 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>
KindNameDescription
property / JSON attributeroomsOperating rooms, top to bottom; required
property / JSON attributecasesCases of the day; required
attributevariant'timeline' (rooms as rows, cases as blocks) | 'board' (status table); default 'timeline'
attributeday-start / dayStartTimeline start 'HH:MM'; default '07:00'
attributeday-end / dayEndTimeline end 'HH:MM'; default '19:00'
attributenowCurrent time 'HH:MM' for the red Now line; default none
attributepublic-view / publicViewBoard for families: shows publicId instead of names; default false
attributedateDay shown in the empty state; default 'this day'
attributetitleCard title; default 'OR Schedule' (timeline) or 'Surgery Status Board' (board)
attributesubtitleLine under the title; default none
attributerange-context / rangeContextWhich shared reference range flags use; the lab range on a result still wins; default 'ed' when no global context is set
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus