Skip to main content

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​

Storybook

Inactive​

Storybook

Waiting​

Storybook

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​

VariantWhat it is
activeBenefits list and deductible meter.
inactiveError alert, fix actions.
errorAAA code, meaning, next step.
waitingSpinner, "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​

PropTypeDefaultDescription
stateEligibilityState'active''active' | 'inactive' | 'error' | 'waiting'
payer *string—Payer name; required
headlinestringby stateResult headline ("Active: Aetna PPO", "Invalid member ID")
aaastringnoneAAA reject code, shown before the headline in the error state
meaningstringnone"What it means" in plain words
todostringnone"What to do" next
benefitsDescriptionItem[][]Benefits as Array<[label, value]> (active only)
deductiblereadonly [met: number, total: number]noneDeductible [met, total] in dollars (active only)
checkedAtstringnoneWhen the check ran ("10/09/2026 9:12 AM, 612 ms")
onRerun() => voidnoneRe-run
onFixCoverage() => voidnoneFix Coverage Details (inactive and error)
onSelfPay() => voidnoneSelf-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>
KindNameDescription
attributestate'active' | 'inactive' | 'error' | 'waiting'; default 'active'
attributepayerPayer name; required
attributeheadlineResult headline ("Active: Aetna PPO", "Invalid member ID"); default by state
attributeaaaAAA reject code, shown before the headline in the error state; default none
attributemeaning"What it means" in plain words; default none
attributetodo"What to do" next; default none
property / JSON attributebenefitsBenefits as Array<[label, value]> (active only); default []
property / JSON attributedeductibleDeductible [met, total] in dollars (active only); default none
attributechecked-at / checkedAtWhen the check ran ("10/09/2026 9:12 AM, 612 ms"); default none
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-rerunRe-run; default none (React: onRerun)
eventco-fix-coverageFix Coverage Details (inactive and error); default none (React: onFixCoverage)
eventco-self-paySelf-pay Good Faith Estimate (inactive and error); default none (React: onSelfPay)