Skip to content

Add last systolic and diastolic values to Huawei blood pressure statistics - #450

Merged
yatharthranjan merged 1 commit into
devfrom
huawei-bp-last-values
Dec 1, 2026
Merged

yatharthranjan merged 1 commit into
devfrom
huawei-bp-last-values

Conversation

@yatharthranjan

@yatharthranjan yatharthranjan commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

HuaweiContinuousBodyBloodPressureStatistics has sphygmusLast but no last value for systolic and diastolic pressure, although Huawei returns both. A live sampleSet:dailyPolymerize response for com.huawei.instantaneous.blood_pressure contains these fields:

systolic_pressure_avg  systolic_pressure_max  systolic_pressure_min  systolic_pressure_last
diastolic_pressure_avg diastolic_pressure_max diastolic_pressure_min diastolic_pressure_last
sphygmus_avg           sphygmus_max           sphygmus_min           sphygmus_last

This adds systolicPressureLast and diastolicPressureLast (optional double, mmHg, default null), so the Huawei connector (RADAR-base/RADAR-REST-Connector#204) can stop dropping them. Since both fields are optional with a default, the change is backward and forward compatible.

./gradlew check in java-sdk passes.

…stics

The Huawei Health Kit dailyPolymerize response for blood pressure
statistics includes systolic_pressure_last and diastolic_pressure_last
alongside the pulse rate's sphygmus_last, but the schema had no fields
for them, so the connector dropped both values. Add them as optional
fields, which keeps the schema backward and forward compatible.

Claude-Session: https://claude.ai/code/session_01PeNFs67cbLTGQ6xKiyDHdC

@mpgxvii mpgxvii left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks.

@yatharthranjan
yatharthranjan merged commit 2801e3f into dev Dec 1, 2026
2 of 3 checks passed
@yatharthranjan
yatharthranjan deleted the huawei-bp-last-values branch December 1, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants