diff OrthancServer/DicomModification.cpp @ 2209:e3fd5bc429a2

URI to reconstruct the main DICOM tags, the JSON summary and the metadata
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Dec 2016 17:20:21 +0100
parents 3b40ca7470cc
children a3a65de1840f
line wrap: on
line diff
--- a/OrthancServer/DicomModification.cpp	Fri Dec 09 14:48:31 2016 +0100
+++ b/OrthancServer/DicomModification.cpp	Fri Dec 09 17:20:21 2016 +0100
@@ -149,8 +149,7 @@
     level_(ResourceType_Instance),
     allowManualIdentifiers_(true),
     keepStudyInstanceUid_(false),
-    keepSeriesInstanceUid_(false),
-    keepSopInstanceUid_(false)
+    keepSeriesInstanceUid_(false)
   {
   }
 
@@ -179,11 +178,6 @@
       keepSeriesInstanceUid_ = true;
     }
 
-    if (tag == DICOM_TAG_SOP_INSTANCE_UID)
-    {
-      keepSopInstanceUid_ = true;
-    }
-
     MarkNotOrthancAnonymization();
   }
 
@@ -510,14 +504,7 @@
     if (level_ <= ResourceType_Instance &&  // Always true
         !IsReplaced(DICOM_TAG_SOP_INSTANCE_UID))
     {
-      if (keepSopInstanceUid_)
-      {
-        LOG(WARNING) << "Modifying an instance while keeping its original SOPInstanceUID: This should be avoided!";
-      }
-      else
-      {
-        MapDicomIdentifier(toModify, ResourceType_Instance);
-      }
+      MapDicomIdentifier(toModify, ResourceType_Instance);
     }
   }
 }