-
Notifications
You must be signed in to change notification settings - Fork 140
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DEMIS2SORMAS] Process multiple samples via one message [8] #9109
Comments
I fear this will technically be quite complex, and require significant changes in SORMAS and SORMAS-DEMIS-adapter. For each sample, there may be popups triggered (e.g. for updating the disease variant of the related case, or for changing the overall test result of the sample). Those popups should immediately show when saving that one sample, right? So before triggering the pick or create sample form for the next sample... One possibility might be to introduce SampleReports as entities. Similar to TestReports (which hold information about PathogenTests), SampleReports could hold information about Samples. Each TestReport would then refer to one SampleReport, and each SampleReport would refer to one ExternalMessage. |
I had to improvise on some aspects, as they were not specified in the ticket.
|
* #9109 introduce sample report * #9109 add unit tests for sample report * #9109 fix addSampleReport * #9109 Processing of multpiple samples per message * #9109 avoid disease variant update popup multiplication * #9109 fix versioning trigger * #9109 adapt tests and fix small findings * #9109 add some flow tests some more will be added in another commit. This is done to speed up the review process. * #9109 small fixes after rebase * #9109 fix homogenousTestResultTypesIn * #9109 fix tests * #9109 fix button caption * #9109 add sample details for selection * #9109 extend tests * #9109 slightly restructure tests * #9109 further extend tests * #9109 review findings * #9109 avoid NPE
The ticket will be reopen because of the appearance of the Update disease variant pop-up being hidden in the background of the process demis message. Steps to reproduce:
Actual results: Expected results: |
Validated on local environment with the version: 1.76.0-SNAPSHOT (c76bbe1) |
Problem Description
Currently, lab messages are split when multiple samples are referenced in one DEMIS notification. This is a problem for higher health institutions and the contextual meaning of the lifecycle management. Thus, we were asked to adjust the processing in SORMAS and not split a single notification depending on the number of referenced samples. This is also supposed to make processing easier for users.
The following two problems have to be addressed:
Proposed Change
Acceptance Criteria
Implementation Details
With the proposed change, there comes the problem that lab messages currently can just store information about one sample. With the changes proposed above, it is necessary to store data of several samples per lab message. Therefore, similar to test reports which enable data of several pathogen tests to be available per lab message, sample reports shall be introduced:
sample
from the external message (current entity storing lab message data) to the sample report. Also do this for the attributeslabSampleId
andspecimenCondition
.This change affects the following existing structures and features:
Currently, each test report references a lab message. As a test report stores information about a pathogen test, it is necessary for them to have a reference to sample data. Right now, each test report therefore refers to a lab message (containing data of one sample). As, with the proposed change, there will be information about several samples per lab message, this reference has to be changed. Test reports have to refer to sample reports now. Thus, the new overall structure shall look like:
Currently, at the end of processing a lab message, there is a relation stored: The lab message gets a reference to the sample asssociated through the processing. With this change, several samples can be associated. Therefore, several references need to be stored. That's why this reference shall be moved from the lab message to the sample report.
sample
attribute from the external message to the sample reportIn the sample list (when viewing a case or contact), there is the option to open associated lab messages
The changes described above also require adaptions in the lab message mapper (sample values can not be taken from the lab message anymore, but from the sample report) and database migration.
Furthermore, S2S-sharing of lab messages is affected, because sample reports now also have to be transferred there.
There exist shortcuts for processing lab messages (#5729). These shortcuts are currently designed to check for just one sample.
After the changes proposed here, they shall just be triggered when there is exactly one sample report for the lab message to be processed. One could also consider modifying the shortcuts to take into account multiple samples, but that is probably too complex to be of use.
Additional Information
Related SORMAS-DEMIS-adapter ticket: #63
The text was updated successfully, but these errors were encountered: