diff OrthancFramework/Sources/Enumerations.cpp @ 5025:afa427f65444

Added an Asynchronous mode to /modalities/../move
author Alain Mazy <am@osimis.io>
date Tue, 21 Jun 2022 10:55:45 +0200
parents b7ce2bb6b881
children 3444990cf295
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.cpp	Wed Jun 15 15:40:07 2022 +0200
+++ b/OrthancFramework/Sources/Enumerations.cpp	Tue Jun 21 10:55:45 2022 +0200
@@ -1314,6 +1314,27 @@
     throw OrthancException(ErrorCode_ParameterOutOfRange);
   }
 
+  const char* ResourceTypeToDicomQueryRetrieveLevel(ResourceType type)
+  {
+    if (type == ResourceType_Patient)
+    {
+      return "PATIENT";
+    }
+    else if (type == ResourceType_Study)
+    {
+      return "STUDY";
+    }
+    else if (type == ResourceType_Series)
+    {
+      return "SERIES";
+    }
+    else if (type == ResourceType_Instance)
+    {
+      return "IMAGE";
+    }
+
+    throw OrthancException(ErrorCode_ParameterOutOfRange);
+  }
 
   ImageFormat StringToImageFormat(const char* format)
   {