Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload HealthKit Device to Firebase (#25)
# *Upload HealthKit Device to Firebase* ## ♻️ 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. ## ⚙️ 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 ## 📚 Documentation *Please ensure that you properly document any additions in conformance to [Spezi Documentation Guide](https://github.com/StanfordSpezi/.github/blob/main/DOCUMENTATIONGUIDE.md).* *You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.* ## ✅ 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.* ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md): - [X] I agree to follow the [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
- Loading branch information