Blood supply card

Blood-type inventory levels: eight types as filling bags, and who is needed most.

Category: Health. Tags: Healthcare, Charts and gauges, Numbers and metrics.

Previews

Blood supply
Canvas
Blood supply
Corner
Blood supply
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.

Shows stock levels by blood type only; never donor names, appointments or patient information.

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"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.

Canvas example

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

{
  "id": "blood-supply",
  "primitive": "card",
  "card": "blood-supply",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "blood-supply-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/blood-supply-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"updatedAt":"","types":[],"appeal":""}}'