Skip to main content

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​

Storybook

Not Started​

Storybook

Nurse Override​

Storybook

Signed​

Storybook

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​

VariantWhat it is
emptyNo suggestion until A, B or C is answered.
ESI 1 to 5Suggested level with the decision point that produced it.
danger zoneTwo or more resources plus HR above 100, RR above 20 or SpO2 below 92% suggests ESI 2.
overrideNurse override; the suggested level stays visible in the reason.
isolation screenWarning alert at the top.
errorsshowErrors marks the missing complaint.
readOnlySigned 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​

PropTypeDefaultDescription
defaultValuesTriageValues{}Initial answers (the form is uncontrolled)
isolationstringnonePositive isolation screen name, shown as a warning
showErrorsbooleanfalseMarks a missing chief complaint
readOnlybooleanfalseSigned triage: every field locked, no actions
subtitlestringnoneCard subtitle (patient, arrival time)
onSubmit(values: TriageSubmitValues) => voidnoneCalled by Complete Triage with the values and the final ESI
onSaveDraft(values: TriageSubmitValues) => voidnoneCalled by Save Draft
rangeContextRangeContextId'ed' when no global context is setWhich 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>
KindNameDescription
property / JSON attributedefault-values / defaultValuesInitial answers (the form is uncontrolled); default {}
attributeisolationPositive isolation screen name, shown as a warning; default none
attributeshow-errors / showErrorsMarks a missing chief complaint; default false
attributeread-only / readOnlySigned triage: every field locked, no actions; default false
attributesubtitleCard subtitle (patient, arrival time); default none
attributerange-context / rangeContextWhich shared reference range flags use; the lab range on a result still wins; default 'ed' when no global context is set
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-submitCalled by Complete Triage with the values and the final ESI; default none (React: onSubmit)
eventco-save-draftCalled by Save Draft; default none (React: onSaveDraft)