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



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
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Visiting" | maxLength: 40 | |
ward | string | "" | maxLength: 40 | The ward or unit the rules belong to, beside the title. |
hour12 | boolean | false | ||
timeZone | string, null | null | IANA zone; null uses the screen's zone. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
status | string | "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. |
hours | array | [] | minItems: 0; maxItems: 7 | Visiting hours. Left empty, visiting runs all day while the status allows it. |
hours[].days | array | [] | maxItems: 7 | The days these hours apply to. Left out or empty, every day. |
hours[].start | string | maxLength: 8; Required | Start in the screen's time zone: 14:00 or 2:00 PM. | |
hours[].end | string | maxLength: 8; Required | End. Earlier than the start means past midnight. | |
rules | array | [] | minItems: 0; maxItems: 6 | Short rules for visitors, one line each: Two visitors at a time. |
notice | string | "" | maxLength: 160 | A 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":""}}'