Skip to main content

CareGapRow

ComplexQuality and care programs<co-care-gap-row>

CareGapRow is one open, closed or excluded care gap with the action that closes it.

import { CareGapRow } from 'health-components';

Examples​

Statuses​

Storybook

Usage​

<CareGapRow gap={{ measure: "Colorectal cancer screening", detail: "Last FIT 2023", status: "open", action: "Order FIT" }} />

When to use​

  • Chart care gaps, recall lists.

When not to use​

  • Measure totals: QualityMeasureCard.

Variants and states​

VariantWhat it is
openAction button.
closedGreen.
excludedNeutral with reason.

Accessibility​

  • Status in words.

Do and don't​

  • Do: Allow recording outside results.
  • Don't: Close a gap without evidence.

Props​

PropTypeDefaultDescription
gap *CareGapData—{measure, patient?, detail?, due?, status: open|closed|excluded, action?}; required
onAction(action: CareGapAction, gap: CareGapData) => voidnoneCalled with the chosen action of an open gap: the main action, Record Outside Result or Mark Excluded

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-care-gap-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-care-gap-row default-checked auto-focus [gap]="gap" (co-action)="onAction($event.detail)"></co-care-gap-row>
KindNameDescription
property / JSON attributegap{measure, patient?, detail?, due?, status: open|closed|excluded, action?}; required
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-actionCalled with the chosen action of an open gap: the main action, Record Outside Result or Mark Excluded; default none (React: onAction)