Skip to main content

IsolationBadge

BasicInpatient flow<co-isolation-badge>

IsolationBadge names the transmission-based precautions a patient is on, so staff put on the right protection before they enter the room.

import { IsolationBadge } from 'health-components';

Examples​

Showcase​

Storybook

Rule Out​

Storybook

Compact​

Storybook

Usage​

<IsolationBadge type="contact-plus" organism="C. diff" />
<IsolationBadge type="airborne" organism="TB" pending compact size="sm" />

When to use​

  • On the bed board, census rows, patient banner and door signs, wherever a person decides whether to enter a room.

When not to use​

  • Allergies (AllergyBadge) or code status; those are different risks.
  • Standard precautions on every patient: it is hidden by default because it applies to everyone.

Variants and states​

VariantWhat it is
contactGown and gloves. MRSA, VRE, ESBL.
contact-plusContact plus soap and water hand hygiene. C. difficile, norovirus.
dropletSurgical mask within 6 feet. Influenza, pertussis.
airborneN95 and a negative-pressure room. TB, measles, varicella.
airborne-contactBoth, for example disseminated zoster.
neutropenicProtective precautions for the patient.
standardHidden unless showStandard.
organismOrganism in brackets.
pendingRule-out: on precautions while the test is pending.
compactDrops the "Isolation:" prefix in dense rows.
size smFor bed tiles and table cells.

Accessibility​

  • The precaution is in words, never colour alone; the shield icon is decorative.
  • The tooltip names the protection to wear.

Do and don't​

  • Do: Show the organism when it is known.
  • Do: Mark rule-out precautions as pending.
  • Don't: Abbreviate to colour dots only.
  • Don't: Show "Standard" on every patient.

Props​

PropTypeDefaultDescription
type *IsolationType—'contact' | 'contact-plus' | 'droplet' | 'airborne' | 'airborne-contact' | 'neutropenic' | 'standard'; required
organismstringnoneOrganism, shown in brackets ('MRSA')
pendingbooleanfalseRule-out: on precautions while the test is pending
compactbooleanfalseDrops the "Isolation:" prefix in dense rows
size'sm' | 'md''md''sm' | 'md'
showStandardbooleanbecause it applies to everyone); default falseShows 'standard' (hidden by

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-isolation-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-isolation-badge type="…" organism="…" [defaultValue]="defaultValue"></co-isolation-badge>
KindNameDescription
attributetype'contact' | 'contact-plus' | 'droplet' | 'airborne' | 'airborne-contact' | 'neutropenic' | 'standard'; required
attributeorganismOrganism, shown in brackets ('MRSA'); default none
attributependingRule-out: on precautions while the test is pending; default false
attributecompactDrops the "Isolation:" prefix in dense rows; default false
attributesize'sm' | 'md'; default 'md'
attributeshow-standard / showStandardShows 'standard' (hidden by default because it applies to everyone); default false
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus