Mercurial > hg > orthanc
diff Core/DicomParsing/DicomModification.cpp @ 3344:90b4a5001c24
Anonymization: Preserve hierarchical relationships in (0008,1115) [] (0020,000e)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Apr 2019 17:04:28 +0200 |
parents | 880e4161c312 |
children | 7db879b014ff |
line wrap: on
line diff
--- a/Core/DicomParsing/DicomModification.cpp Fri Apr 05 16:01:42 2019 +0200 +++ b/Core/DicomParsing/DicomModification.cpp Fri Apr 05 17:04:28 2019 +0200 @@ -158,6 +158,13 @@ newValue = that_.MapDicomIdentifier(Toolbox::StripSpaces(value), ResourceType_Series); return Action_Replace; } + else if (parentTags.size() == 1 && + parentTags[0] == DICOM_TAG_REFERENCED_SERIES_SEQUENCE && + tag == DICOM_TAG_SERIES_INSTANCE_UID) + { + newValue = that_.MapDicomIdentifier(Toolbox::StripSpaces(value), ResourceType_Series); + return Action_Replace; + } else { return Action_None;