Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancFindRequestHandler.cpp @ 4978:2cfa50d8eb60 more-tags
Speed-up handling of DicomModalitiesInStudy in C-Find and tools/find queries
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 20 Apr 2022 14:36:47 +0200 |
parents | 304514ce84ee |
children | d4e5ca0c9307 |
comparison
equal
deleted
inserted
replaced
4977:dad71e6da406 | 4978:2cfa50d8eb60 |
---|---|
53 { | 53 { |
54 ExpandedResource resource; | 54 ExpandedResource resource; |
55 std::set<DicomTag> requestedTags; | 55 std::set<DicomTag> requestedTags; |
56 | 56 |
57 query.GetTags(requestedTags); | 57 query.GetTags(requestedTags); |
58 requestedTags.erase(DICOM_TAG_QUERY_RETRIEVE_LEVEL); // this is not part of the answer | |
58 | 59 |
59 // reuse ExpandResource to get missing tags and computed tags (ModalitiesInStudy ...). This code is therefore shared between C-Find, tools/find, list-resources and QIDO-RS | 60 // reuse ExpandResource to get missing tags and computed tags (ModalitiesInStudy ...). This code is therefore shared between C-Find, tools/find, list-resources and QIDO-RS |
60 context.ExpandResource(resource, publicId, mainDicomTags, instanceId, dicomAsJson, level, requestedTags, ExpandResourceDbFlags_IncludeMainDicomTags); | 61 context.ExpandResource(resource, publicId, mainDicomTags, instanceId, dicomAsJson, level, requestedTags, ExpandResourceDbFlags_IncludeMainDicomTags); |
61 | 62 |
62 DicomMap result; | 63 DicomMap result; |