VitalsPanel
ComplexClinical
<co-vitals-panel>VitalsPanel groups VitalSign tiles in a Card with Enter Vitals.
import { VitalsPanel } from 'health-components';
Examples
Adult With Criticals
Read Only
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
| Variant | What it is |
|---|---|
| editable | Enter Vitals. |
| readOnly | No 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
| Prop | Type | Default | Description |
|---|---|---|---|
items * | VitalSignProps[] | — | VitalSign props[]; required |
subtitle | ReactNode | none | Line under the title ("entered by Lisa Chen RN, 10:12 AM") |
readOnly | boolean | false | Hides Enter Vitals |
onEnterVitals | () => void | none | Enter 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>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | items | VitalSign props[]; required |
| attribute | read-only / readOnly | Hides Enter Vitals; default false |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-enter-vitals | Enter Vitals clicked; default none (React: onEnterVitals) |
| slot | subtitle | Line under the title ("entered by Lisa Chen RN, 10:12 AM"); default none Plain text also works as the `subtitle` attribute. |