comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 2313:d19e716b79fa issue-46-anonymization

switch to anonymization according to DICOM 2017c
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Jul 2017 22:07:07 +0200
parents 78dcb3ddea9f
children 53df86a17e99
comparison
equal deleted inserted replaced
2312:8700dcaa02e5 2313:d19e716b79fa
184 { 184 {
185 return false; 185 return false;
186 } 186 }
187 187
188 // As of Orthanc 1.2.1, the default anonymization is done 188 // As of Orthanc 1.2.1, the default anonymization is done
189 // according to PS 3.15-2011 Table E.1-1 189 // according to PS 3.15-2017c Table E.1-1 (basic profile)
190 // TODO Switch to 2017c 190 DicomVersion version = DicomVersion_2017c;
191 DicomVersion version = DicomVersion_2011;
192 if (request.isMember("DicomVersion")) 191 if (request.isMember("DicomVersion"))
193 { 192 {
194 if (request["DicomVersion"].type() != Json::stringValue) 193 if (request["DicomVersion"].type() != Json::stringValue)
195 { 194 {
196 throw OrthancException(ErrorCode_BadFileFormat); 195 throw OrthancException(ErrorCode_BadFileFormat);