EligibilityResult
ComplexRevenue
<co-eligibility-result>EligibilityResult shows the payer's 271 answer: active with benefits, inactive, an AAA error with what it means and what to do, or waiting.
import { EligibilityResult } from 'health-components';
Examples
States
Inactive
Waiting
Usage
<EligibilityResult state="error" payer="Aetna" aaa="72" headline="Invalid member ID"
meaning="Aetna has no member with that ID." todo="Check the card and fix the member ID, then Re-run." />
When to use
- After a 270 eligibility check; on check-in.
When not to use
- Batch results: a DataTable with StatusTag eligibility.
Variants and states
| Variant | What it is |
|---|---|
| active | Benefits list and deductible meter. |
| inactive | Error alert, fix actions. |
| error | AAA code, meaning, next step. |
| waiting | Spinner, "most answer in 1 to 5 seconds". |
Accessibility
- Result headline in an Alert with role status or alert.
Do and don't
- Do: Say what the AAA code means in plain words.
- Don't: Show raw X12 to front desk staff.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
state | EligibilityState | 'active' | 'active' | 'inactive' | 'error' | 'waiting' |
payer * | string | — | Payer name; required |
headline | string | by state | Result headline ("Active: Aetna PPO", "Invalid member ID") |
aaa | string | none | AAA reject code, shown before the headline in the error state |
meaning | string | none | "What it means" in plain words |
todo | string | none | "What to do" next |
benefits | DescriptionItem[] | [] | Benefits as Array<[label, value]> (active only) |
deductible | readonly [met: number, total: number] | none | Deductible [met, total] in dollars (active only) |
checkedAt | string | none | When the check ran ("10/09/2026 9:12 AM, 612 ms") |
onRerun | () => void | none | Re-run |
onFixCoverage | () => void | none | Fix Coverage Details (inactive and error) |
onSelfPay | () => void | none | Self-pay Good Faith Estimate (inactive and error) |
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-eligibility-result>. 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-eligibility-result state="…" payer="…" [benefits]="benefits" (co-rerun)="onRerun($event.detail)"></co-eligibility-result>
| Kind | Name | Description |
|---|---|---|
| attribute | state | 'active' | 'inactive' | 'error' | 'waiting'; default 'active' |
| attribute | payer | Payer name; required |
| attribute | headline | Result headline ("Active: Aetna PPO", "Invalid member ID"); default by state |
| attribute | aaa | AAA reject code, shown before the headline in the error state; default none |
| attribute | meaning | "What it means" in plain words; default none |
| attribute | todo | "What to do" next; default none |
| property / JSON attribute | benefits | Benefits as Array<[label, value]> (active only); default [] |
| property / JSON attribute | deductible | Deductible [met, total] in dollars (active only); default none |
| attribute | checked-at / checkedAt | When the check ran ("10/09/2026 9:12 AM, 612 ms"); default none |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-rerun | Re-run; default none (React: onRerun) |
| event | co-fix-coverage | Fix Coverage Details (inactive and error); default none (React: onFixCoverage) |
| event | co-self-pay | Self-pay Good Faith Estimate (inactive and error); default none (React: onSelfPay) |