Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 1696:b62c2e706c13
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Oct 2015 14:49:02 +0200 |
parents | 18c02c6987d5 |
children | d78b87f93bcf |
comparison
equal
deleted
inserted
replaced
1695:18c02c6987d5 | 1696:b62c2e706c13 |
---|---|
497 // Inject the user-specified tags | 497 // Inject the user-specified tags |
498 Json::Value::Members members = tags.getMemberNames(); | 498 Json::Value::Members members = tags.getMemberNames(); |
499 for (size_t i = 0; i < members.size(); i++) | 499 for (size_t i = 0; i < members.size(); i++) |
500 { | 500 { |
501 const std::string& name = members[i]; | 501 const std::string& name = members[i]; |
502 if (tags[name].type() != Json::stringValue) | |
503 { | |
504 throw OrthancException(ErrorCode_CreateDicomNotString); | |
505 } | |
506 | |
507 DicomTag tag = FromDcmtkBridge::ParseTag(name); | 502 DicomTag tag = FromDcmtkBridge::ParseTag(name); |
508 | 503 |
509 if (tag != DICOM_TAG_SPECIFIC_CHARACTER_SET) | 504 if (tag != DICOM_TAG_SPECIFIC_CHARACTER_SET) |
510 { | 505 { |
511 if (tag != DICOM_TAG_PATIENT_ID && | 506 if (tag != DICOM_TAG_PATIENT_ID && |