comparison OrthancServer/UnitTestsSources/ServerIndexTests.cpp @ 5693:023787ecaff2 find-refactoring

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Jul 2024 21:37:20 +0200
parents 68fc5af30c03
children b4e7a85cde80
comparison
equal deleted inserted replaced
5692:7c11a71927a9 5693:023787ecaff2
165 assert(ServerToolbox::IsIdentifier(tag, level)); 165 assert(ServerToolbox::IsIdentifier(tag, level));
166 166
167 DicomTagConstraint c(tag, type, value, true, true); 167 DicomTagConstraint c(tag, type, value, true, true);
168 168
169 DatabaseConstraints lookup; 169 DatabaseConstraints lookup;
170 lookup.AddConstraint(c.ConvertToDatabaseConstraint(level, DicomTagType_Identifier)); 170 bool isEquivalent; // unused
171 lookup.AddConstraint(c.ConvertToDatabaseConstraint(isEquivalent, level, DicomTagType_Identifier));
171 172
172 std::set<std::string> noLabel; 173 std::set<std::string> noLabel;
173 transaction_->ApplyLookupResources(result, NULL, lookup, level, noLabel, LabelsConstraint_All, 0 /* no limit */); 174 transaction_->ApplyLookupResources(result, NULL, lookup, level, noLabel, LabelsConstraint_All, 0 /* no limit */);
174 } 175 }
175 176
185 186
186 DicomTagConstraint c1(tag, type1, value1, true, true); 187 DicomTagConstraint c1(tag, type1, value1, true, true);
187 DicomTagConstraint c2(tag, type2, value2, true, true); 188 DicomTagConstraint c2(tag, type2, value2, true, true);
188 189
189 DatabaseConstraints lookup; 190 DatabaseConstraints lookup;
190 lookup.AddConstraint(c1.ConvertToDatabaseConstraint(level, DicomTagType_Identifier)); 191 bool isEquivalent; // unused
191 lookup.AddConstraint(c2.ConvertToDatabaseConstraint(level, DicomTagType_Identifier)); 192 lookup.AddConstraint(c1.ConvertToDatabaseConstraint(isEquivalent, level, DicomTagType_Identifier));
193 lookup.AddConstraint(c2.ConvertToDatabaseConstraint(isEquivalent, level, DicomTagType_Identifier));
192 194
193 std::set<std::string> noLabel; 195 std::set<std::string> noLabel;
194 transaction_->ApplyLookupResources(result, NULL, lookup, level, noLabel, LabelsConstraint_All, 0 /* no limit */); 196 transaction_->ApplyLookupResources(result, NULL, lookup, level, noLabel, LabelsConstraint_All, 0 /* no limit */);
195 } 197 }
196 }; 198 };