Skip to main content

VitalsPanel

ComplexClinical<co-vitals-panel>

VitalsPanel groups VitalSign tiles in a Card with Enter Vitals.

import { VitalsPanel } from 'health-components';

Examples​

Adult With Criticals​

Storybook

Read Only​

Storybook

Usage​

<VitalsPanel subtitle="Entered by Lisa Chen RN, 10:12 AM" items={vitals} />

When to use​

  • Chart summary, rooming.

When not to use​

  • Long-term graphs: LineChart.

Variants and states​

VariantWhat it is
editableEnter Vitals.
readOnlyNo button.

Accessibility​

  • Grid of tiles in reading order.

Do and don't​

  • Do: Show who entered and when.
  • Don't: Hide abnormal values below the fold.

Props​

PropTypeDefaultDescription
items *VitalSignProps[]—VitalSign props[]; required
subtitleReactNodenoneLine under the title ("entered by Lisa Chen RN, 10:12 AM")
readOnlybooleanfalseHides Enter Vitals
onEnterVitals() => voidnoneEnter Vitals clicked

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-vitals-panel>. 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-vitals-panel read-only default-checked [items]="items" (co-enter-vitals)="onEnterVitals($event.detail)"></co-vitals-panel>
KindNameDescription
property / JSON attributeitemsVitalSign props[]; required
attributeread-only / readOnlyHides Enter Vitals; default false
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-enter-vitalsEnter Vitals clicked; default none (React: onEnterVitals)
slotsubtitleLine under the title ("entered by Lisa Chen RN, 10:12 AM"); default none Plain text also works as the `subtitle` attribute.