Drug alerts card

Drug or food recalls and shortages, most serious first, with the product, reason, recall class, and issue date.

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

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

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

NameTypeDefaultValues and limitsDescription
titlestring""maxLength: 40Empty uses Drug alerts, or Food recalls for the food category.
countrystring"""", "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.
categorystring"drug""drug", "food"Which recalls the country's agency supplies: drug or food.
showstring"all""all", "recalls", "shortages"Which alerts the board lists.
maxAgeDaysinteger90minimum: 1; maximum: 730Alerts issued longer ago than this are left out.
staleMinutesinteger1440minimum: 1; maximum: 10080A feed older than this shows how long ago it updated.
timeZonestring, nullnullIANA zone; null uses the screen's zone.

Dynamic properties

NameTypeDefaultValues and limitsDescription
alertsarray[]minItems: 0; maxItems: 40Alerts, the same document as the screenrig.drugalerts/v1 feed's alerts. The feed wins when present.
alerts[].kindstring"recall", "shortage"; Required
alerts[].drugstringminLength: 1; maxLength: 60; Required
alerts[].reasonstring""maxLength: 140
alerts[].classstring"""I", "II", "III", ""A recall's class, I the most serious.
alerts[].agencystring""maxLength: 24FDA, Health Canada.
alerts[].issuedstring""maxLength: 32Date or ISO 8601 instant.
alerts[].statusstring"ongoing""ongoing", "resolved"
footnotestring""maxLength: 140
updatedAtstring""maxLength: 64Optional 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.