changeset 317:6253c70b197b

fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Dec 2012 17:51:17 +0100
parents d526ac73c886
children b83d85a85d69
files NEWS OrthancServer/OrthancRestApi.cpp
diffstat 2 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Fri Dec 21 17:27:16 2012 +0100
+++ b/NEWS	Fri Dec 21 17:51:17 2012 +0100
@@ -1,8 +1,15 @@
 Pending changes in the mainline
 ===============================
 
+Major changes
+-------------
+
 * Download of modified or anonymized DICOM instances
-* Inplace modifications to DICOM series and studies
+* Inplace modification and anymization of DICOM series and studies
+
+Minor changes
+-------------
+
 * Support of private tags
 
 
--- a/OrthancServer/OrthancRestApi.cpp	Fri Dec 21 17:27:16 2012 +0100
+++ b/OrthancServer/OrthancRestApi.cpp	Fri Dec 21 17:51:17 2012 +0100
@@ -1262,21 +1262,21 @@
       if (isNewSeries)
       {
         context.GetIndex().SetMetadata
-          (modifiedHasher.HashSeries(), MetadataType_ModifiedFrom, originalHasher.HashSeries());
+          (modifiedHasher.HashSeries(), metadataType, originalHasher.HashSeries());
       }
 
       if (newStudyId.size() == 0)
       {
         newStudyId = modifiedHasher.HashStudy();
-        context.GetIndex().SetMetadata(newStudyId, MetadataType_ModifiedFrom, originalHasher.HashStudy());
+        context.GetIndex().SetMetadata(newStudyId, metadataType, originalHasher.HashStudy());
       }
 
       assert(*it == originalHasher.HashInstance());
       assert(modifiedInstance == modifiedHasher.HashInstance());
-      context.GetIndex().SetMetadata(modifiedInstance, MetadataType_ModifiedFrom, *it);
+      context.GetIndex().SetMetadata(modifiedInstance, metadataType, *it);
     }
 
-    context.GetIndex().LogChange(ChangeType_ModifiedStudy, newStudyId);
+    context.GetIndex().LogChange(changeType, newStudyId);
 
     assert(newStudyId.size() != 0);
     Json::Value result = Json::objectValue;