QualityMeasureCard
ComplexQuality and care programs
<co-quality-measure-card>QualityMeasureCard shows one quality measure: rate, target (including inverse measures), numerator and denominator, and the gap list link.
import { QualityMeasureCard } from 'health-components';
Examples
Dashboard
Below Target
Usage
<QualityMeasureCard measure={{ name: "Controlling High Blood Pressure", id: "CMS165", numerator: 412, denominator: 560, target: 70 }} />
When to use
- MIPS and payer quality dashboards.
When not to use
- Single patient: CareGapRow.
Variants and states
| Variant | What it is |
|---|---|
| meets / below | Green or amber with icon. |
| inverse | Lower is better (CMS122). |
Accessibility
- Rate and counts in text.
Do and don't
- Do: Name the data source and period.
- Don't: Show a rate without counts.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
measure * | QualityMeasureData | — | {name, id, period, numerator, denominator, exclusions?, target, inverse?, source?}; required |
onViewGaps | (measure: QualityMeasureData) => void | none | Called by the "View N patients with gaps" link |
actions | ReactNode | none | Header actions (one primary at most) |
flat | boolean | false | Border instead of shadow |
padding | CardPadding | 'default' | 'default' | 'compact' (10px) | 'none' (edge-to-edge tables) |
footer | ReactNode | none | Footer content |
as | ElementType | 'section' | Root tag name |
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-quality-measure-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-quality-measure-card default-checked auto-focus [measure]="measure" (co-view-gaps)="onViewGaps($event.detail)"></co-quality-measure-card>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | measure | {name, id, period, numerator, denominator, exclusions?, target, inverse?, source?}; required |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| attribute | flat | Border instead of shadow; default false |
| attribute | padding | 'default' | 'compact' (10px) | 'none' (edge-to-edge tables); default 'default' |
| property / JSON attribute | as | Root tag name; default 'section' |
| event | co-view-gaps | Called by the "View N patients with gaps" link; default none (React: onViewGaps) |
| slot | actions | Header actions (one primary at most); default none Plain text also works as the `actions` attribute. |
| slot | footer | Footer content; default none Plain text also works as the `footer` attribute. |