StanfordSpezi / SpeziKt

Kotlin & Android Version of the Stanford Spezi Framework
http://spezi.health/SpeziKt/
MIT License
7 stars 1 forks source link

Feature: save and load measurements #53

Open Basler182 opened 1 week ago

Basler182 commented 1 week ago

save and load measurements

:gear: Release Notes

image

:white_check_mark: Testing

as soon as it is confirmed that the functionality fits, further tests will be added

:pencil: Code of Conduct & Contributing Guidelines

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

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 15.35649% with 463 lines in your changes missing coverage. Please review.

Project coverage is 26.60%. Comparing base (cd5e155) to head (1c3f59c).

:exclamation: There is a different number of reports uploaded between BASE (cd5e155) and HEAD (1c3f59c). Click for more details.

HEAD has 4 uploads less than BASE | Flag | BASE (cd5e155) | HEAD (1c3f59c) | |------|------|------| |uitests|4|0|
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53/graphs/tree.svg?width=650&height=150&src=pr&token=rrQTC1h5A7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi)](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) ```diff @@ Coverage Diff @@ ## main #53 +/- ## ============================================= - Coverage 42.84% 26.60% -16.24% + Complexity 296 240 -56 ============================================= Files 111 112 +1 Lines 3275 3692 +417 Branches 470 499 +29 ============================================= - Hits 1403 982 -421 - Misses 1770 2639 +869 + Partials 102 71 -31 ``` | [Flag](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | Coverage Δ | | |---|---|---| | [uitests](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | `?` | | | [unittests](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | `26.60% <15.36%> (-2.05%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | Coverage Δ | | |---|---|---| | [...agehf/bluetooth/data/models/VitalDisplayUiState.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=app%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fbdh%2Fengagehf%2Fbluetooth%2Fdata%2Fmodels%2FVitalDisplayUiState.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-YXBwL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvYmRoL2VuZ2FnZWhmL2JsdWV0b290aC9kYXRhL21vZGVscy9WaXRhbERpc3BsYXlVaVN0YXRlLmt0) | `100.00% <100.00%> (ø)` | | | [...ord/spezi/core/bluetooth/data/model/Measurement.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=core%2Fbluetooth%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fcore%2Fbluetooth%2Fdata%2Fmodel%2FMeasurement.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-Y29yZS9ibHVldG9vdGgvc3JjL21haW4va290bGluL2VkdS9zdGFuZm9yZC9zcGV6aS9jb3JlL2JsdWV0b290aC9kYXRhL21vZGVsL01lYXN1cmVtZW50Lmt0) | `100.00% <100.00%> (ø)` | | | [...engagehf/bluetooth/data/models/BluetoothUiState.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=app%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fbdh%2Fengagehf%2Fbluetooth%2Fdata%2Fmodels%2FBluetoothUiState.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-YXBwL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvYmRoL2VuZ2FnZWhmL2JsdWV0b290aC9kYXRhL21vZGVscy9CbHVldG9vdGhVaVN0YXRlLmt0) | `87.50% <83.34%> (-12.50%)` | :arrow_down: | | [...anford/bdh/engagehf/bluetooth/MeasurementModule.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=app%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fbdh%2Fengagehf%2Fbluetooth%2FMeasurementModule.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-YXBwL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvYmRoL2VuZ2FnZWhmL2JsdWV0b290aC9NZWFzdXJlbWVudE1vZHVsZS5rdA==) | `0.00% <0.00%> (ø)` | | | [...d/bdh/engagehf/bluetooth/screen/BluetoothScreen.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=app%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fbdh%2Fengagehf%2Fbluetooth%2Fscreen%2FBluetoothScreen.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-YXBwL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvYmRoL2VuZ2FnZWhmL2JsdWV0b290aC9zY3JlZW4vQmx1ZXRvb3RoU2NyZWVuLmt0) | `0.00% <0.00%> (-45.65%)` | :arrow_down: | | [...bluetooth/data/mapper/MeasurementToRecordMapper.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=app%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fbdh%2Fengagehf%2Fbluetooth%2Fdata%2Fmapper%2FMeasurementToRecordMapper.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-YXBwL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvYmRoL2VuZ2FnZWhmL2JsdWV0b290aC9kYXRhL21hcHBlci9NZWFzdXJlbWVudFRvUmVjb3JkTWFwcGVyLmt0) | `2.78% <2.78%> (ø)` | | | [...althconnectonfhir/ObservationToRecordMapperImpl.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=modules%2Fhealthconnectonfhir%2Fsrc%2Fmain%2Fjava%2Fedu%2Fstanford%2Fhealthconnectonfhir%2FObservationToRecordMapperImpl.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-bW9kdWxlcy9oZWFsdGhjb25uZWN0b25maGlyL3NyYy9tYWluL2phdmEvZWR1L3N0YW5mb3JkL2hlYWx0aGNvbm5lY3RvbmZoaXIvT2JzZXJ2YXRpb25Ub1JlY29yZE1hcHBlckltcGwua3Q=) | `0.00% <0.00%> (ø)` | | | [...bluetooth/data/repository/ObservationRepository.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=app%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fbdh%2Fengagehf%2Fbluetooth%2Fdata%2Frepository%2FObservationRepository.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-YXBwL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvYmRoL2VuZ2FnZWhmL2JsdWV0b290aC9kYXRhL3JlcG9zaXRvcnkvT2JzZXJ2YXRpb25SZXBvc2l0b3J5Lmt0) | `1.67% <1.67%> (ø)` | | | [...d/bdh/engagehf/bluetooth/component/VitalDisplay.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=app%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fbdh%2Fengagehf%2Fbluetooth%2Fcomponent%2FVitalDisplay.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-YXBwL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvYmRoL2VuZ2FnZWhmL2JsdWV0b290aC9jb21wb25lbnQvVml0YWxEaXNwbGF5Lmt0) | `4.35% <4.35%> (ø)` | | | [...nford/bdh/engagehf/bluetooth/BluetoothViewModel.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree&filepath=app%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fbdh%2Fengagehf%2Fbluetooth%2FBluetoothViewModel.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-YXBwL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvYmRoL2VuZ2FnZWhmL2JsdWV0b290aC9CbHVldG9vdGhWaWV3TW9kZWwua3Q=) | `44.80% <35.59%> (-55.20%)` | :arrow_down: | | ... and [1 more](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | | ... and [25 files with indirect coverage changes](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). Last update [cd5e155...1c3f59c](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/53?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi).