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

BP7000 and EVOLV Support #7

Merged
merged 20 commits into from
Jul 18, 2024
Merged

BP7000 and EVOLV Support #7

merged 20 commits into from
Jul 18, 2024

Conversation

Supereg
Copy link
Member

@Supereg Supereg commented Jul 17, 2024

BP7000 and EVOLV Support

♻️ Current situation & Problem

This PR adds support for Omron BP7000 and Omron EVOLV blood pressure cuffs. The implementation of both devices is still achieved using the OmronBloodPressureCuff device. The device icon can now be supplied dynamically by the device class based on device features. This makes it possible for a device implementation to visually distinguish between multiple different models. Currently, we only support to differentiate between different based on the peripheral name.

⚙️ Release Notes

  • Add support for Omron BP7000 and Omron EVOLV blood pressure cuffs.
  • Dynamically select the device icon based on device features.
  • Provide dark-mode compatible images for all supported devices.

📚 Documentation

Documentation was updated to reflect the changes made by this PR.

✅ Testing

Testing was added to test new components.

📝 Code of Conduct & Contributing Guidelines

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

@Supereg Supereg linked an issue Jul 17, 2024 that may be closed by this pull request
1 task
Package.swift Outdated Show resolved Hide resolved
@Supereg Supereg marked this pull request as ready for review July 17, 2024 13:00
@Supereg Supereg changed the title BP7000 Support BP7000 and EVOLV Support Jul 17, 2024
Package.swift Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 58.04196% with 60 lines in your changes missing coverage. Please review.

Project coverage is 84.42%. Comparing base (641db17) to head (d2fdec4).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main       #7       +/-   ##
===========================================
+ Coverage   70.66%   84.42%   +13.77%     
===========================================
  Files          29       55       +26     
  Lines        1690     2824     +1134     
===========================================
+ Hits         1194     2384     +1190     
+ Misses        496      440       -56     
Files Coverage Δ
Sources/SpeziDevices/Devices/GenericDevice.swift 100.00% <100.00%> (ø)
Sources/SpeziDevices/HealthMeasurements.swift 87.65% <100.00%> (-0.20%) ⬇️
...ces/SpeziDevicesUI/Devices/DeviceDetailsView.swift 100.00% <100.00%> (ø)
...ces/SpeziDevicesUI/Devices/DeviceInfoSection.swift 100.00% <ø> (ø)
Sources/SpeziDevicesUI/Devices/NameEditView.swift 100.00% <ø> (ø)
...es/SpeziDevicesUI/Pairing/AccessoryImageView.swift 100.00% <100.00%> (ø)
...peziOmron/Model/ManufacturerIdentifier+Omron.swift 100.00% <ø> (ø)
...urces/SpeziOmron/Model/OmronManufacturerData.swift 93.82% <ø> (ø)
Sources/SpeziOmron/Model/OmronModel.swift 100.00% <ø> (ø)
Sources/SpeziOmron/OmronOptionService.swift 100.00% <ø> (+23.08%) ⬆️
... and 7 more

... and 20 files 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 641db17...d2fdec4. Read the comment docs.

@PSchmiedmayer PSchmiedmayer added the enhancement New feature or request label Jul 17, 2024
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.

This is an amazing addition; thank you for the added support here @Supereg!

@Supereg Supereg merged commit ac008a4 into main Jul 18, 2024
12 checks passed
@Supereg Supereg deleted the feature/bluetooth-update branch July 18, 2024 13:25
Supereg added a commit to StanfordBDHG/ENGAGE-HF-iOS that referenced this pull request Jul 18, 2024
# Integrate BP7000 and EVOLV Blood Pressure Cuffs

## ♻️ Current situation & Problem
This PR integrates the changes from
StanfordSpezi/SpeziDevices#7 adding support for
BP7000 and EVOLV blood pressure cuffs. Devices might need to be
connected once to refresh their icon assets due to underlying changes in
SpeziDevices on how assets are derived from the PairedDeviceInfo
storage.

## ⚙️ Release Notes 
* Integrated BP7000 and EVOLV BPs


## 📚 Documentation
--


## ✅ Testing
Manual testing using the BP7000.

### 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
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add Dark Mode compatible images for Omron Devices
2 participants