What problem does this solve?
Respiratory rate, VO₂max, blood glucose and blood pressure are all decoded, stored and displayed in-app, but HealthKitTypeMappings.quantityMapping maps every one of them to nil.
Three were a genuine follow-up. Blood pressure is a different shape of problem: Health only recognises a reading when systolic and diastolic are saved together inside an HKCorrelation. Saved separately they are stored but never surface in the Health app — which is indistinguishable from a silent failure.
Proposed solution
Add the three quantity mappings with the units HealthKit expects (count/min, mL/(kg·min), mg/dL) and the same plausibility bounds RingEventBridge already applies on the way into the store.
Give blood pressure its own export pass building an HKCorrelation. The two halves are written from one packet at one instant, so that shared timestamp is the pairing key; a half without its partner should be skipped rather than guessed at.
Stress and fatigue should stay unmapped, and the comment should say why properly: this isn't a follow-up, HealthKit has no type for a device-derived wellness score. HKStateOfMind (iOS 17) is a self-reported mood log and would misrepresent both.
New toggles should only appear for rings that can produce the metric — respiratory rate and VO₂max come only from the YCBT records, glucose and BP only from jring and some YCBT units.
Area
Apple Health integration
What problem does this solve?
Respiratory rate, VO₂max, blood glucose and blood pressure are all decoded, stored and displayed in-app, but
HealthKitTypeMappings.quantityMappingmaps every one of them tonil.Three were a genuine follow-up. Blood pressure is a different shape of problem: Health only recognises a reading when systolic and diastolic are saved together inside an
HKCorrelation. Saved separately they are stored but never surface in the Health app — which is indistinguishable from a silent failure.Proposed solution
Add the three quantity mappings with the units HealthKit expects (count/min, mL/(kg·min), mg/dL) and the same plausibility bounds
RingEventBridgealready applies on the way into the store.Give blood pressure its own export pass building an
HKCorrelation. The two halves are written from one packet at one instant, so that shared timestamp is the pairing key; a half without its partner should be skipped rather than guessed at.Stress and fatigue should stay unmapped, and the comment should say why properly: this isn't a follow-up, HealthKit has no type for a device-derived wellness score.
HKStateOfMind(iOS 17) is a self-reported mood log and would misrepresent both.New toggles should only appear for rings that can produce the metric — respiratory rate and VO₂max come only from the YCBT records, glucose and BP only from jring and some YCBT units.
Area
Apple Health integration