comparison 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
comparison
equal deleted inserted replaced
5591:043c8016ed6a 5592:1e2631b8b9af
243 FindRequest request(resourceType); 243 FindRequest request(resourceType);
244 244
245 if (expand) 245 if (expand)
246 { 246 {
247 // compatibility with default expand option 247 // compatibility with default expand option
248 request.SetRetrieveTagsAtLevel(resourceType, true); 248 request.SetRetrieveMainDicomTags(true);
249 request.SetRetrieveMetadata(true); 249 request.SetRetrieveMetadata(true);
250 request.SetRetrieveLabels(true); 250 request.SetRetrieveLabels(true);
251 251
252 if (resourceType == ResourceType_Series) 252 if (resourceType == ResourceType_Series)
253 { 253 {
264 } 264 }
265 265
266 if (resourceType != ResourceType_Patient) 266 if (resourceType != ResourceType_Patient)
267 { 267 {
268 request.SetRetrieveParentIdentifier(true); 268 request.SetRetrieveParentIdentifier(true);
269 }
270
271 if (resourceType == ResourceType_Study)
272 {
273 request.SetRetrieveTagsAtLevel(ResourceType_Patient, true);
274 } 269 }
275 } 270 }
276 271
277 if (call.HasArgument("limit") || 272 if (call.HasArgument("limit") ||
278 call.HasArgument("since")) 273 call.HasArgument("since"))