Update Person when case outcome is changed to "Deceased" [2] #13209
Labels
change
A change of an existing feature (ticket type)
lu
Adaptations requested by or implemented for Luxembourg
pertussis
qa-verified
Issue has been tested and verified by QA
Milestone
Problem Description
See Epic #13208
Proposed Change
See Epic #13208
Added Value/Benefit
See epic #13208
Acceptance Criteria
Implementation Details
When a user tries to save the case form while the "Outcome of Case" is set to "Deceased" the following check has to be performed on the associated person of the case:
Is Person.presentCondition equal to "DEAD" OR "BURIED"?
AND
Is Person.deathDate equal to CaseData.outcomeDate?
AND
Is Person.causeOfDeath equal to "EPIDEMIC_DISEASE"
AND
Is Person.causeOfDeathDisease equal to CaseData.Disease
If Yes, no action required, save form as normal
If No the following needs to happen:
A popup appears that allows the user to provide more information and show the consequences of their actions. See Mockup for information about how the popup looks and the shown text (new localization IDs need to be added if required, otherwise reuse the current localization IDs where possible)
Variables are marked with Curly Brackets:
Firstname = Person.firstname of the person attached to this case
LASTNAME = Person.lastname of the person attached to this case as uppercase
UUID of Person = person.uuid of the person attached to this case
{DeadOrBuried} = If Person.presentCondition equals "BURIED" --> Value: "Buried", all other cases --> Value "Dead"
{CaseData.Disease} ) = Current value of the field "Disease" of the case
{CaseData.outcomeDate} = Current value of the field "Outcome Date" of the case
Click on "Discard":
Click on "Save":
Mockups
Additional Information
No response
The text was updated successfully, but these errors were encountered: