changeset 572:e5eaef9cad80 laaw

mainline -> laaw integration
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Sep 2013 15:12:38 +0200
parents ec2c2411d4db (current diff) 48c9f83587a8 (diff)
children 8fb9867d8089
files
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp	Wed Sep 25 15:03:24 2013 +0200
+++ b/OrthancServer/OrthancRestApi.cpp	Wed Sep 25 15:12:38 2013 +0200
@@ -1242,9 +1242,10 @@
       ParseReplacements(replacements, replacementsPart);
 
       // Generate random Patient's Name if none is specified
-      if (replacements.find(DicomTag(0x0010, 0x0010)) == replacements.end())
+      if (toKeep.find(DICOM_TAG_PATIENT_NAME) == toKeep.end() &&
+          replacements.find(DICOM_TAG_PATIENT_NAME) == replacements.end())
       {
-        replacements.insert(std::make_pair(DicomTag(0x0010, 0x0010), GeneratePatientName(context)));
+        replacements.insert(std::make_pair(DICOM_TAG_PATIENT_NAME, GeneratePatientName(context)));
       }
 
       return true;