Blood Supply card

Eight blood types as filling bags, highlighting who is needed most.

Filling bags display inventory levels across eight blood types and identify who is needed most.

Live card

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

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

NameTypeDefaultValues and limitsDescription
titlestring"Blood supply"maxLength: 40
targetDaysnumber6minimum: 0.5; maximum: 30Days of supply that count as the full target when only days are given.
criticalBelownumber25minimum: 1; maximum: 100Below this percent of target a type is critical.
lowBelownumber50minimum: 1; maximum: 100Below this percent of target a type is low.
staleMinutesinteger1440minimum: 1; maximum: 20160Levels older than this show how long ago they were updated.

Dynamic properties

NameTypeDefaultValues and limitsDescription
updatedAtstring""maxLength: 40When the levels were last updated, as an ISO 8601 instant. Empty shows no age.
typesarray[]minItems: 0; maxItems: 8Blood types and their levels. A type left out shows No data.
types[].typestringminLength: 1; maxLength: 16; RequiredA, B, AB or O with + or - (O-, AB pos, A negative).
types[].statusstring"""critical", "low", "adequate", "good", ""Overrides the status worked out from percent or days.
types[].percentnumber, nullnullminimum: 0; maximum: 300Stock as a percentage of the target.
types[].daysnumber, nullnullminimum: 0; maximum: 99Days of supply on hand.
appealstring""maxLength: 140A 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.