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 142 forks source link

Date of visit or admission gets set to current date when changing place of stay #4480

Closed kwa20 closed 3 years ago

kwa20 commented 3 years ago

Bug Description

When the place of a case gets changed from hospital to home, the current hospitalization is being migrated to the previous hospitalizations. However, the date of visit or admission is also set to the current date.

This entry can also not be deleted since the field becomes disabled when the current place of stay is not hospital.

Furthermore, the additional entry produces an incorrect additional hospitalization entry when transferring data to SurvNet.

Steps to Reproduce

  1. Create a case whose current place of stay is hospital.
  2. Enter various hospitalization fields. Save.
  3. Set the place of stay to anything but hospital. Transfer case.
  4. Check hospitalization information.

Expected Behavior

When transferring the case, the current hospitalization should merely be migrated without setting the date of visit or admission to the current date.

Screenshots

hospitalizationBug hospitalizationBug2

System Details

Additional Information

MateStrysewske commented 3 years ago

@kwa20 If I understood you correctly, the date should basically be deleted, right? That would make the most sense because "Home" is not a hospitalization in the first place.

kwa20 commented 3 years ago

@MateStrysewske yes, it also does not seem to be a residue of a previous hospitalization because a previous date period might not match the date that is left behind in the date of admission.

AndyBakcsy-she commented 3 years ago

Verified ticket on the latest version of sormas 1.58.0-snapshot on test.sormas.netzlink.com