InnerEye-Gateway icon indicating copy to clipboard operation
InnerEye-Gateway copied to clipboard

`GenerateAndTestDeAnonymisedStructureSetFile` Unit Test Failing

Open peterhessey opened this issue 2 years ago • 0 comments

After following the set up steps and attempting to run the tests, all of them pass except the GenerateAndTestDeAnonymisedStructureSetFile test, failing with the following output:

  Message: 
Assert.IsFalse failed. 

  Stack Trace: 
DicomAnonymisationTests.VerifyDicomFile(String path) line 293

This is caused by the dicom3tools dciodvfy.exe executable raising an error when verifying the DICOM file after it is sent and de-anonymised. The error in standardError is the following:

ERROR - MISSING ATTRIBUTE TYPE 1 REQUIRED ELEMENT=<FRAMEOFREFERENCEUID> MODULE=<FRAMEOFREFERENCE>
ERROR - MISSING ATTRIBUTE TYPE 2 REQUIRED ELEMENT=<POSITIONREFERENCEINDICATOR> MODULE=<FRAMEOFREFERENCE>

The first attribute, FRAMEOFREFERENCEUID, is present in the test data before it is sent via DCMTK. POSITIONREFERENCEINDICATOR is not. Both are missing (according to dicom3tools) after the data is sent via DCMTK.

peterhessey avatar Jun 14 '22 09:06 peterhessey