OrderReconciliation
<co-order-reconciliation>OrderReconciliation reviews every active order when a patient changes level of care, so orders that are not allowed on the new unit are stopped or changed before the transfer.
import { OrderReconciliation } from 'health-components';
Examples
Showcase
All Reviewed
Usage
<OrderReconciliation from="icu" to="medsurg" orders={activeOrders} />
When to use
- ICU to step-down or floor, floor to ICU, and to or from procedures.
When not to use
- Home medicine decisions: MedReconciliation.
Variants and states
| Variant | What it is |
|---|---|
| grouped | Orders grouped by type: medications, drips, nursing, labs. |
| not allowed | Red line; Continue is removed. |
| stopped | Struck through. |
| incomplete | Release button counts what is left. |
| readOnly | Locked. |
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
- Arrow between levels is also read as "to".
Do and don't
- Do: Mark unit rules with notAllowedOn from the unit policy.
- Don't: Silently drop drips at transfer.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
orders * | TransferOrder[] | — | Array of { type, name, dose, unit, detail, action, notAllowedOn: level[] }: the starting orders (uncontrolled); required |
ordersValue | TransferOrder[] | uncontrolled | The orders (controlled); pair with onOrdersChange |
onOrdersChange | (orders: TransferOrder[]) => void | none | Called with the new orders when an action changes |
from * | LevelOfCare | — | Level of care the patient leaves; required |
to * | LevelOfCare | — | Level of care the patient goes to; required |
patient | string | none | Patient name and context |
readOnly | boolean | false | View only |
onRelease | (orders: TransferOrder[]) => void | none | Called by Release Orders with the orders (enabled once every order is reviewed) |
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-order-reconciliation>. 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-order-reconciliation from="…" to="…" [orders]="orders" (co-orders-change)="onOrdersChange($event.detail)"></co-order-reconciliation>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | orders | Array of { type, name, dose, unit, detail, action, notAllowedOn: level[] }: the starting orders (uncontrolled); required |
| property / JSON attribute | orders-value / ordersValue | The orders (controlled); pair with onOrdersChange; default uncontrolled |
| attribute | from | Level of care the patient leaves; required |
| attribute | to | Level of care the patient goes to; required |
| attribute | patient | Patient name and context; default none |
| 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-orders-change | Called with the new orders when an action changes; default none (React: onOrdersChange) |
| event | co-release | Called by Release Orders with the orders (enabled once every order is reviewed); default none (React: onRelease) |