BloodPressure correlations not saving correctly

Hi All,


My app is saving Blood Pressure correlations and Heart Rate samples. Heart Rate samples save great to HealthKit. But Blood Pressure correlations do not save correctly, and I can't figure out why.


According to the code and the SDK, my Blood Pressure correlations are fine, and saved fine as well. However, if I then go look in the Health app, I see:


* On the dashboard, the latest saved Blood Pressure correlation is shown fine. Values are there and correct, and the date is correct as well.

* On the dashboard, I also see the corresponding Heart Rate sample.

* On the chart, if I touch the items, it looks as if my Blood Pressure correlation is part of the sample set (but I can't go more specific than one day).

* If I select Show All Data, then I just don't see my samples! They're just not there in the list. Not even the one that's shown on the dashboard.


For the Heart Rate sample, everything is fine.


Authorization is correct, I authorized everything.


But sometimes, if I delete the app and reinstall it, then it suddenly does work. I am stumped. What's going on and how do I fix this?


* iPhone 8 Plus

* iOS 12.2

* Xcode 10.2.1
Edit:
My app is using multiple HealthStore instances. Shouldn't be a problem, right?