Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 991:2f76b92addd4
keep private tags during anonymization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Jul 2014 11:56:08 +0200 |
parents | 83622b0f544c |
children | b067017a8a5b |
comparison
equal
deleted
inserted
replaced
990:7cbcd580cd21 | 991:2f76b92addd4 |
---|---|
172 if (request.isMember("Keep")) | 172 if (request.isMember("Keep")) |
173 { | 173 { |
174 ParseListOfTags(target, request["Keep"], TagOperation_Keep); | 174 ParseListOfTags(target, request["Keep"], TagOperation_Keep); |
175 } | 175 } |
176 | 176 |
177 if (target.GetReplacement(DICOM_TAG_PATIENT_NAME) == patientName) | 177 if (target.IsReplaced(DICOM_TAG_PATIENT_NAME) && |
178 target.GetReplacement(DICOM_TAG_PATIENT_NAME) == patientName) | |
178 { | 179 { |
179 // Overwrite the random Patient's Name by one that is more | 180 // Overwrite the random Patient's Name by one that is more |
180 // user-friendly (provided none was specified by the user) | 181 // user-friendly (provided none was specified by the user) |
181 target.Replace(DICOM_TAG_PATIENT_NAME, GeneratePatientName(OrthancRestApi::GetContext(call))); | 182 target.Replace(DICOM_TAG_PATIENT_NAME, GeneratePatientName(OrthancRestApi::GetContext(call))); |
182 } | 183 } |