Visiting status card

A ward's visiting rules at a glance: open, restricted or closed, today's hours, the rules for visitors and any outbreak notice.

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

Previews

Visiting status
Canvas
Visiting status
Corner
Visiting status
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

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

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

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.

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "visiting-status",
  "primitive": "card",
  "card": "visiting-status",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "visiting-status-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/visiting-status-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"status":"open","hours":[],"rules":[],"notice":""}}'