Mercurial > hg > orthanc
comparison OrthancServer/OrthancInitialization.cpp @ 4011:914b15dedae3
fix for non private sequence tags in C-Find
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 08 Jun 2020 16:04:29 +0200 |
parents | 94f4a18a79cc |
children | 05a363186da6 |
comparison
equal
deleted
inserted
replaced
4007:884b55ce01f6 | 4011:914b15dedae3 |
---|---|
160 content[1].type() != Json::stringValue || | 160 content[1].type() != Json::stringValue || |
161 (content.size() >= 3 && content[2].type() != Json::intValue) || | 161 (content.size() >= 3 && content[2].type() != Json::intValue) || |
162 (content.size() >= 4 && content[3].type() != Json::intValue) || | 162 (content.size() >= 4 && content[3].type() != Json::intValue) || |
163 (content.size() >= 5 && content[4].type() != Json::stringValue)) | 163 (content.size() >= 5 && content[4].type() != Json::stringValue)) |
164 { | 164 { |
165 throw OrthancException(ErrorCode_BadFileFormat); | 165 throw OrthancException(ErrorCode_BadFileFormat, "The definition of the '" + tags[i] + "' dictionary entry is invalid."); |
166 } | 166 } |
167 | 167 |
168 DicomTag tag(FromDcmtkBridge::ParseTag(tags[i])); | 168 DicomTag tag(FromDcmtkBridge::ParseTag(tags[i])); |
169 ValueRepresentation vr = StringToValueRepresentation(content[0].asString(), true); | 169 ValueRepresentation vr = StringToValueRepresentation(content[0].asString(), true); |
170 std::string name = content[1].asString(); | 170 std::string name = content[1].asString(); |