Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Blood Pressure Cuff #14

Merged
merged 5 commits into from
Jun 7, 2024
Merged

Conversation

Supereg
Copy link
Member

@Supereg Supereg commented Jun 3, 2024

Add support for Blood Pressure Cuff

♻️ Current situation & Problem

In its current state, the application solely supports Omron Weight Scales. This PR adds basic integration with Bluetooth-enabled Blood Pressure cuffs. This required restructuring some of the models within the app. Overall the structure was slightly simplified.
Lastly, we added support for the Current Time Service for both devices, adding support for time stamp reporting within measurements.

⚙️ Release Notes

  • Added blood pressure cuff support
  • Simplified modeling
  • Added support for the Current Time service.

📚 Documentation

--

✅ Testing

Additional tests were added for the new device.

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

@Supereg Supereg force-pushed the feature/blood-pressure-cuff branch from 675e185 to 7f506c8 Compare June 5, 2024 13:09
@Supereg Supereg force-pushed the feature/blood-pressure-cuff branch from 7f506c8 to e4b803f Compare June 5, 2024 13:12
@Supereg Supereg requested a review from PSchmiedmayer June 6, 2024 09:31
@Supereg Supereg marked this pull request as ready for review June 6, 2024 09:31
Copy link

codecov bot commented Jun 6, 2024

Codecov Report

Attention: Patch coverage is 81.50852% with 76 lines in your changes missing coverage. Please review.

Project coverage is 79.54%. Comparing base (7b3f48c) to head (f2ae223).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #14      +/-   ##
==========================================
+ Coverage   78.33%   79.54%   +1.22%     
==========================================
  Files          29       38       +9     
  Lines        1144     1344     +200     
==========================================
+ Hits          896     1069     +173     
- Misses        248      275      +27     
Files Coverage Δ
ENGAGEHF/Dashboard/Dashboard.swift 100.00% <100.00%> (ø)
ENGAGEHF/ENGAGEHFDelegate.swift 96.78% <100.00%> (+0.06%) ⬆️
ENGAGEHF/Home.swift 97.30% <100.00%> (-0.37%) ⬇️
...easurement/Conversions/HealthDevice+HKDevice.swift 100.00% <100.00%> (ø)
ENGAGEHF/Measurement/ProcessedMeasurement.swift 100.00% <100.00%> (ø)
ENGAGEHF/Measurement/Views/CloseButtonLayer.swift 93.34% <100.00%> (ø)
...F/Measurement/Views/ConfirmMeasurementButton.swift 96.56% <100.00%> (ø)
ENGAGEHF/Measurement/Views/MeasurementLayer.swift 100.00% <100.00%> (ø)
...EHF/Measurement/Views/WeightMeasurementLabel.swift 100.00% <100.00%> (ø)
...ersions/BloodPressureMeasurement.Unit+HKUnit.swift 87.50% <87.50%> (ø)
... and 8 more

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b3f48c...f2ae223. Read the comment docs.

@Supereg
Copy link
Member Author

Supereg commented Jun 6, 2024

We might want to wait for StanfordSpezi/SpeziBluetooth#34 to get merged and remove the synchronizeTime method in favor of the one introduced in SpeziBluetooth.

Copy link
Member

@PSchmiedmayer PSchmiedmayer left a comment

Choose a reason for hiding this comment

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

Nice job with the additions; looks really great! 🚀

@Supereg Supereg merged commit 3ecb60d into main Jun 7, 2024
7 checks passed
@Supereg Supereg deleted the feature/blood-pressure-cuff branch June 7, 2024 10:22
Supereg added a commit that referenced this pull request Jun 7, 2024
# Exclude testing code from release builds

## ♻️ Current situation & Problem
In #14 we forgot to exclude some testing code from release builds
resulting in a build error. This got fixed with this PR.


## ⚙️ Release Notes 
* Fixed release builds

### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
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