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

Clone sample when creating a case from a pathogen result for a different disease than the source case/contact/event participant #4472

Open bernardsilenou opened 3 years ago

bernardsilenou commented 3 years ago

Feature Description

Proposed Change

bernardsilenou commented 3 years ago

@MateStrysewske @kwa20 @Candice-Louw This in not a bug but I think if fall in the same category of urgency.

kwa20 commented 3 years ago

@bernardsilenou In think converting an event participant or contact to a case with a disease other than the disease the person as a contact or event participant was exposed to should not be done in the first place because it doesn't make sense, does it?

bernardsilenou commented 3 years ago

@kwa20 Yea, this should not be possible and I think that is the current implementation. You are allowed to create a new case of another disease without converting the ep to a case but by having a pathogen test of another disease. when this happen then the final classification of the sample should no longer be referenced by both cases.

MateStrysewske commented 3 years ago

@kwa20 The problem is not that you can convert a case, contact or event participant to a case with a different disease, but that if you create a positive pathogen test result for a case, contact or event participant with a different disease, the system asks you whether you want to create a case for this person with the disease of the pathogen test, and doing that will create a case that will reference the same sample as the case/contact/event participant.

@bernardsilenou I don't know whether cloning can be an option because that would lead to multiple samples with the same lab sample ID in the database. MAYBE that's not a problem though because they will always be for different diseases, so I guess we could go with this solution.