Skip to main content

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​

Storybook

Peds Adding​

Storybook

Empty​

Storybook

Read Only Net Negative​

Storybook

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​

VariantWhat it is
defaultTotals, net balance and the entry table with a running balance column.
urine output checkAlert when weight and hours are given; amber below target (default 0.5 mL/kg/h, peds 1.0).
addingInline form for time, type, source and amount.
emptyNo entries yet.
readOnlyView 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​

PropTypeDefaultDescription
entriesIntakeOutputEntry[][]Entries in time order (initial list; entries added here are appended)
weightKgnumbernone (no rate)Weight in kg, for urine output in mL/kg/h
hoursnumbernone (no rate)Hours the entries cover, for mL/kg/h
uoTargetnumber0.5Urine output target in mL/kg/h
inCategoriesstring[]['PO', 'IV', 'IV piggyback', 'Blood', 'Tube feed']Intake sources
outCategoriesstring[]['Urine', 'Emesis', 'Stool', 'Drain', 'NG', 'Blood loss']Output sources
nowstringtime of a new entry; default ''
defaultAddingbooleanfalseOpens the add form at first
readOnlybooleanfalseView only: no Add entry
onAdd(entry: IntakeOutputEntry) => void—Called with the new entry when one is saved
titlestring'Intake and Output'Card title
subtitlestringnoneShift line
rangeContextRangeContextId'inpatient' when no global context is setWhich 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>
KindNameDescription
property / JSON attributeentriesEntries in time order (initial list; entries added here are appended); default []
attributeweight-kg / weightKgWeight in kg, for urine output in mL/kg/h; default none (no rate)
attributehoursHours the entries cover, for mL/kg/h; default none (no rate)
attributeuo-target / uoTargetUrine output target in mL/kg/h; default 0.5
property / JSON attributein-categories / inCategoriesIntake sources; default ['PO', 'IV', 'IV piggyback', 'Blood', 'Tube feed']
property / JSON attributeout-categories / outCategoriesOutput sources; default ['Urine', 'Emesis', 'Stool', 'Drain', 'NG', 'Blood loss']
attributenowDefault time of a new entry; default ''
attributedefault-adding / defaultAddingOpens the add form at first; default false
attributeread-only / readOnlyView only: no Add entry; default false
attributetitleCard title; default 'Intake and Output'
attributesubtitleShift line; default none
attributerange-context / rangeContextWhich shared reference range flags use; default 'inpatient' when no global context is set
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-addCalled with the new entry when one is saved (React: onAdd)