RapidResponsePanel
<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
Closed
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
| Variant | What it is |
|---|---|
| active | Timer since call, outcome not chosen, Close off. |
| meets criteria | Critical vitals listed under the reason and tiles in red. |
| closed | Outcome chosen. |
| readOnly | Review. |
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
| Prop | Type | Default | Description |
|---|---|---|---|
patient * | string | — | Patient ('Kowalski, Anna, 34 F'); required |
location * | string | — | Location; required |
calledBy | string | none | Who called ('J. Patel, RN', 'Family') |
reason * | string | — | Why the team was called; required |
calledAt | number | when the component mounts | When the call was made, epoch ms |
now | number | live | Freezes the clock at this epoch ms (for review and tests) |
vitals | InpatientMeasureValue[] | [] | Array of { measure, value, range, taken } |
labs | InpatientMeasureValue[] | [] | Array of { measure, value, range, taken } |
interventions | RapidResponseIntervention[] | [] | Array of { at, text } |
outcome | string | none | Starting outcome (uncontrolled); a chosen outcome closes the call and stops the clock |
outcomeValue | string | uncontrolled | Outcome (controlled) |
onOutcomeChange | (outcome: string) => void | none | Called with the chosen outcome |
onEscalate | () => void | none | Called by Escalate to Code Blue |
onClose | (outcome: string) => void | none | Called by Close Call with the outcome |
readOnly | boolean | false | View only |
rangeContext | RangeContextId | 'inpatient' when no global context is set | Which 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.
<co-rapid-response-panel patient="…" location="…" [vitals]="vitals" (co-outcome-change)="onOutcomeChange($event.detail)"></co-rapid-response-panel>
| Kind | Name | Description |
|---|---|---|
| attribute | patient | Patient ('Kowalski, Anna, 34 F'); required |
| attribute | location | Location; required |
| attribute | called-by / calledBy | Who called ('J. Patel, RN', 'Family'); default none |
| attribute | reason | Why the team was called; required |
| attribute | called-at / calledAt | When the call was made, epoch ms; default when the component mounts |
| attribute | now | Freezes the clock at this epoch ms (for review and tests); default live |
| property / JSON attribute | vitals | Array of { measure, value, range, taken }; default [] |
| property / JSON attribute | labs | Array of { measure, value, range, taken }; default [] |
| property / JSON attribute | interventions | Array of { at, text }; default [] |
| attribute | outcome | Starting outcome (uncontrolled); a chosen outcome closes the call and stops the clock; default none |
| attribute | outcome-value / outcomeValue | Outcome (controlled); default uncontrolled |
| attribute | read-only / readOnly | View only; default false |
| attribute | range-context / rangeContext | Which shared reference range flags use; the lab range on a result 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-outcome-change | Called with the chosen outcome; default none (React: onOutcomeChange) |
| event | co-escalate | Called by Escalate to Code Blue; default none (React: onEscalate) |
| event | co-close | Called by Close Call with the outcome; default none (React: onClose) |