CarePlanByShift
ComplexInpatient nursing
<co-care-plan-by-shift>CarePlanByShift shows each nursing problem with its goal, goal status and the interventions charted Done, Partly, Not done or N/A for each shift; only the current shift is editable.
import { CarePlanByShift } from 'health-components';
Examples
Evening Current
Nicu Read Only
Usage
<CarePlanByShift currentShift={1} problems={plan} />
When to use
- Daily inpatient nursing care plan review and charting.
When not to use
- Interdisciplinary long-term plans: CarePlanCard.
Variants and states
| Variant | What it is |
|---|---|
| goal status | Goal met, Progressing, Not progressing, New. |
| shift status | Done, Partly, Not done, N/A, Upcoming. |
| current shift | Marked column; select a status to cycle it. |
| priority | Priority badge on a problem. |
| measure | Latest value toward the goal, formatted. |
| readOnly | No editing. |
Accessibility
- Each problem is a labelled section with its own table and caption.
- Editable cells are buttons that say the current status.
Do and don't
- Do: Tie the goal to a number when one exists.
- Don't: Let nurses chart past shifts from this view.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
problems * | CarePlanProblem[] | — | Problems; required |
shifts | string[] | ['Day 07-15', 'Evening 15-23', 'Night 23-07'] | Shift labels |
currentShift | number | none (nothing editable) | Index of the current (only editable) shift |
readOnly | boolean | false | View only |
onStatusChange | (e: CarePlanStatusChange) => void | — | Called when a current-shift status is changed (Done, Partly, Not done, N/A in turn) |
title | string | 'Care Plan by Shift' | Card title |
subtitle | string | none | Patient line |
rangeContext | RangeContextId | 'inpatient' when no global context is set | Which shared reference range flags use; a goal measure's own range 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-care-plan-by-shift>. 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-care-plan-by-shift current-shift="…" read-only [problems]="problems" (co-status-change)="onStatusChange($event.detail)"></co-care-plan-by-shift>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | problems | Problems; required |
| property / JSON attribute | shifts | Shift labels; default ['Day 07-15', 'Evening 15-23', 'Night 23-07'] |
| attribute | current-shift / currentShift | Index of the current (only editable) shift; default none (nothing editable) |
| attribute | read-only / readOnly | View only; default false |
| attribute | title | Card title; default 'Care Plan by Shift' |
| attribute | subtitle | Patient line; default none |
| attribute | range-context / rangeContext | Which shared reference range flags use; a goal measure's own range still wins; default 'inpatient' when no global context is set |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-status-change | Called when a current-shift status is changed (Done, Partly, Not done, N/A in turn) (React: onStatusChange) |