WoundCareDoc
ComplexInpatient nursing
<co-wound-care-doc>WoundCareDoc documents one wound: site, stage and cause, length, width and depth in cm with computed area and change since first measure, tissue mix, exudate, treatment and the measurement history.
import { WoundCareDoc } from 'health-components';
Examples
Healing
Worsening
Unstageable Read Only
Usage
<WoundCareDoc wound={sacrum} history={measurements} onSave={save} />
When to use
- Pressure injuries, surgical wounds, diabetic foot ulcers, venous ulcers.
When not to use
- Risk only, no wound: BradenScore.
- Body location picking: BodyMap.
Variants and states
| Variant | What it is |
|---|---|
| editable | Inputs for L, W, D; area updates as you type. |
| healing | Area change negative, shown green. |
| worsening | Area change positive, shown red; Stage 4 or Unstageable shows red stage badge. |
| hospital-acquired | Red badge. |
| tissue check | Warns when percentages do not add to 100. |
| readOnly | Values only. |
Accessibility
- Inputs are labelled with their unit.
- Tissue bar has an aria-label listing each tissue and percent.
- Area change has a sign character, not only colour.
Do and don't
- Do: Measure head-to-toe for length and side-to-side for width every time.
- Don't: Compare areas taken with different methods.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
wound * | Wound | — | The wound; required |
history | WoundHistoryEntry[] | [] | Measurement history, oldest first |
readOnly | boolean | false | View only |
onSave | (current: WoundMeasure) => void | — | Called with the current assessment on Save wound assessment |
onAddPhoto | () => void | none | Called on Add photo |
title | string | 'Wound Care' | Card title |
subtitle | string | none | Patient line |
rangeContext | RangeContextId | 'inpatient' when no global context is set | Which shared reference range flags use |
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-wound-care-doc>. 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-wound-care-doc read-only title="…" [wound]="wound" (co-save)="onSave($event.detail)"></co-wound-care-doc>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | wound | The wound; required |
| property / JSON attribute | history | Measurement history, oldest first; default [] |
| attribute | read-only / readOnly | View only; default false |
| attribute | title | Card title; default 'Wound Care' |
| attribute | subtitle | Patient line; default none |
| attribute | range-context / rangeContext | Which shared reference range flags use; default 'inpatient' when no global context is set |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-save | Called with the current assessment on Save wound assessment (React: onSave) |
| event | co-add-photo | Called on Add photo; default none (React: onAddPhoto) |