TriageForm
ComplexED & periop
<co-triage-form>TriageForm records the chief complaint, arrival mode and triage vitals, and suggests an Emergency Severity Index (ESI v4) level that the nurse confirms or overrides.
import { TriageForm } from 'health-components';
Examples
Showcase
Not Started
Nurse Override
Signed
Usage
<TriageForm onSubmit={saveTriage} defaultValues={{ complaint: "Chest pressure", arrival: "EMS ground" }} />
When to use
- Triage at the ED front door or in a triage room.
When not to use
- Repeat vitals in a room: VitalsPanel. Pediatric triage with PAT: extend the danger-zone limits first.
Variants and states
| Variant | What it is |
|---|---|
| empty | No suggestion until A, B or C is answered. |
| ESI 1 to 5 | Suggested level with the decision point that produced it. |
| danger zone | Two or more resources plus HR above 100, RR above 20 or SpO2 below 92% suggests ESI 2. |
| override | Nurse override; the suggested level stays visible in the reason. |
| isolation screen | Warning alert at the top. |
| errors | showErrors marks the missing complaint. |
| readOnly | Signed triage, all fields locked. |
Accessibility
- Each vital input has a visible label and unit; its flag reads out next to it.
- The ESI result is a polite live region.
- Decision points are checkboxes with plain descriptions.
Do and don't
- Do: Show why the level was suggested.
- Do: Let the nurse override and keep the suggestion on record.
- Don't: Auto-assign ESI without a nurse confirming.
- Don't: Hide abnormal vitals until submit.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
defaultValues | TriageValues | {} | Initial answers (the form is uncontrolled) |
isolation | string | none | Positive isolation screen name, shown as a warning |
showErrors | boolean | false | Marks a missing chief complaint |
readOnly | boolean | false | Signed triage: every field locked, no actions |
subtitle | string | none | Card subtitle (patient, arrival time) |
onSubmit | (values: TriageSubmitValues) => void | none | Called by Complete Triage with the values and the final ESI |
onSaveDraft | (values: TriageSubmitValues) => void | none | Called by Save Draft |
rangeContext | RangeContextId | 'ed' when no global context is set | Which shared reference range flags use; the lab range on a result still wins |
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-triage-form>. 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-triage-form isolation="…" show-errors [defaultValues]="defaultValues" (co-submit)="onSubmit($event.detail)"></co-triage-form>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | default-values / defaultValues | Initial answers (the form is uncontrolled); default {} |
| attribute | isolation | Positive isolation screen name, shown as a warning; default none |
| attribute | show-errors / showErrors | Marks a missing chief complaint; default false |
| attribute | read-only / readOnly | Signed triage: every field locked, no actions; default false |
| attribute | subtitle | Card subtitle (patient, arrival time); default none |
| attribute | range-context / rangeContext | Which shared reference range flags use; the lab range on a result still wins; default 'ed' when no global context is set |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-submit | Called by Complete Triage with the values and the final ESI; default none (React: onSubmit) |
| event | co-save-draft | Called by Save Draft; default none (React: onSaveDraft) |