CheckInStepper
ComplexScheduling
<co-check-in-stepper>CheckInStepper is the front desk check-in checklist: steps, issues per step and Complete Check-In.
import { CheckInStepper } from 'health-components';
Examples
Just Arrived
Complete
Usage
<CheckInStepper patient="Henna West" appt="9:20 AM with Dr. Bell" current={2} issues={[2]} items={checks} />
When to use
- Front desk check-in.
When not to use
- Patient self check-in: KioskStep.
Variants and states
| Variant | What it is |
|---|---|
| issues | Steps with errors block completion. |
| done | Checked In tag. |
Accessibility
- Each item has icon label Done or Needs attention.
Do and don't
- Do: Say exactly what is missing.
- Don't: Check in with an inactive coverage silently.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
patient * | string | — | Patient name, shown in the title. Required |
appt * | string | — | Appointment line under the title. Required |
steps | string[] | Arrived, Demographics, Insurance, Forms, Copay, Ready | Step labels |
current | number | 0 | Current step, 0-based |
issues | number[] | [] | Indexes of steps with issues (they show the error state and block Complete Check-In) |
items | CheckInItem[] | [] | Checklist lines |
done | boolean | false | Check-in complete: the tag reads Checked In instead of Arrived |
onItemAction | (item: CheckInItem, index: number) => void | none | Called with the item and its index when its action button is pressed |
onComplete | () => void | none | Called when Complete Check-In is pressed (enabled only with no issues) |
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-check-in-stepper>. 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-check-in-stepper patient="…" appt="…" [steps]="steps" (co-item-action)="onItemAction($event.detail)"></co-check-in-stepper>
| Kind | Name | Description |
|---|---|---|
| attribute | patient | Patient name, shown in the title. Required |
| attribute | appt | Appointment line under the title. Required |
| property / JSON attribute | steps | Step labels; default Arrived, Demographics, Insurance, Forms, Copay, Ready |
| attribute | current | Current step, 0-based; default 0 |
| property / JSON attribute | issues | Indexes of steps with issues (they show the error state and block Complete Check-In); default [] |
| property / JSON attribute | items | Checklist lines; default [] |
| attribute | done | Check-in complete: the tag reads Checked In instead of Arrived; default false |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-item-action | Called with the item and its index when its action button is pressed; default none (React: onItemAction) |
| event | co-complete | Called when Complete Check-In is pressed (enabled only with no issues); default none (React: onComplete) |