changeset 313:60429bb2551e

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Dec 2012 13:44:38 +0100
parents 1642a354fec8
children 4f17834a50b6
files OrthancServer/OrthancRestApi.cpp
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp	Fri Dec 21 13:36:50 2012 +0100
+++ b/OrthancServer/OrthancRestApi.cpp	Fri Dec 21 13:44:38 2012 +0100
@@ -1108,7 +1108,6 @@
     {
       std::auto_ptr<ParsedDicomFile> modified(dicom.Clone());
       ReplaceInstanceInternal(*modified, removals, replacements, DicomReplaceMode_InsertIfAbsent, removePrivateTags);
-      context.GetIndex().SetMetadata(id, MetadataType_ModifiedFrom, id);
       modified->Answer(call.GetOutput());
     }
   }
@@ -1142,8 +1141,6 @@
 
       std::auto_ptr<ParsedDicomFile> anonymized(dicom.Clone());
       ReplaceInstanceInternal(*anonymized, removals, replacements, DicomReplaceMode_InsertIfAbsent, removePrivateTags);
-      context.GetIndex().SetMetadata(id, MetadataType_AnonymizedFrom, id);
-
       anonymized->Answer(call.GetOutput());
     }
   }
@@ -1192,6 +1189,9 @@
         {
           throw OrthancException(ErrorCode_InternalError);
         }
+
+        // TODO for the instances and the series:
+        // context.GetIndex().SetMetadata(id, MetadataType_ModifiedFrom, id);
       }
 
       assert(newSeriesId.size() != 0);
@@ -1265,6 +1265,9 @@
 
         if (newStudyId.size() == 0)
         {
+          // TODO FOR instances, studies and series:
+          // context.GetIndex().SetMetadata(id, MetadataType_ModifiedFrom, id);
+
           std::string newSeriesId;
           if (!context.GetIndex().LookupParent(newSeriesId, modifiedInstance) ||
               !context.GetIndex().LookupParent(newStudyId, newSeriesId))