Skip to main content

LevelOfCareBadge

BasicInpatient flow<co-level-of-care-badge>

LevelOfCareBadge shows how much monitoring a patient needs, from observation to ICU, and a pending change in level.

import { LevelOfCareBadge } from 'health-components';

Examples​

Showcase​

Storybook

Compact​

Storybook

Usage​

<LevelOfCareBadge level="icu" pendingTo="stepdown" />

When to use​

  • Bed board, census, ADT and transfer review, next to the patient or the unit.

When not to use​

  • Billing status alone; observation vs inpatient status has its own rules and is shown in ADTPanel.

Variants and states​

VariantWhat it is
icu, nicuDanger tone.
stepdown, boardingWarning tone.
tele, l-dInfo tone.
medsurg, psychNeutral.
obsAI purple, so it stands apart: observation is an outpatient status.
pendingToShows "ICU -> Step-down pending".
compactLabel only.

Accessibility​

  • Full level name is in the tooltip; the arrow is read as text.

Do and don't​

  • Do: Show a pending downgrade so nobody assigns an ICU bed twice.
  • Don't: Use it for acuity scores; those are numbers with their own scale.

Props​

PropTypeDefaultDescription
level *LevelOfCare—'icu' | 'stepdown' | 'tele' | 'medsurg' | 'obs' | 'boarding' | 'l-d' | 'nicu' | 'psych'; required
pendingToLevelOfCarenoneA requested change of level, shown as "ICU → Step-down pending"
compactbooleanfalseShort label only (hides the pending change)
size'sm' | 'md''md''sm' | 'md'

Also accepts native attributes, including defaultChecked, defaultValue, autoFocus, plus className and event handlers on the root element.

Angular, Vue and HTML​

Register the elements once (Angular guide), then use <co-level-of-care-badge>. Attributes take strings; arrays and objects are set as properties (Angular [prop], Vue :prop) or as JSON attributes. Callbacks are DOM events with the value in event.detail.

Angular template
<co-level-of-care-badge level="…" pending-to="…" [defaultValue]="defaultValue"></co-level-of-care-badge>
KindNameDescription
attributelevel'icu' | 'stepdown' | 'tele' | 'medsurg' | 'obs' | 'boarding' | 'l-d' | 'nicu' | 'psych'; required
attributepending-to / pendingToA requested change of level, shown as "ICU → Step-down pending"; default none
attributecompactShort label only (hides the pending change); default false
attributesize'sm' | 'md'; default 'md'
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus