comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 2311:78dcb3ddea9f issue-46-anonymization

implementation of clearings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Jul 2017 15:11:36 +0200
parents b7fba68747f6
children d19e716b79fa
comparison
equal deleted inserted replaced
2310:b7fba68747f6 2311:78dcb3ddea9f
183 !request.isObject()) 183 !request.isObject())
184 { 184 {
185 return false; 185 return false;
186 } 186 }
187 187
188 DicomVersion version = DicomVersion_2008; // TODO Switch to 2017c 188 // As of Orthanc 1.2.1, the default anonymization is done
189 // according to PS 3.15-2011 Table E.1-1
190 // TODO Switch to 2017c
191 DicomVersion version = DicomVersion_2011;
189 if (request.isMember("DicomVersion")) 192 if (request.isMember("DicomVersion"))
190 { 193 {
191 if (request["DicomVersion"].type() != Json::stringValue) 194 if (request["DicomVersion"].type() != Json::stringValue)
192 { 195 {
193 throw OrthancException(ErrorCode_BadFileFormat); 196 throw OrthancException(ErrorCode_BadFileFormat);