# HG changeset patch # User Sebastien Jodogne # Date 1356093878 -3600 # Node ID 60429bb2551e1dd22d514addffb97c95c32005f5 # Parent 1642a354fec804121c8a6c0975d9653ef94dbac7 fix diff -r 1642a354fec8 -r 60429bb2551e OrthancServer/OrthancRestApi.cpp --- 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 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 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))