diff OrthancServer/Sources/Database/Compatibility/GenericFind.cpp @ 5567:f3562c1a150d find-refactoring

FindRequest: group metadata and tag constrains in a single class, allow ordering against metadata
author Alain Mazy <am@orthanc.team>
date Tue, 23 Apr 2024 16:49:44 +0200
parents def06a42e5ef
children b0b5546f1b9f
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/Compatibility/GenericFind.cpp	Tue Apr 23 14:37:11 2024 +0200
+++ b/OrthancServer/Sources/Database/Compatibility/GenericFind.cpp	Tue Apr 23 16:49:44 2024 +0200
@@ -37,14 +37,13 @@
           !request.GetOrthancIdentifiers().HasStudyId() &&
           !request.GetOrthancIdentifiers().HasSeriesId() &&
           !request.GetOrthancIdentifiers().HasInstanceId() &&
-          request.GetTagConstraintsCount() == 0 &&
+          request.GetFilterConstraintsCount() == 0 &&
           !request.IsRetrieveTagsAtLevel(ResourceType_Patient) &&
           !request.IsRetrieveTagsAtLevel(ResourceType_Study) &&
           !request.IsRetrieveTagsAtLevel(ResourceType_Series) &&
           !request.IsRetrieveTagsAtLevel(ResourceType_Instance) &&
-          request.GetTagOrdering().empty() &&
-          request.GetLabels().empty() &&
-          request.GetMetadataConstraints().empty())
+          request.GetOrdering().empty() &&
+          request.GetLabels().empty())
       {
         std::list<std::string> ids;