diff OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 2521:6db878376018

support anonymization of CurrentRequestedProcedureEvidenceSequence
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Apr 2018 17:59:16 +0200
parents 2e6b7862ccf2
children 75a404e40323
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp	Thu Mar 29 16:14:10 2018 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp	Mon Apr 09 17:59:16 2018 +0200
@@ -104,7 +104,7 @@
 
     ServerContext::DicomCacheLocker locker(OrthancRestApi::GetContext(call), id);
 
-    std::auto_ptr<ParsedDicomFile> modified(locker.GetDicom().Clone());
+    std::auto_ptr<ParsedDicomFile> modified(locker.GetDicom().Clone(true));
     modification.Apply(*modified);
     modified->Answer(call.GetOutput());
   }
@@ -162,7 +162,7 @@
        * Compute the resulting DICOM instance.
        **/
 
-      std::auto_ptr<ParsedDicomFile> modified(original.Clone());
+      std::auto_ptr<ParsedDicomFile> modified(original.Clone(true));
       modification.Apply(*modified);
 
       DicomInstanceToStore toStore;
@@ -434,7 +434,7 @@
     {
       for (Json::ArrayIndex i = 0; i < content.size(); i++)
       {
-        std::auto_ptr<ParsedDicomFile> dicom(base.Clone());
+        std::auto_ptr<ParsedDicomFile> dicom(base.Clone(false));
         const Json::Value* payload = NULL;
 
         if (content[i].type() == Json::stringValue)