IntakeOutputPanel
ComplexInpatient nursing
<co-intake-output-panel>IntakeOutputPanel lists intake and output entries for a shift with a running balance, totals and urine output in mL/kg/h.
import { IntakeOutputPanel } from 'health-components';
Examples
Low Urine Output
Peds Adding
Empty
Read Only Net Negative
Usage
<IntakeOutputPanel entries={io} weightKg={82} hours={8} onAdd={save} />
When to use
- Shift I&O on med-surg, ICU, peds, post-op and renal patients.
When not to use
- Hour-by-hour drip volumes alongside vitals: Flowsheet I&O group.
Variants and states
| Variant | What it is |
|---|---|
| default | Totals, net balance and the entry table with a running balance column. |
| urine output check | Alert when weight and hours are given; amber below target (default 0.5 mL/kg/h, peds 1.0). |
| adding | Inline form for time, type, source and amount. |
| empty | No entries yet. |
| readOnly | View only. |
Accessibility
- Table with caption; amounts right-aligned in tabular figures.
- Net balance sign is a character (+ or −), not only colour.
Do and don't
- Do: Give weight and hours so mL/kg/h is computed, not guessed.
- Don't: Mix mL and oz in one panel.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
entries | IntakeOutputEntry[] | [] | Entries in time order (initial list; entries added here are appended) |
weightKg | number | none (no rate) | Weight in kg, for urine output in mL/kg/h |
hours | number | none (no rate) | Hours the entries cover, for mL/kg/h |
uoTarget | number | 0.5 | Urine output target in mL/kg/h |
inCategories | string[] | ['PO', 'IV', 'IV piggyback', 'Blood', 'Tube feed'] | Intake sources |
outCategories | string[] | ['Urine', 'Emesis', 'Stool', 'Drain', 'NG', 'Blood loss'] | Output sources |
now | string | time of a new entry; default '' | |
defaultAdding | boolean | false | Opens the add form at first |
readOnly | boolean | false | View only: no Add entry |
onAdd | (entry: IntakeOutputEntry) => void | — | Called with the new entry when one is saved |
title | string | 'Intake and Output' | Card title |
subtitle | string | none | Shift line |
rangeContext | RangeContextId | 'inpatient' when no global context is set | Which shared reference range flags use |
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-intake-output-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-intake-output-panel weight-kg="…" hours="…" [entries]="entries" (co-add)="onAdd($event.detail)"></co-intake-output-panel>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | entries | Entries in time order (initial list; entries added here are appended); default [] |
| attribute | weight-kg / weightKg | Weight in kg, for urine output in mL/kg/h; default none (no rate) |
| attribute | hours | Hours the entries cover, for mL/kg/h; default none (no rate) |
| attribute | uo-target / uoTarget | Urine output target in mL/kg/h; default 0.5 |
| property / JSON attribute | in-categories / inCategories | Intake sources; default ['PO', 'IV', 'IV piggyback', 'Blood', 'Tube feed'] |
| property / JSON attribute | out-categories / outCategories | Output sources; default ['Urine', 'Emesis', 'Stool', 'Drain', 'NG', 'Blood loss'] |
| attribute | now | Default time of a new entry; default '' |
| attribute | default-adding / defaultAdding | Opens the add form at first; default false |
| attribute | read-only / readOnly | View only: no Add entry; default false |
| attribute | title | Card title; default 'Intake and Output' |
| attribute | subtitle | Shift line; default none |
| attribute | range-context / rangeContext | Which shared reference range flags use; default 'inpatient' when no global context is set |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-add | Called with the new entry when one is saved (React: onAdd) |