You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Popup behaves as described in "implementation details"
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":
The pop up closes
The form is not saved
Click on "Save":
Values of person are updated in the database according to the shown data
the pop up closes
The form is saved
Mockups
Additional Information
No response
The text was updated successfully, but these errors were encountered:
markusmann-vg
changed the title
Update Person when case outcome is changed to "Diseased"
Update Person when case outcome is changed to "Deceased"
Dec 19, 2024
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: