Skip to main content

MedicationList

ComplexMedications<co-medication-list>

MedicationList is the Medications card with reconciliation status, Reconcile and Prescribe, made of MedicationRows.

import { MedicationList } from 'health-components';

Examples​

Not Reconciled​

Storybook

With Controlled Substance​

Storybook

Read Only​

Storybook

Usage​

<MedicationList items={meds} reconciled="10/09/2026" />

When to use​

  • Chart Medications; med reconciliation.

When not to use​

  • Pharmacy refill queue: InboxItem kind refill.

Variants and states​

VariantWhat it is
editableReconcile and Prescribe.
readOnlyNo actions.

Accessibility​

  • List semantics.

Do and don't​

  • Do: Show last reconciliation date.
  • Don't: Hide discontinued meds from history.

Props​

PropTypeDefaultDescription
items *Medication[]—MedicationRow med[]; required
reconciledstringnone (Not reconciled this visit)Reconciliation date and person ("10/09/2026 by James Bell MD")
readOnlybooleanfalseHides Reconcile, Prescribe and the row menus
onReconcile() => voidnoneReconcile clicked
onPrescribe() => voidnonePrescribe clicked
onItemAction(action: MedicationAction, med: Medication) => voidnoneA row menu action was chosen

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-medication-list>. 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-medication-list reconciled="…" read-only [items]="items" (co-reconcile)="onReconcile($event.detail)"></co-medication-list>
KindNameDescription
property / JSON attributeitemsMedicationRow med[]; required
attributereconciledReconciliation date and person ("10/09/2026 by James Bell MD"); default none (Not reconciled this visit)
attributeread-only / readOnlyHides Reconcile, Prescribe and the row menus; default false
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-reconcileReconcile clicked; default none (React: onReconcile)
eventco-prescribePrescribe clicked; default none (React: onPrescribe)
eventco-item-actionA row menu action was chosen; default none (React: onItemAction)