Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
5595:a87f2a56257d | 5596:81a29ad7fb4b |
---|---|
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.SetRetrieveMainDicomTags(true); | 248 request.SetRetrieveMainDicomTags(resourceType, true); |
249 request.SetRetrieveMetadata(true); | 249 request.SetRetrieveMetadata(resourceType, true); |
250 request.SetRetrieveLabels(true); | 250 request.SetRetrieveLabels(true); |
251 | 251 |
252 if (resourceType == ResourceType_Series) | 252 if (resourceType == ResourceType_Series) |
253 { | 253 { |
254 request.AddRetrieveChildrenMetadata(MetadataType_Instance_IndexInSeries); // required for the SeriesStatus | 254 request.AddRetrieveChildrenMetadata(MetadataType_Instance_IndexInSeries); // required for the SeriesStatus |