mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
Every surface that applied a resting-pulse target judged the raw PULSE series against a resting band. Apple Health maps all heart-rate samples — including workout HR — onto PULSE, and the resting figure onto a separate RESTING_HEART_RATE type. A single workout emits hundreds of expected-high samples, so the resting-target evaluation read a large share "outside target" and tanked the in-target % / consistency even when the clean resting series averaged a healthy figure. Judge the resting band against a resting series. A shared helper prefers RESTING_HEART_RATE; when the user has none it derives a proxy from the low percentile of each day's PULSE samples, so a dense workout burst sitting in the upper tail cannot drag the resting estimate up. Applied to the resting-pulse tile + its consistency strip, the pulse in-target % in the assessment snapshot, and the dashboard / sub-page classification. Raw heart rate, where it is merely charted, no longer carries the resting-band overlay. The doctor report is unchanged — it reports raw heart-rate stats factually, with no resting-target judgment to mislead.