-
Notifications
You must be signed in to change notification settings - Fork 143
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 an option to hide the jurisdiction fields from cases and use default values [5] #12550
Closed
8 tasks done
Labels
android-app
Affects the Android app
backend
Affects the web backend
cases
feature
A new feature to be developed (ticket type)
lu
Adaptations requested by or implemented for Luxembourg
qa-verified
Issue has been tested and verified by QA
ready
Issue fulfills the definition of ready and can be implemented
vaadin-app
Affects the Vaadin application
Milestone
Comments
MateStrysewske
added
android-app
Affects the Android app
cases
backend
Affects the web backend
vaadin-app
Affects the Vaadin application
feature
A new feature to be developed (ticket type)
lu
Adaptations requested by or implemented for Luxembourg
labels
Sep 20, 2023
MateStrysewske
added
the
ready
Issue fulfills the definition of ready and can be implemented
label
Sep 25, 2023
markusmann-vg
changed the title
Add an option to hide the jurisdiction fields from cases and use default values
Add an option to hide the jurisdiction fields from cases and use default values [5]
Sep 28, 2023
|
@bernardsilenou Possibly, this feature is kind of experimental, but I don't see any country except Luxembourg using it, and Luxembourg will only use case surveillance for now, no contact tracing, immunization management, event surveillance, etc. I don't really see a reason to invent complex mapping rules in favour of this. |
MateStrysewske
added a commit
that referenced
this issue
Oct 9, 2023
MateStrysewske
added a commit
that referenced
this issue
Oct 10, 2023
MateStrysewske
added a commit
that referenced
this issue
Oct 17, 2023
- Only regions, districts and communities can be made default - Add parent validation to make sure that e.g. a district from another region than the default region can be set as default - Add column to grids
MateStrysewske
added a commit
that referenced
this issue
Oct 20, 2023
MateStrysewske
added a commit
that referenced
this issue
Oct 26, 2023
sergiupacurariu
added a commit
that referenced
this issue
Oct 26, 2023
…urisdiction_fields #12550 - Hide jurisdiction fields when configured
Validated on local machine with the version 1.91.0-SNAPSHOT (a0c405b) |
This was referenced Dec 5, 2023
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
android-app
Affects the Android app
backend
Affects the web backend
cases
feature
A new feature to be developed (ticket type)
lu
Adaptations requested by or implemented for Luxembourg
qa-verified
Issue has been tested and verified by QA
ready
Issue fulfills the definition of ready and can be implemented
vaadin-app
Affects the Vaadin application
Feature Description
For epidemiological surveillance right now, Luxembourg does not divide the country into several jurisdictions like e.g. Nigeria or Germany do. Because of that, the case jurisdiction fields are redundant and actually would be more of a hassle to be used by the users there. Therefore, a feature configuration is to be added to the system that hides the jurisdiction fields from cases (and other entities that are directly connected to cases and that aren't a separate feature) and automatically fills them with a default option.
Please note that it's not necessary to implement most of this in the mobile app, except for adding the new field to the infrastructure entities and the database for consistency reasons.
Added Value/Benefit
Users in countries that don't divide the country/area in which SORMAS is used into several jurisdictions won't have to bother with the jurisdiction fields, easing and speeding up their workflow.
Acceptance Criteria
HIDE_JURISDICTION_FIELDS
has been added to theCASE_SURVEILANCE
feature, disabled by defaultInfrastructureAdo
andInfrastructureDto
classes, and all infrastructure tables in the database have been extended with a booleandefault
field,false
by default; this also needs to be applied to the mobile appprivate DTO defaultInfrastructure
field toAbstractInfrastructureFacadeEjb
, and a method calledgetDefaultInfrastructure
that checks whether the field is already filled; if yes, return its value, otherwise query the database for the first entry of the ADO type withdefault == true
; make sure that this method doesn't fail if there are no or multiple default entries; basically, this field should work like a cache so that we only have to query for default jurisdictions once and not every time a user requests thosegetDefaultInfrastructure
method; health facility fields will remain visibleImplementation Details
No response
Mockups
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: