Skip to main content

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​

Storybook

Nicu Read Only​

Storybook

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​

VariantWhat it is
goal statusGoal met, Progressing, Not progressing, New.
shift statusDone, Partly, Not done, N/A, Upcoming.
current shiftMarked column; select a status to cycle it.
priorityPriority badge on a problem.
measureLatest value toward the goal, formatted.
readOnlyNo 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​

PropTypeDefaultDescription
problems *CarePlanProblem[]—Problems; required
shiftsstring[]['Day 07-15', 'Evening 15-23', 'Night 23-07']Shift labels
currentShiftnumbernone (nothing editable)Index of the current (only editable) shift
readOnlybooleanfalseView only
onStatusChange(e: CarePlanStatusChange) => void—Called when a current-shift status is changed (Done, Partly, Not done, N/A in turn)
titlestring'Care Plan by Shift'Card title
subtitlestringnonePatient line
rangeContextRangeContextId'inpatient' when no global context is setWhich 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>
KindNameDescription
property / JSON attributeproblemsProblems; required
property / JSON attributeshiftsShift labels; default ['Day 07-15', 'Evening 15-23', 'Night 23-07']
attributecurrent-shift / currentShiftIndex of the current (only editable) shift; default none (nothing editable)
attributeread-only / readOnlyView only; default false
attributetitleCard title; default 'Care Plan by Shift'
attributesubtitlePatient line; default none
attributerange-context / rangeContextWhich shared reference range flags use; a goal measure's own range still wins; default 'inpatient' when no global context is set
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-status-changeCalled when a current-shift status is changed (Done, Partly, Not done, N/A in turn) (React: onStatusChange)