diff OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 5592:1e2631b8b9af find-refactoring

GenericFind::Execute() is working for a basic request
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 03 May 2024 21:26:06 +0200
parents 8b32213af23e
children a87f2a56257d
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Fri May 03 18:30:29 2024 +0200
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Fri May 03 21:26:06 2024 +0200
@@ -245,7 +245,7 @@
       if (expand)
       {
         // compatibility with default expand option
-        request.SetRetrieveTagsAtLevel(resourceType, true);
+        request.SetRetrieveMainDicomTags(true);
         request.SetRetrieveMetadata(true);
         request.SetRetrieveLabels(true);
 
@@ -267,11 +267,6 @@
         {
           request.SetRetrieveParentIdentifier(true);
         }
-
-        if (resourceType == ResourceType_Study)
-        {
-          request.SetRetrieveTagsAtLevel(ResourceType_Patient, true);
-        }
       }
 
       if (call.HasArgument("limit") ||