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

Health facilities vs Laboratories #2091

Open RafaelKluender opened 4 years ago

RafaelKluender commented 4 years ago

Currently a facility can only be a health facility OR a Laboratory. However, often hospitals have laboratories included. I have imported a list of hospitals and now I discovered that there are no Laboratories. While trying to import the same facilities as a "laboratory" I ran into duplicate errors.

Only workaround is to import those facilities again in a mode "Laboratory of Hospital X" but then we get two entries for the same facility.

bernardsilenou commented 4 years ago

@RafaelKluender Normally, hospital and labs are independent in the system even if they belong to the same physical facility in real life. It should be possible to have the same name, one as lab and another as hospitals. Duplicate error should normally not occur. Please can you give more information? @MateStrysewskeSym is this normal?

MateStrysewske commented 4 years ago

Yes, because both share the same Facility entity in the backend. We'll have a look into this and see whether we can change the duplicate detection.

RafaelKluender commented 4 years ago

I suggest to add a column in the facility import csv file: Laboratory included (TRUE/FALSE) and make the import feature to include automatically a laboratory with the same name or with a prefix like "Lab_Hospital-name"