Skip to main content

InsuranceCoverageCard

ComplexRevenue<co-insurance-coverage-card>

InsuranceCoverageCard lists a patient's active coverages in billing order (COB), with reorder arrows, eligibility status and a suggested-order warning.

import { InsuranceCoverageCard } from 'health-components';

Examples​

Suggested Order​

Storybook

Self Pay​

Storybook

Read Only​

Storybook

Usage​

<InsuranceCoverageCard coverages={patient.coverages} suggested="Medicare first, then AARP Supplement" onReorder={saveOrder} />

When to use​

  • Insurance section of the chart; check-in coverage review.

When not to use​

  • Editing one coverage's fields: a form in a Drawer.

Variants and states​

VariantWhat it is
orderedPrimary card highlighted.
suggested orderWarning with Apply Suggested Order and Keep Current Order.
self-payWarning, claims stop.
readOnlyNo arrows or Add.

Accessibility​

  • Arrow buttons are named "Move Aetna up"; order is also written (Primary, Secondary).

Do and don't​

  • Do: Explain the CARC 22 risk.
  • Don't: Drag-only reordering.

Props​

PropTypeDefaultDescription
coveragesCoverage[]uncontrolledCoverages in billing order (controlled): Array<{payer, plan, memberId, group?, subscriber?, status?, checked?}>
defaultCoveragesCoverage[][]Initial coverages in billing order (uncontrolled)
onReorder(coverages: Coverage[]) => voidnoneCalled with the new order after a move
suggestedstringnoneSuggested order text; shows the order warning
selfPaybooleanfalseSelf-pay warning (no active coverage)
readOnlybooleanfalseNo arrows and no Add Coverage
onAdd() => voidnoneAdd Coverage
onApplySuggested() => voidnoneApply Suggested Order in the order warning
onKeepOrder() => voidnoneKeep Current Order in the order warning
onCheckEligibility(coverage: Coverage) => voidnoneCheck Eligibility on a coverage
onCoverageAction(action: CoverageAction, coverage: Coverage) => voidnoneAn item of a coverage's More menu

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-insurance-coverage-card>. 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-insurance-coverage-card suggested="…" self-pay [coverages]="coverages" (co-reorder)="onReorder($event.detail)"></co-insurance-coverage-card>
KindNameDescription
property / JSON attributecoveragesCoverages in billing order (controlled): Array<{payer, plan, memberId, group?, subscriber?, status?, checked?}>; default uncontrolled
property / JSON attributedefault-coverages / defaultCoveragesInitial coverages in billing order (uncontrolled); default []
attributesuggestedSuggested order text; shows the order warning; default none
attributeself-pay / selfPaySelf-pay warning (no active coverage); default false
attributeread-only / readOnlyNo arrows and no Add Coverage; default false
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-reorderCalled with the new order after a move; default none (React: onReorder)
eventco-addAdd Coverage; default none (React: onAdd)
eventco-apply-suggestedApply Suggested Order in the order warning; default none (React: onApplySuggested)
eventco-keep-orderKeep Current Order in the order warning; default none (React: onKeepOrder)
eventco-check-eligibilityCheck Eligibility on a coverage; default none (React: onCheckEligibility)
eventco-coverage-actionAn item of a coverage's More menu; default none (React: onCoverageAction)