Skip to main content

ADTPanel

ComplexInpatient flow<co-adt-panel>

ADTPanel admits, transfers and discharges a patient: level of care, attending and reason for admit and transfer, and disposition for discharge.

import { ADTPanel } from 'health-components';

Examples​

Showcase​

Storybook

Transfer​

Storybook

Discharge Blocked​

Storybook

Submitted​

Storybook

Usage​

<ADTPanel mode="transfer" patient={pt} onSubmit={({ mode, level, reason }) => adt.send(mode, level, reason)} />

When to use​

  • Admitting, transfer centre and discharge workflows, from the chart or the bed board.

When not to use​

  • Picking the bed itself: BedBoard.
  • Order review at transfer: OrderReconciliation.

Variants and states​

VariantWhat it is
admitLevel of care, inpatient vs observation, attending, admitting diagnosis.
transferNew level, target unit, attending, reason. Warns when stepping down from ICU.
dischargeDisposition, date and time, transport. Lists blockers; AMA shows the form reminder.
doneSuccess alert after submit.
errorsshowErrors marks missing reason or disposition.
blockedDischarge button off while blockers remain.
readOnlyLocked fields.

Accessibility​

  • The action tabs are a tablist; tabs that do not apply to the status are disabled with a reason in the status.
  • Errors are linked to the fields.

Do and don't​

  • Do: Show the blockers in the discharge tab itself.
  • Don't: Let a discharge go through with a medication reconciliation still open.

Props​

PropTypeDefaultDescription
patient *ADTPatient—{ name, mrn, location, level, isolation, status }; required
modeADTMode'admit''admit' | 'transfer' | 'discharge': the starting action (uncontrolled)
modeValueADTModeuncontrolledThe action (controlled); pair with onModeChange
onModeChange(mode: ADTMode) => voidnoneCalled with the new action
levelstring'medsurg'Starting level of care (uncontrolled)
levelValuestringuncontrolledLevel of care (controlled)
onLevelChange(level: string) => voidnoneCalled with the new level of care
reasonstring''Starting reason, diagnosis or disposition (uncontrolled)
reasonValuestringuncontrolledReason (controlled)
onReasonChange(reason: string) => voidnoneCalled with the new reason
blockersstring[][]string[]: open discharge items that block discharge
unitsstring[]sample liststring[]: target units for a transfer
attendingsstring[]sample liststring[]: attendings
dischargeAtstring'10/09/2026 14:30'Discharge date and time shown at start
showErrorsbooleanfalseShows required-field errors
donebooleanfalseShows the confirmation (already submitted)
readOnlybooleanfalseView only
onSubmit(value: ADTSubmit) => voidnonefunction({ mode, level, reason }) on the main action
onCancel() => voidnonefunction on Cancel
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-adt-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-adt-panel mode="…" mode-value="…" [patient]="patient" (co-mode-change)="onModeChange($event.detail)"></co-adt-panel>
KindNameDescription
property / JSON attributepatient{ name, mrn, location, level, isolation, status }; required
attributemode'admit' | 'transfer' | 'discharge': the starting action (uncontrolled); default 'admit'
attributemode-value / modeValueThe action (controlled); pair with onModeChange; default uncontrolled
attributelevelStarting level of care (uncontrolled); default 'medsurg'
attributelevel-value / levelValueLevel of care (controlled); default uncontrolled
attributereasonStarting reason, diagnosis or disposition (uncontrolled); default ''
attributereason-value / reasonValueReason (controlled); default uncontrolled
property / JSON attributeblockersstring[]: open discharge items that block discharge; default []
property / JSON attributeunitsstring[]: target units for a transfer; default sample list
property / JSON attributeattendingsstring[]: attendings; default sample list
attributedischarge-at / dischargeAtDischarge date and time shown at start; default '10/09/2026 14:30'
attributeshow-errors / showErrorsShows required-field errors; default false
attributedoneShows the confirmation (already submitted); default false
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-mode-changeCalled with the new action; default none (React: onModeChange)
eventco-level-changeCalled with the new level of care; default none (React: onLevelChange)
eventco-reason-changeCalled with the new reason; default none (React: onReasonChange)
eventco-submitfunction({ mode, level, reason }) on the main action; default none (React: onSubmit)
eventco-cancelfunction on Cancel; default none (React: onCancel)