AnesthesiaRecord
ComplexED & periop
<co-anesthesia-record>AnesthesiaRecord is the intraoperative record: vitals every 5 minutes as a trend and a grid, case events, medications given, airway details and fluid totals.
import { AnesthesiaRecord } from 'health-components';
Examples
Showcase
Signed MAC
Usage
<AnesthesiaRecord times={times} vitals={vitals} meds={meds} airway={airway} totals={{ fluids: 1200, ebl: 150, urine: 220 }} />
When to use
- During and after a case, by the anesthesia provider.
When not to use
- PACU vitals: VitalsPanel.
Variants and states
| Variant | What it is |
|---|---|
| in progress | Add Event and Give Medication actions. |
| flagged cells | Out-of-range values in red with H, L, HH or LL. |
| not recorded | n/r in a cell. |
| events | Dashed lines labelled Induction, Incision. |
| controlled drugs | C-II tag on fentanyl and similar. |
| alert | Critical event banner, such as hypotension. |
| signed | Locked. |
| no airway | Airway not documented, such as MAC cases. |
Accessibility
- Grid has a caption and row headers; each value has a range title.
- Chart has an aria-label with the heart rate series.
Do and don't
- Do: Record dose units every time.
- Don't: Write trailing zeros like 2.0 mg.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
times * | string[] | — | Column times 'HH:MM', usually every 5 minutes; required |
vitals * | AnesthesiaVitals | — | Vitals aligned to `times`; required |
events | AnesthesiaEvent[] | [] | Case events |
meds | AnesthesiaMed[] | [] | Medications given |
airway | AnesthesiaAirway | none (Airway not documented) | Airway |
totals | AnesthesiaTotals | {} | Fluid totals in mL |
alert | { title: string; body: string } | none | Critical event banner {title, body} |
readOnly | boolean | false | Signed record: no actions |
subtitle | string | none | Line under the title |
onAddEvent | () => void | none | Called by Add Event |
onGiveMedication | () => void | none | Called by Give Medication |
rangeContext | RangeContextId | 'ed' 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-anesthesia-record>. 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-anesthesia-record read-only subtitle="…" [times]="times" (co-add-event)="onAddEvent($event.detail)"></co-anesthesia-record>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | times | Column times 'HH:MM', usually every 5 minutes; required |
| property / JSON attribute | vitals | Vitals aligned to `times`; required |
| property / JSON attribute | events | Case events; default [] |
| property / JSON attribute | meds | Medications given; default [] |
| property / JSON attribute | airway | Airway; default none (Airway not documented) |
| property / JSON attribute | totals | Fluid totals in mL; default {} |
| property / JSON attribute | alert | Critical event banner {title, body}; default none |
| attribute | read-only / readOnly | Signed record: no actions; default false |
| attribute | subtitle | Line under the title; default none |
| attribute | range-context / rangeContext | Which shared reference range flags use; the lab range on a result still wins; default 'ed' when no global context is set |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-add-event | Called by Add Event; default none (React: onAddEvent) |
| event | co-give-medication | Called by Give Medication; default none (React: onGiveMedication) |