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

Fix case creation prompt when saving positive pathogen tests for event participants #2582

Closed bernardsilenou closed 4 years ago

bernardsilenou commented 4 years ago

Feature Description

If a case of disease X has the first positive lab result registered for disease Y, the final lab result variable is updated to positive. When a subsequent positive lab result is registered for disease X, the final lab result if not updated and thus automatic case classification.

Problem Description

Proposed Change

Additional Information

MateStrysewske commented 4 years ago

@bernardsilenou Are you sure you didn't mix things up here? If a positive pathogen test for a different disease than the disease of the tested case is created, the test result is not updated to positive, instead the user is asked whether they want to create a new case for the tested disease.

I see that it's not working as expected for event participants, but for cases it's fine. For event participants, the user should still be asked whether they want to create a new case for the person, but it should then probably not be associated with the event if the diseases differ.

MateStrysewske commented 4 years ago

Solution: When saving a positive pathogen test on an event participant with a different disease than the event's disease, ask the user whether they want to create a new case for the event participant, but also notify them that the case will not be associated with the event since the diseases are different. If the event does not have a disease assigned, still associate the new case with the event.

bernardsilenou commented 4 years ago

Solution: When saving a positive pathogen test on an event participant with a different disease than the event's disease, ask the user whether they want to create a new case for the event participant, but also notify them that the case will not be associated with the event since the diseases are different. If the event does not have a disease assigned, still associate the new case with the event.

This sounds good. No matter the decision of the user, i think we should not set the finial lab result of the sample to positive as long as the diseases is not the same.

ghost commented 4 years ago

Regarding the samples associated to event participants, these will be transferred to the new case, without associating the event to the case. TBD: what happens if a sample contains pathogen tests for multiple diseases? E.g. COVID-19 sample with 1 positive test for COVID-19 and 1 positive test for Cholera, will the whole sample be transferred to the new Cholera case?

bernardsilenou commented 4 years ago

@vlad-ciucescu Yes, transfer whole sample. The only thing we need to maintain is that for actions like: -converting event participant to case -converting contact to case -change case classification to "confirmed case", etc disease of case == disease of sample result.