Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.cpp @ 1139:f167b672db94
/tools/lookup URI to map DICOM UIDs to Orthanc identifiers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Sep 2014 16:38:28 +0200 |
parents | 514492f61ead |
children | ac36589f699e |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp Wed Sep 10 13:16:08 2014 +0200 +++ b/OrthancServer/ServerIndex.cpp Wed Sep 10 16:38:28 2014 +0200 @@ -1663,7 +1663,7 @@ } - void ServerIndex::LookupTagValue(std::list<std::string>& result, + void ServerIndex::LookupTagValue(std::list< std::pair<ResourceType, std::string> >& result, const std::string& value) { result.clear(); @@ -1676,7 +1676,8 @@ for (std::list<int64_t>::const_iterator it = id.begin(); it != id.end(); ++it) { - result.push_back(db_->GetPublicId(*it)); + result.push_back(std::make_pair(db_->GetResourceType(*it), + db_->GetPublicId(*it))); } }