Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi.cpp @ 557:48c9f83587a8
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Sep 2013 13:22:39 +0200 |
parents | d47ae896a754 |
children | d5043ff68d58 |
comparison
equal
deleted
inserted
replaced
555:11fee43c5861 | 557:48c9f83587a8 |
---|---|
1240 } | 1240 } |
1241 | 1241 |
1242 ParseReplacements(replacements, replacementsPart); | 1242 ParseReplacements(replacements, replacementsPart); |
1243 | 1243 |
1244 // Generate random Patient's Name if none is specified | 1244 // Generate random Patient's Name if none is specified |
1245 if (replacements.find(DicomTag(0x0010, 0x0010)) == replacements.end()) | 1245 if (toKeep.find(DICOM_TAG_PATIENT_NAME) == toKeep.end() && |
1246 { | 1246 replacements.find(DICOM_TAG_PATIENT_NAME) == replacements.end()) |
1247 replacements.insert(std::make_pair(DicomTag(0x0010, 0x0010), GeneratePatientName(context))); | 1247 { |
1248 replacements.insert(std::make_pair(DICOM_TAG_PATIENT_NAME, GeneratePatientName(context))); | |
1248 } | 1249 } |
1249 | 1250 |
1250 return true; | 1251 return true; |
1251 } | 1252 } |
1252 else | 1253 else |