The default SpeziHealthKit implementation does not upload information about which device generated a given HKSample (e.g., iPhone, Apple Watch, Oura, etc.). This has significant implications for downstream featurization, since a user wearing multiple devices might have duplicated data.
:gear: Release Notes
Access device name as a string using HKSample.sourceRevision.source.name
Manually encode the FHIR ResourceProxy and manually add a "device" field containing the device name
:books: Documentation
Please ensure that you properly document any additions in conformance to Spezi Documentation Guide.You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.
:white_check_mark: Testing
Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.This section describes important information about the tests and why some elements might not be testable.
:pencil: Code of Conduct & Contributing Guidelines
Upload HealthKit Device to Firebase
:recycle: Current situation & Problem
The default SpeziHealthKit implementation does not upload information about which device generated a given HKSample (e.g., iPhone, Apple Watch, Oura, etc.). This has significant implications for downstream featurization, since a user wearing multiple devices might have duplicated data.
:gear: Release Notes
HKSample.sourceRevision.source.name
:books: Documentation
Please ensure that you properly document any additions in conformance to Spezi Documentation Guide. You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.
:white_check_mark: Testing
Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested. This section describes important information about the tests and why some elements might not be testable.
:pencil: Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: