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
292 stars 140 forks source link

Clear Date of Symptom onset when no symptoms are selected #5451

Open raghupola-vg opened 3 years ago

raghupola-vg commented 3 years ago

Feature Description

Clearing the existing symptoms, doesn't clear the Symptom onset date.

Problem Description

When the Symptoms are cleared the Symptom onset date is not cleared and so the follow up date is also not changed.

Proposed Change

Clear the symptoms onset date when no symptoms are selected.

Possible Alternatives

Additional Information

Disabled Date of Symptom onset date

MateStrysewske commented 3 years ago

@kwa20 @bernardsilenou Is this fine for you? We currently prevent users from entering an onset date if no symptom has been set to "Yes", so this would be consequential, but deleting an onset date that has already been entered might also not be desirable because it could lead to unintended data loss.

kwa20 commented 3 years ago

@MateStrysewske I agree that simply deleting is not ideal, I'd suggest to maybe show a prompt because deleting the onset date also has influence on e.g. the follow-up period.