diff OrthancServer/OrthancRestApi.cpp @ 434:ccf3a0a43dac

EnumerationDictionary
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 15 May 2013 14:54:58 +0200
parents b79bf2f4ab2e
children d51186bf7602
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp	Wed May 15 14:19:09 2013 +0200
+++ b/OrthancServer/OrthancRestApi.cpp	Wed May 15 14:54:58 2013 +0200
@@ -851,7 +851,7 @@
       result["Path"] = GetBasePath(ResourceType_Instance, publicId);
     }
 
-    result["Status"] = ToString(status);
+    result["Status"] = EnumerationToString(status);
     call.GetOutput().AnswerJson(result);
   }
 
@@ -1368,7 +1368,7 @@
             throw OrthancException(ErrorCode_InternalError);
         }
 
-        result["Type"] = ToString(resourceType);
+        result["Type"] = EnumerationToString(resourceType);
         result["ID"] = newId;
         result["Path"] = GetBasePath(resourceType, newId);
         result["PatientID"] = modifiedHasher.HashPatient();