comparison 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
comparison
equal deleted inserted replaced
5566:8b507b1514eb 5567:f3562c1a150d
35 if (request.GetResponseContent() == FindRequest::ResponseContent_IdentifiersOnly && 35 if (request.GetResponseContent() == FindRequest::ResponseContent_IdentifiersOnly &&
36 !request.GetOrthancIdentifiers().HasPatientId() && 36 !request.GetOrthancIdentifiers().HasPatientId() &&
37 !request.GetOrthancIdentifiers().HasStudyId() && 37 !request.GetOrthancIdentifiers().HasStudyId() &&
38 !request.GetOrthancIdentifiers().HasSeriesId() && 38 !request.GetOrthancIdentifiers().HasSeriesId() &&
39 !request.GetOrthancIdentifiers().HasInstanceId() && 39 !request.GetOrthancIdentifiers().HasInstanceId() &&
40 request.GetTagConstraintsCount() == 0 && 40 request.GetFilterConstraintsCount() == 0 &&
41 !request.IsRetrieveTagsAtLevel(ResourceType_Patient) && 41 !request.IsRetrieveTagsAtLevel(ResourceType_Patient) &&
42 !request.IsRetrieveTagsAtLevel(ResourceType_Study) && 42 !request.IsRetrieveTagsAtLevel(ResourceType_Study) &&
43 !request.IsRetrieveTagsAtLevel(ResourceType_Series) && 43 !request.IsRetrieveTagsAtLevel(ResourceType_Series) &&
44 !request.IsRetrieveTagsAtLevel(ResourceType_Instance) && 44 !request.IsRetrieveTagsAtLevel(ResourceType_Instance) &&
45 request.GetTagOrdering().empty() && 45 request.GetOrdering().empty() &&
46 request.GetLabels().empty() && 46 request.GetLabels().empty())
47 request.GetMetadataConstraints().empty())
48 { 47 {
49 std::list<std::string> ids; 48 std::list<std::string> ids;
50 49
51 if (request.HasLimits()) 50 if (request.HasLimits())
52 { 51 {