# HG changeset patch # User Sebastien Jodogne # Date 1720763940 -7200 # Node ID 4a85ee2cbe1fe156a77e1a09956b6f8cc8207151 # Parent 023787ecaff2eca11b390c2bc757638922c93a90 fix diff -r 023787ecaff2 -r 4a85ee2cbe1f OrthancServer/Sources/ResourceFinder.cpp --- a/OrthancServer/Sources/ResourceFinder.cpp Thu Jul 11 21:37:20 2024 +0200 +++ b/OrthancServer/Sources/ResourceFinder.cpp Fri Jul 12 07:59:00 2024 +0200 @@ -562,6 +562,8 @@ void ResourceFinder::SetDatabaseLookup(const DatabaseLookup& lookup) { + MainDicomTagsRegistry registry; + lookup_.reset(lookup.Clone()); for (size_t i = 0; i < lookup.GetConstraintsCount(); i++) @@ -571,9 +573,18 @@ { AddRequestedTag(tag); } + else + { + ResourceType level; + DicomTagType tagType; + registry.LookupTag(level, tagType, tag); + if (tagType == DicomTagType_Generic) + { + AddRequestedTag(tag); + } + } } - MainDicomTagsRegistry registry; isSimpleLookup_ = registry.NormalizeLookup(request_.GetDicomTagConstraints(), lookup, request_.GetLevel()); // "request_.GetDicomTagConstraints()" only contains constraints on main DICOM tags