SORMAS-Project
SORMAS-Project copied to clipboard
Add facility information next to type of occupation
Situation Description
As a user, I can enter the employment type, but it is often important to additionally see in which facility this employment is performed. For this reason, it should be possible to search for and display a facility stored in the system. To prevent duplicate entries, it should also be possible to enter the selected facility directly in the addresses as a work location.
Feature Description
- [ ] Add header below type of occupation called "Related Facility"and the option below to show the selected facility
- [ ] Add a button "select facility" below the type of occupation
- [ ] if a facility is selected, show the facility name below the header
- [ ] add a button to change the selected facility
- [ ] add an option to remove the selected facility
-
[ ] when pressing the select facility or change facility button, open a pop-up window, which offers you the option to search for a facility within a freetext field
-
[ ] show the search results within a table including the following categories:
- Facility Name
- Facility Category
- Facility Type
- Region
- District
- Community
- City
- External ID
-
[ ] Add option within the pop-up as a checkbox to "add this facility to address type "place of work". If this checkbox is selected, add the facility within the person address table as "place of work. If there is already an address with this type, ask the user whether he wants to overwrite or supplement the place of work.
Possible Alternatives
Additional Information
@maxiheyner @kwa20 fyi
Related issue https://github.com/hzi-braunschweig/SORMAS-Project/issues/5015 in regards to occupation
ISSUE TRACKER COMMENT
Moved to Application Team, and proposed change will be altered. Update to come from @MateStrysewske
@JaquM-HZI I'd advocate against adding this functionality because we already have the addresses where users are supposed to document the work address of the person. Adding a new field that basically duplicates this information doesn't sound like a good idea to me.
I'd propose to, at most, add a convenience text label next to the occupation type that shows the facility of the work address specified in the addresses section (if there is one), but I'm not sure how important such a functionality would be.
I've talked with @MateStrysewske about this ticket and he suggested to take this ticket in a refinement and clarify the open points before starting any work on it.