Skip to main content

WaitlistRow

ComplexScheduling<co-waitlist-row>

WaitlistRow is one waitlisted patient with wanted window, priority, a matched opening and Offer Slot.

import { WaitlistRow } from 'health-components';

Examples​

Waitlist​

Storybook

No Match​

Storybook

Usage​

<WaitlistRow item={{ patient: "Kristin Watson", type: "Annual Wellness", provider: "Any", window: "mornings this week", since: "09/30", match: "Thu 10/09 9:40 AM" }} />

When to use​

  • Filling cancellations.

When not to use​

  • Recalls: CareGapRow.

Variants and states​

VariantWhat it is
matchOpening found, Offer Slot primary.
no matchOffer disabled.
priorityRed tag.

Accessibility​

  • Actions named with the patient.

Do and don't​

  • Do: Text offers that expire.
  • Don't: Offer the same slot to two people at once.

Props​

PropTypeDefaultDescription
item *WaitlistItem—The waitlist entry. Required
onOffer(item: WaitlistItem) => voidnoneCalled when Offer Slot is pressed (enabled only with a match)
onText(item: WaitlistItem) => voidnoneRow menu: Text Patient
onEdit(item: WaitlistItem) => voidnoneRow menu: Edit Preferences
onRemove(item: WaitlistItem) => voidnoneRow menu: Remove from Waitlist

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-waitlist-row>. 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-waitlist-row default-checked auto-focus [item]="item" (co-offer)="onOffer($event.detail)"></co-waitlist-row>
KindNameDescription
property / JSON attributeitemThe waitlist entry. Required
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-offerCalled when Offer Slot is pressed (enabled only with a match); default none (React: onOffer)
eventco-textRow menu: Text Patient; default none (React: onText)
eventco-editRow menu: Edit Preferences; default none (React: onEdit)
eventco-removeRow menu: Remove from Waitlist; default none (React: onRemove)