Skip to main content

RapidResponsePanel

ComplexInpatient flow<co-rapid-response-panel>

RapidResponsePanel supports a rapid response call: who called and why, vitals against calling criteria, recent labs, what has been done, outcome, and escalation to Code Blue.

import { RapidResponsePanel } from 'health-components';

Examples​

Showcase​

Storybook

Closed​

Storybook

Usage​

<RapidResponsePanel patient="Kowalski, Anna" location="4 West 403A" reason="SpO2 86% on 4 L" vitals={vitals} />

When to use​

  • Rapid response team documentation at the bedside.

When not to use​

  • Pulseless patient: CodeBlueTimer.

Variants and states​

VariantWhat it is
activeTimer since call, outcome not chosen, Close off.
meets criteriaCritical vitals listed under the reason and tiles in red.
closedOutcome chosen.
readOnlyReview.

Clinical values​

Every number goes through the clinical value rules: tabular digits, unit always shown, fixed precision per measure (temperature 0.1 °C, potassium 0.1 mmol/L, creatinine 0.01 mg/dL, heart rate whole bpm), the reference range in the tooltip and H, L, H! or L! flags. Doses drop trailing zeros and keep a leading zero (0.5 mg, 5 mg).

Accessibility​

  • Timer has role timer.
  • Criteria are in words, not only the red tile.

Do and don't​

  • Do: Pass the hospital's own calling criteria ranges.
  • Don't: Hide Escalate to Code Blue behind a menu.

Props​

PropTypeDefaultDescription
patient *string—Patient ('Kowalski, Anna, 34 F'); required
location *string—Location; required
calledBystringnoneWho called ('J. Patel, RN', 'Family')
reason *string—Why the team was called; required
calledAtnumberwhen the component mountsWhen the call was made, epoch ms
nownumberliveFreezes the clock at this epoch ms (for review and tests)
vitalsInpatientMeasureValue[][]Array of { measure, value, range, taken }
labsInpatientMeasureValue[][]Array of { measure, value, range, taken }
interventionsRapidResponseIntervention[][]Array of { at, text }
outcomestringnoneStarting outcome (uncontrolled); a chosen outcome closes the call and stops the clock
outcomeValuestringuncontrolledOutcome (controlled)
onOutcomeChange(outcome: string) => voidnoneCalled with the chosen outcome
onEscalate() => voidnoneCalled by Escalate to Code Blue
onClose(outcome: string) => voidnoneCalled by Close Call with the outcome
readOnlybooleanfalseView only
rangeContextRangeContextId'inpatient' 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-rapid-response-panel>. 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-rapid-response-panel patient="…" location="…" [vitals]="vitals" (co-outcome-change)="onOutcomeChange($event.detail)"></co-rapid-response-panel>
KindNameDescription
attributepatientPatient ('Kowalski, Anna, 34 F'); required
attributelocationLocation; required
attributecalled-by / calledByWho called ('J. Patel, RN', 'Family'); default none
attributereasonWhy the team was called; required
attributecalled-at / calledAtWhen the call was made, epoch ms; default when the component mounts
attributenowFreezes the clock at this epoch ms (for review and tests); default live
property / JSON attributevitalsArray of { measure, value, range, taken }; default []
property / JSON attributelabsArray of { measure, value, range, taken }; default []
property / JSON attributeinterventionsArray of { at, text }; default []
attributeoutcomeStarting outcome (uncontrolled); a chosen outcome closes the call and stops the clock; default none
attributeoutcome-value / outcomeValueOutcome (controlled); default uncontrolled
attributeread-only / readOnlyView only; default false
attributerange-context / rangeContextWhich shared reference range flags use; the lab range on a result still wins; default 'inpatient' when no global context is set
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-outcome-changeCalled with the chosen outcome; default none (React: onOutcomeChange)
eventco-escalateCalled by Escalate to Code Blue; default none (React: onEscalate)
eventco-closeCalled by Close Call with the outcome; default none (React: onClose)