cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
554 stars 681 forks source link

[Health] Atrial fibrillation support #995

Closed JulienRim closed 3 months ago

JulienRim commented 4 months ago

Description

Describe what you will like to see improved/added/removed. Can you please add support for reading atrial fibrillation for Apple Watches and Galaxy Watches.

Additional information

It appears that these sync with Apple Health, but not clear if it is synced with Google Health Connect, as it is not in the list of supported variables.

SlimShadyIAm commented 3 months ago

Hi,

It should be possible to implement this for Apple Health but as you pointed out, it doesn't seem like Health Connect currently supports this.

I will try to open a PR for this soon. Would you be able to help test whether it works for me?

SlimShadyIAm commented 3 months ago

Hi @JulienRim, I can implement this but I don't have any AFib data in my Health app to test that it works and it seems like you need to wear an Apple Watch continuously for a week for it to calculate the required data. It would be great if you already have some data in your Health app to test with to make sure that it works.

JulienRim commented 3 months ago

Hi @SlimShadyIAm,

I am working with my team to obtain suitable data to test this. We were hoping to explore reading AFib data for a future research.

SlimShadyIAm commented 3 months ago

Great, thank you! I'll let you know when I have a PR ready for it.

SlimShadyIAm commented 3 months ago

Hi @JulienRim, I've just opened #1027 to implement afib support. Could you please test that it works when you get the chance to? In the mean time, I've turned on AFib tracking on my own watch as well.

SlimShadyIAm commented 3 months ago

I've merged this for now but please let me know if you experience issues with it!