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
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
| Variant | What it is |
|---|---|
| open | Action button. |
| closed | Green. |
| excluded | Neutral with reason. |
Accessibility
- Status in words.
Do and don't
- Do: Allow recording outside results.
- Don't: Close a gap without evidence.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
gap * | CareGapData | — | {measure, patient?, detail?, due?, status: open|closed|excluded, action?}; required |
onAction | (action: CareGapAction, gap: CareGapData) => void | none | Called 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>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | gap | {measure, patient?, detail?, due?, status: open|closed|excluded, action?}; required |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-action | Called with the chosen action of an open gap: the main action, Record Outside Result or Mark Excluded; default none (React: onAction) |