NursingAssessment
ComplexInpatient nursing
<co-nursing-assessment>NursingAssessment is the head-to-toe shift assessment: one row per body system with a WDL or Exception choice, finding chips and a note for exceptions.
import { NursingAssessment } from 'health-components';
Examples
Mixed
Admission
Signed
Usage
<NursingAssessment subtitle="Day shift, 08:20" systems={systems} values={saved} onChange={save} />
When to use
- Admission and every-shift assessments on inpatient units.
When not to use
- Provider physical exam: use the note template.
- A single focused assessment such as wound or pain: WoundCareDoc, PainScale.
Variants and states
| Variant | What it is |
|---|---|
| not assessed | Shows what WDL means for the system. |
| WDL | Within defined limits; shows the unit definition. |
| Exception | Finding chips plus a free-text note. |
| Mark remaining WDL | Fills only untouched systems. |
| signed | readOnly with Signed badge. |
Accessibility
- Each system is a group with a radiogroup for WDL or Exception.
- Finding chips are toggle buttons with aria-pressed.
- Progress is text plus a ProgressBar.
Do and don't
- Do: Show the WDL definition so "WDL" is not a guess.
- Don't: Let "Mark remaining WDL" overwrite systems already charted.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
systems | NursingSystem[] | DEFAULT_NURSING_SYSTEMS (eight systems) | Body systems |
values | Record<string, NursingSystemValue> | none (not assessed) | Saved answers by system id (initial) |
readOnly | boolean | false | Signed, view only |
onChange | (id: string, value: NursingSystemValue) => void | — | Called with the system id and its new answer |
title | string | 'Head-to-toe Assessment' | Card title |
subtitle | string | none | Shift line |
rangeContext | RangeContextId | 'inpatient' | Accepted for API consistency with the nursing set |
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-nursing-assessment>. 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-nursing-assessment read-only title="…" [systems]="systems" (co-change)="onChange($event.detail)"></co-nursing-assessment>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | systems | Body systems; default DEFAULT_NURSING_SYSTEMS (eight systems) |
| property / JSON attribute | values | Saved answers by system id (initial); default none (not assessed) |
| attribute | read-only / readOnly | Signed, view only; default false |
| attribute | title | Card title; default 'Head-to-toe Assessment' |
| attribute | subtitle | Shift line; default none |
| attribute | range-context / rangeContext | Accepted for API consistency with the nursing set; default 'inpatient' |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-change | Called with the system id and its new answer (React: onChange) |