prime-simplereport
prime-simplereport copied to clipboard
[Bug] Test correction fails when the patient already has an active test
Description
If a patient is already in the queue, starting a test correction for them on a previous result will cause an error
Steps to reproduce
- Submit a test card for a patient
- Start a new test for the patient but don't submit
- Go to results view and find the previous test result for that patient
- Select correct test for the result
- Error should appear saying something went wrong and then redirecting to the test queue page
Expected behavior
TBD, probably option A
A) catch and handle the error, informing the user that they cannot correct a test for a patient that still has an active test B) significant refactor work to enable doing a correction while a patient has an active test