comparison Core/DicomParsing/DicomModification.cpp @ 2844:99863d6245b2

New URI: "/studies/.../split" to split a study
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 28 Sep 2018 16:48:43 +0200
parents 062776ab4a21
children d924f9bb61cc
comparison
equal deleted inserted replaced
2843:4ee3a759afea 2844:99863d6245b2
1069 throw OrthancException(ErrorCode_BadRequest); 1069 throw OrthancException(ErrorCode_BadRequest);
1070 } 1070 }
1071 1071
1072 for (Json::Value::ArrayIndex i = 0; i < query.size(); i++) 1072 for (Json::Value::ArrayIndex i = 0; i < query.size(); i++)
1073 { 1073 {
1074 if (query[i].type() != Json::stringValue)
1075 {
1076 throw OrthancException(ErrorCode_BadRequest);
1077 }
1078
1074 std::string name = query[i].asString(); 1079 std::string name = query[i].asString();
1075 1080
1076 DicomTag tag = FromDcmtkBridge::ParseTag(name); 1081 DicomTag tag = FromDcmtkBridge::ParseTag(name);
1077 1082
1078 if (!force && IsDatabaseKey(tag)) 1083 if (!force && IsDatabaseKey(tag))