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
Compact
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
| Variant | What it is |
|---|---|
| icu, nicu | Danger tone. |
| stepdown, boarding | Warning tone. |
| tele, l-d | Info tone. |
| medsurg, psych | Neutral. |
| obs | AI purple, so it stands apart: observation is an outpatient status. |
| pendingTo | Shows "ICU -> Step-down pending". |
| compact | Label 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
| Prop | Type | Default | Description |
|---|---|---|---|
level * | LevelOfCare | — | 'icu' | 'stepdown' | 'tele' | 'medsurg' | 'obs' | 'boarding' | 'l-d' | 'nicu' | 'psych'; required |
pendingTo | LevelOfCare | none | A requested change of level, shown as "ICU → Step-down pending" |
compact | boolean | false | Short 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>
| Kind | Name | Description |
|---|---|---|
| attribute | level | 'icu' | 'stepdown' | 'tele' | 'medsurg' | 'obs' | 'boarding' | 'l-d' | 'nicu' | 'psych'; required |
| attribute | pending-to / pendingTo | A requested change of level, shown as "ICU → Step-down pending"; default none |
| attribute | compact | Short label only (hides the pending change); default false |
| attribute | size | 'sm' | 'md'; default 'md' |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus |