-
Notifications
You must be signed in to change notification settings - Fork 495
First vaccination dose shows up as complete for recovered people (EXPOSUREAPP-8896) #3928
First vaccination dose shows up as complete for recovered people (EXPOSUREAPP-8896) #3928
Conversation
.../main/java/de/rki/coronawarnapp/covidcertificate/person/ui/details/PersonDetailsViewModel.kt
Outdated
Show resolved
Hide resolved
…lete-for-recovered-people
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, please add unit tests covering different vaccine does?
.../main/java/de/rki/coronawarnapp/covidcertificate/person/ui/details/PersonDetailsViewModel.kt
Outdated
Show resolved
Hide resolved
...App/src/main/java/de/rki/coronawarnapp/covidcertificate/vaccination/core/VaccinatedPerson.kt
Outdated
Show resolved
Hide resolved
…omplete-for-recovered-people' into feature/8896-first-vaccination-complete-for-recovered-people
...src/test/java/de/rki/coronawarnapp/covidcertificate/vaccination/core/VaccinatedPersonTest.kt
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
Alright, I'll talk to him, I don't think the tech spec mentions this https://github.com/corona-warn-app/cwa-app-tech-spec/pull/91/files |
@mtwalli @SamuraiKek thanks for checking and raising this. It's a problem with the rule definition and not directly related to this change. I'll bring it up with the responsible people to adjust the rule definition. But you can proceed and merge the PR (if that's the only thing that was preventing the merge) 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good tests.
lgtm
Hi @rgrenz (and @mlenkeit after your return to work) @mtwalli and @SamuraiKek
unfortunately this is not only an issue with the business rules definitions alone, but also with the DCC schema (1.3.0). e.g., Ireland
So, to get such a vaccination (after recovery) successfully validated with business rules, it would also require an extension of the DCC schema (and new business rules after). Either the Are there other member countries that also accept vaccinations without 14-day waiting period, when a person was recovered? Then there is a good chance to get an agreement on EU level to enhance the DCC schema accordingly. |
Additional thought: Maybe it's possible to treat 'Vaccination for Recovered' as 'Booster Vaccination'? At least the same problems will arise technically: a 3/3 (or similar) for non-recovered should also be 'valid immediately', like the 1/1 for recovered... |
Some additional hints: In general it would be possible to add additional/customized fields to the DCC schema for 'Vaccination after Recovery' or even boosters, see: ehn-dcc-development/eu-dcc-schema#123. But this would stay a Germany-only solution, and not get a "pass" in business rule validation for other countries. To understand why only one health event is allowed currently, you may read here: |
Last notes before the week-end: In short:
From all other comments in that issue I conclude that it would be good to involve BMG in any case. |
We already had the logic to show the vaccination as complete if the
doseNumber == totalSeriesOfDoses
, what was left was to hide the Vaccination Info box that shows up if the vaccination is incomplete or it's complete but the number of days until immunity hasn't been reached.To test, scan one of the presets from this PR. The vaccination card should have the complete icon (the one with the chekmark) and it should say "Vaccination 1 of 1". Also the vaccination hint is not shown.