changeset 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 6e42d676401c
children f687e11aeb13
files Core/DicomParsing/DicomModification.cpp NEWS
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
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;
--- a/NEWS	Fri Apr 05 16:01:42 2019 +0200
+++ b/NEWS	Fri Apr 05 17:04:28 2019 +0200
@@ -1,7 +1,12 @@
 Pending changes in the mainline
 ===============================
 
+
+Maintenance
+-----------
+
 * Size of the Orthanc static binaries are reduced by compressing ICU data
+* Anonymization: Preserve hierarchical relationships in (0008,1115) [] (0020,000e)
 * Fix issue #136 (C-FIND request fails when found DICOM file does not have certain tags)
 * Fix issue #137 (C-STORE fails for unknown SOP Class although server is configured to accept any)
 * Fix issue #138 (POST to modalities/{name} accepts invalid characters)