Filling bags display inventory levels across eight blood types and identify who is needed most.
Live card
Category: Health. Tags: Healthcare, Charts and gauges, Numbers and metrics.
Data and privacy
This card uses its configured properties and live card data.
Shows stock levels by blood type only; never donor names, appointments or patient information.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Blood supply" | maxLength: 40 | |
targetDays | number | 6 | minimum: 0.5; maximum: 30 | Days of supply that count as the full target when only days are given. |
criticalBelow | number | 25 | minimum: 1; maximum: 100 | Below this percent of target a type is critical. |
lowBelow | number | 50 | minimum: 1; maximum: 100 | Below this percent of target a type is low. |
staleMinutes | integer | 1440 | minimum: 1; maximum: 20160 | Levels older than this show how long ago they were updated. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
updatedAt | string | "" | maxLength: 40 | When the levels were last updated, as an ISO 8601 instant. Empty shows no age. |
types | array | [] | minItems: 0; maxItems: 8 | Blood types and their levels. A type left out shows No data. |
types[].type | string | minLength: 1; maxLength: 16; Required | A, B, AB or O with + or - (O-, AB pos, A negative). | |
types[].status | string | "" | "critical", "low", "adequate", "good", "" | Overrides the status worked out from percent or days. |
types[].percent | number, null | null | minimum: 0; maximum: 300 | Stock as a percentage of the target. |
types[].days | number, null | null | minimum: 0; maximum: 99 | Days of supply on hand. |
appeal | string | "" | maxLength: 140 | A line under the board, such as how to book a donation. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type blood-supply --major 1 --file params.json --context-file context.md
Example data
{
"updatedAt": "",
"types": [],
"appeal": ""
}
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.