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

Add information about legal guardian for "minor / incapacitated" to person entity [2] #13205

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

Comments

@SORMAS-JanBoehme
Copy link

Feature Description

The system should be able to store contact information about legal guardians for minors / or people who are incapacitated.

This is a request from Luxembourg, but is relevant for everyone.

Added Value/Benefit

By storing the information if a person has a legal guardian it makes it easier to identify those persons, as well as contacting the correct person in case

Acceptance Criteria

  • Add a new checkbox to the person entity that stores the information if the person has a legal guardian
  • Add the ability to save the name of the legal guardian

Implementation Details

  • In the "Person" tab, add a new checkbox with label "Person has a legal guardian (i.e. in case of minors or incapacitated persons")
  • The checkbox is below the input fields "Mother's name" and "Father's name" in a new line
  • If the value of the checkbox is "true", a new line appears below the checkbox with a text input field called "Legal guardian's name"
  • The entity "person" already includes the field "Person.namesOfGuardians" which could be reused for this. It is currently unused as far as I know.

Logic for minors:

  • If the age of the person is smaller than 18 years or completely unknown, the checkbox will be automatically checked, is grayed out, can't be unchecked and the field to enter the legal guardian's name is shown.
  • In the case of minors, the checkbox is active and the field is shown, but this MUST NOT result in the value of the checkbox actually being stored as "true" in the database. Otherwise you would have to manually uncheck the box every time someone turns 18.
  • The value of the checkbox is only stored if someone actively checks the box for a person who is over 18 years
  • The value entered into the field "legal guardian's name" is always stored in the database, even for minors
  • In the case that a minor has a legal guardian, turns 18 and still requires a legal guardian, the checkbox needs to be manually reactivated, but the formerly saved name of the legal guardian is then still available

Potential future expansion:

  • Once doctor notifications can be consumed automatically by the system in the future, this needs to be expanded to automatically extract the name and contact information from the notification. This is not part of this issue and another issue will be created for this feature.

Mockups

No response

Additional Information

No response

@SORMAS-JanBoehme SORMAS-JanBoehme added feature A new feature to be developed (ticket type) lu Adaptations requested by or implemented for Luxembourg pertussis labels Dec 10, 2024
@SORMAS-JanBoehme
Copy link
Author

@markusmann-vg Not directly related to Pertussis implementation, but came up during the discussion. Please check if there are any questions regarding implementation.

@markusmann-vg markusmann-vg added this to the Sprint 4 - SORMAS 2.0 milestone Dec 11, 2024
@markusmann-vg markusmann-vg added change A change of an existing feature (ticket type) and removed feature A new feature to be developed (ticket type) labels Dec 11, 2024
@markusmann-vg markusmann-vg changed the title Add information about legal guardian for "minor / incapacitated" to person entity Add information about legal guardian for "minor / incapacitated" to person entity [2] Dec 11, 2024
@cazacmarin cazacmarin self-assigned this Dec 26, 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

3 participants