Changes to Frozen tissue date import wizard
- The import should work with the complete TAB-separated file. The first line is a header line with column names. The SCAN-B ID is found in the "ProvID" column. When converting the XLS file to text it should be saved with TAB as separator, UTF-8 as character encoding, and no text delimiter.
- SCAN-B ID can appear in different forms that should be supported:
- 1234567
- 12-34567
- 1234567C
- 12-34567C
- PAD value (=any other format)
- The importer should check that consent is acceptable (=Yes or missing). It should not import anything to items with "No" or "Not asked". Entries with non-acceptable consent should be reported when the wizard has finished.
- Duplicates should be reported when the wizard has finished.
- Entries with no match in BASE should be reported when the wizard has finished.
(In [4510]) References #969: Changes to Frozen tissue date import wizard
The importer has now been updated and should support the requested features. The final report is presented as a table with warnings.
One particular issue was that it is not possible (due to limitations in BASE) to read annotations on items that are used with the
AnnotationBatcher
. Since we need to check theConsent
annotation and set theFrozenTissueDate
there is a clash. Using the regular API for updating the annotations turned out to be very slow. The final solution was to make a single query to load the id of all cases that has a consent annotation that is not 'Yes' and then check all cases against this list.