Ordered most serious first, this lists the recalls of the health or food agency of the United States, Canada or Great Britain, and the recalls and shortages you supply. Each entry names the product, gives the reason, states the recall class, and shows when it was issued. A list of recent enforcement reports, such as the FDA's, is labelled so.
Live card
Category: Health. Tags: Alerts and status, Healthcare.
Data and privacy
Feed: screenrig.drugalerts/v1.
Feed documents carry source attribution. The Player supplies the feed to the card.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "" | maxLength: 40 | Empty uses Drug alerts, or Food recalls for the food category. |
country | string | "" | "", "us", "ca", "gb" | The health or food agency whose recall reports fill the board: us (FDA), ca (Health Canada, CFIA) or gb (MHRA, FSA). Empty shows the alerts supplied in the data store. |
category | string | "drug" | "drug", "food" | Which recalls the country's agency supplies: drug or food. |
show | string | "all" | "all", "recalls", "shortages" | Which alerts the board lists. |
maxAgeDays | integer | 90 | minimum: 1; maximum: 730 | Alerts issued longer ago than this are left out. |
staleMinutes | integer | 1440 | minimum: 1; maximum: 10080 | A feed older than this shows how long ago it updated. |
timeZone | string, null | null | IANA zone; null uses the screen's zone. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
alerts | array | [] | minItems: 0; maxItems: 40 | Alerts, the same document as the screenrig.drugalerts/v1 feed's alerts. The feed wins when present. |
alerts[].kind | string | "recall", "shortage"; Required | ||
alerts[].drug | string | minLength: 1; maxLength: 60; Required | ||
alerts[].reason | string | "" | maxLength: 140 | |
alerts[].class | string | "" | "I", "II", "III", "" | A recall's class, I the most serious. |
alerts[].agency | string | "" | maxLength: 24 | FDA, Health Canada. |
alerts[].issued | string | "" | maxLength: 32 | Date or ISO 8601 instant. |
alerts[].status | string | "ongoing" | "ongoing", "resolved" | |
footnote | string | "" | maxLength: 140 | |
updatedAt | string | "" | maxLength: 64 | Optional supplied-data update instant; a feed uses its fetchedAt. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type drug-alerts --major 1 --file params.json --context-file context.md
Example data
{
"alerts": [],
"footnote": "",
"updatedAt": ""
}
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.