mmiv-center / DICOMAnonymizer

A multi-threaded anonymizer for DICOM files implementing most of DICOM PS 3.15 AnnexE
The Unlicense
13 stars 0 forks source link

Study split into two #9

Closed HaukeBartsch closed 3 years ago

HaukeBartsch commented 3 years ago

After anonymization a study can be split into 2 studies.

HaukeBartsch commented 3 years ago

The issue seems to be caused by the StringFilter of gdcm. Using ToString() seems to return the first found tag with value 0020,000d (StudyInstanceUID), even if that happens to be inside a 0008,1200 nested tag group. If such a tag references another study the anonymized StudyInstanceUID will be linked to the wrong entry. That creates the second study. This seems to be extremely rare.