Mercurial > hg > orthanc
diff OrthancServer/QueryRetrieveHandler.cpp @ 2996:d547f998c947 db-changes
integration mainline->db-changes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Dec 2018 20:33:13 +0100 |
parents | b1ba0a8311b5 |
children | 4e43e67f8ecf |
line wrap: on
line diff
--- a/OrthancServer/QueryRetrieveHandler.cpp Thu Dec 06 15:58:08 2018 +0100 +++ b/OrthancServer/QueryRetrieveHandler.cpp Mon Dec 10 20:33:13 2018 +0100 @@ -142,6 +142,24 @@ } + void QueryRetrieveHandler::CopyStringTag(const DicomMap& from, + const DicomTag& tag) + { + const DicomValue* value = from.TestAndGetValue(tag); + + if (value == NULL || + value->IsNull() || + value->IsBinary()) + { + throw OrthancException(ErrorCode_InexistentTag); + } + else + { + SetQuery(tag, value->GetContent()); + } + } + + size_t QueryRetrieveHandler::GetAnswersCount() { Run();