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

When event participant or contact is converted to case as a result of a positive pathogen test, map the test variant to the resulting case variant #5243

Open bernardsilenou opened 3 years ago

bernardsilenou commented 3 years ago

Bug Description

Steps to Reproduce

  1. Create a positive PCR test of a sample of a contact or EP
  2. Convert the ep/ contact to a case when asked by system
  3. Have a look at the variant of the resulting case, this is NA

Expected Behavior

Updating case variant using test result variant:

Updating case variant by user input Here we control to make sure that users can only choose a category among the registered application variants of the disease among the test of all samples linked to the case. Thus forcing case variant to depend on test variant when available.

Screenshots

System Details

Additional Information

bernardsilenou commented 3 years ago

@MateStrysewske @kwa20 @JaquM

kwa20 commented 3 years ago

I'm not sure if preventing the user from saving is necessary. I guess an information upon saving informing the user about the difference would be fine too.