diff OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 5596:81a29ad7fb4b find-refactoring

added possibility to retrieve main DICOM tags and metadata at any level
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 07 May 2024 18:44:53 +0200
parents a87f2a56257d
children 8796c100aaf8
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Tue May 07 12:53:12 2024 +0200
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Tue May 07 18:44:53 2024 +0200
@@ -245,8 +245,8 @@
       if (expand)
       {
         // compatibility with default expand option
-        request.SetRetrieveMainDicomTags(true);
-        request.SetRetrieveMetadata(true);
+        request.SetRetrieveMainDicomTags(resourceType, true);
+        request.SetRetrieveMetadata(resourceType, true);
         request.SetRetrieveLabels(true);
 
         if (resourceType == ResourceType_Series)