Mercurial > hg > orthanc
diff OrthancServer/OrthancFindRequestHandler.cpp @ 2115:a657f7772e69
Handling of private tags/creators in the "Dictionary" configuration option
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 31 Oct 2016 15:23:32 +0100 |
parents | b9428d5f7eaf |
children | 4b02ec79728a |
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp Thu Oct 27 12:37:30 2016 +0200 +++ b/OrthancServer/OrthancFindRequestHandler.cpp Mon Oct 31 15:23:32 2016 +0100 @@ -582,7 +582,7 @@ if (!query.GetElement(i).GetValue().IsNull()) { LOG(INFO) << " " << query.GetElement(i).GetTag() - << " " << FromDcmtkBridge::GetName(query.GetElement(i).GetTag()) + << " " << FromDcmtkBridge::GetTagName(query.GetElement(i)) << " = " << query.GetElement(i).GetValue().GetContent(); } } @@ -591,7 +591,7 @@ it != sequencesToReturn.end(); ++it) { LOG(INFO) << " (" << it->Format() - << ") " << FromDcmtkBridge::GetName(*it) + << ") " << FromDcmtkBridge::GetTagName(*it, "") << " : sequence tag whose content will be copied"; } @@ -604,16 +604,17 @@ for (size_t i = 0; i < query.GetSize(); i++) { - const DicomTag tag = query.GetElement(i).GetTag(); + const DicomElement& element = query.GetElement(i); + const DicomTag tag = element.GetTag(); - if (query.GetElement(i).GetValue().IsNull() || + if (element.GetValue().IsNull() || tag == DICOM_TAG_QUERY_RETRIEVE_LEVEL || tag == DICOM_TAG_SPECIFIC_CHARACTER_SET) { continue; } - std::string value = query.GetElement(i).GetValue().GetContent(); + std::string value = element.GetValue().GetContent(); if (value.size() == 0) { // An empty string corresponds to a "*" wildcard constraint, so we ignore it @@ -637,7 +638,7 @@ else { LOG(INFO) << "Because of a patch for the manufacturer of the remote modality, " - << "ignoring constraint on tag (" << tag.Format() << ") " << FromDcmtkBridge::GetName(tag); + << "ignoring constraint on tag (" << tag.Format() << ") " << FromDcmtkBridge::GetTagName(element); } }