SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
293 stars 143 forks source link

Make the Vaccine and VaccineManufacturer enums configurable [5] #5830

Open MateStrysewske opened 3 years ago

MateStrysewske commented 3 years ago

Problem Description

When creating vaccinations, users can select a vaccine name and the associated vaccine manufacturer. Both the vaccine and vaccine manufacturer are hard-coded into the system. This is inflexible as it doesn't allow server administrators to quickly add new vaccines to the system, and it also means that a lot of vaccines that are actively used in the system can't be selected because it's not feasible to add all of them as default vaccines.

Proposed Change

Turn the Vaccine and the VaccineManufacturer enums into customizable enums. See the SpecificRisk customizable enum as a reference for the to-dos below (PR for it: https://github.com/hzi-braunschweig/SORMAS-Project/pull/6185/files)

Refactor enums and add property support:

Extend the translation logic:

Acceptance Criteria

Implementation Details

Additional Information

Candice-Louw commented 3 years ago

Related: https://github.com/hzi-braunschweig/SORMAS-Project/issues/5759