Visiting status card

Ward visiting at a glance: open, restricted or closed, with today's hours, visitor rules and any outbreak notice.

Show whether ward visiting is open, restricted, closed or outside scheduled hours, together with today’s hours, visitor rules and any supplied notice.

Live card

This card is drawn in your browser by the same code the Players run, with sample data.

Category: Health. Tags: Healthcare, Alerts and status.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Visiting"maxLength: 40
wardstring""maxLength: 40The ward or unit the rules belong to, beside the title.
hour12booleanfalse
timeZonestring, nullnullIANA zone; null uses the screen's zone.

Dynamic properties

NameTypeDefaultValues and limitsDescription
statusstring"open""open", "restricted", "closed"open: visitors welcome in visiting hours. restricted: visitors welcome in visiting hours under the rules below. closed: no visiting, as in an outbreak.
hoursarray[]minItems: 0; maxItems: 7Visiting hours. Left empty, visiting runs all day while the status allows it.
hours[].daysarray[]maxItems: 7The days these hours apply to. Left out or empty, every day.
hours[].startstringmaxLength: 8; RequiredStart in the screen's time zone: 14:00 or 2:00 PM.
hours[].endstringmaxLength: 8; RequiredEnd. Earlier than the start means past midnight.
rulesarray[]minItems: 0; maxItems: 6Short rules for visitors, one line each: Two visitors at a time.
noticestring""maxLength: 160A notice in the status colour: why visiting is restricted or closed.
updatedAtstring""maxLength: 64Optional visiting-rule update instant for a synchronized Primetime cue.

Example params

{
  "theme": "neomustard"
}
screenrig card create --type visiting-status --major 1 --file params.json --context-file context.md

Example data

{
  "status": "open",
  "hours": [],
  "rules": [],
  "notice": "",
  "updatedAt": ""
}

Layouts

This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.

Layouts: full. Forms: landscape, portrait.

Use this card

Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.