diff OrthancServer/FromDcmtkBridge.cpp @ 106:332fec038d52

patch for dcmtk dictionaries
author jodogne
date Wed, 03 Oct 2012 17:53:23 +0200
parents 6212bf978584
children 3b45473c0a73
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.cpp	Wed Oct 03 17:14:52 2012 +0200
+++ b/OrthancServer/FromDcmtkBridge.cpp	Wed Oct 03 17:53:23 2012 +0200
@@ -538,6 +538,19 @@
 
   std::string FromDcmtkBridge::GetName(const DicomTag& t)
   {
+    // Some patches for important tags because of different DICOM
+    // dictionaries between DCMTK versions
+    if (t == DICOM_TAG_PATIENT_NAME)
+      return "PatientName";
+
+    if (t == DicomTag(0x0010, 0x0030))
+      return "PatientBirthDate";
+
+    if (t == DicomTag(0x0010, 0x0040))
+      return "PatientSex";
+
+    // End of patches
+
     DcmTagKey tag(t.GetGroup(), t.GetElement());
     const DcmDataDictionary& dict = dcmDataDict.rdlock();
     const DcmDictEntry* entry = dict.findEntry(tag, NULL);