RPMReadingChart
ComplexQuality and care programs
<co-rpm-reading-chart>RPMReadingChart shows remote-monitoring readings against an alert line, reading days toward 99454 and interactive minutes toward 99457.
import { RPMReadingChart } from 'health-components';
Examples
Billing Met
Usage
<RPMReadingChart device="BP cuff, Omron" readings={week} high={140} days={18} minutes={14} />
When to use
- RPM enrollment review and monthly billing check.
When not to use
- Office vitals: VitalsPanel.
Variants and states
| Variant | What it is |
|---|---|
| days | Green at 16 or more. |
| alert | Out-of-range note. |
| minutes | Progress to 20. |
Accessibility
- Chart has full aria text.
Do and don't
- Do: Show billing thresholds as progress.
- Don't: Bill with fewer than 16 days.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
readings * | ReadonlyArray<RPMReading> | — | Array<[label, value]>; required |
metric | string | none | Chart caption and start of its accessible summary ("Systolic (mmHg), last 7 readings") |
device | string | none | Device and context line under the title |
title | string | "Remote monitoring" | Card title |
high | number | none | Alert line: readings at or above it are red |
low | number | none | Readings at or below it are amber |
max | number | auto | Top of the chart scale |
days * | number | — | Reading days this month (16 needed for 99454); required |
minutes | number | 0 | Interactive minutes this month (20 needed for 99457) |
alert | string | none | Out-of-range note shown as a warning Alert |
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-rpm-reading-chart>. 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-rpm-reading-chart metric="…" device="…" [readings]="readings"></co-rpm-reading-chart>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | readings | Array<[label, value]>; required |
| attribute | metric | Chart caption and start of its accessible summary ("Systolic (mmHg), last 7 readings"); default none |
| attribute | device | Device and context line under the title; default none |
| attribute | title | Card title; default "Remote monitoring" |
| attribute | high | Alert line: readings at or above it are red; default none |
| attribute | low | Readings at or below it are amber; default none |
| attribute | max | Top of the chart scale; default auto |
| attribute | days | Reading days this month (16 needed for 99454); required |
| attribute | minutes | Interactive minutes this month (20 needed for 99457); default 0 |
| attribute | alert | Out-of-range note shown as a warning Alert; default none |
| 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' |
| slot | footer | Footer content; default none Plain text also works as the `footer` attribute. |