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

Update Person when case outcome is changed to "Deceased" #13209

Open
1 task
SORMAS-JanBoehme opened this issue Dec 11, 2024 · 1 comment
Open
1 task

Update Person when case outcome is changed to "Deceased" #13209

SORMAS-JanBoehme opened this issue Dec 11, 2024 · 1 comment
Labels
change A change of an existing feature (ticket type) lu Adaptations requested by or implemented for Luxembourg pertussis

Comments

@SORMAS-JanBoehme
Copy link

SORMAS-JanBoehme commented Dec 11, 2024

Problem Description

See Epic #13208

Proposed Change

See Epic #13208

Added Value/Benefit

See epic #13208

Acceptance Criteria

  • 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

image

Additional Information

No response

@SORMAS-JanBoehme SORMAS-JanBoehme added the change A change of an existing feature (ticket type) label Dec 11, 2024
@SORMAS-JanBoehme SORMAS-JanBoehme added lu Adaptations requested by or implemented for Luxembourg pertussis labels Dec 11, 2024
@SORMAS-JanBoehme
Copy link
Author

@markusmann-vg not directly related to pertussis, but came up when discussing the requirements

@markusmann-vg markusmann-vg added this to the Sprint 4 - SORMAS 1.101 milestone Dec 19, 2024
@markusmann-vg 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change A change of an existing feature (ticket type) lu Adaptations requested by or implemented for Luxembourg pertussis
Projects
None yet
Development

No branches or pull requests

2 participants