diff OrthancServer/Sources/OrthancInitialization.cpp @ 5793:a8055aebc6cb find-refactoring

added standard MainDicomTags that are used in QIDO-RS
author Alain Mazy <am@orthanc.team>
date Wed, 18 Sep 2024 12:30:49 +0200
parents f7adfb22e20e
children
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancInitialization.cpp	Wed Sep 18 10:38:42 2024 +0200
+++ b/OrthancServer/Sources/OrthancInitialization.cpp	Wed Sep 18 12:30:49 2024 +0200
@@ -261,7 +261,17 @@
             {
               LOG(INFO) << "  - " << tagName;
             }
-            DicomMap::AddMainDicomTag(tag, level);
+
+            try
+            {
+              DicomMap::AddMainDicomTag(tag, level);
+            }
+            catch(OrthancException& e)
+            {
+              LOG(WARNING) << "  - !!! " << tagName << " is already defined as a standard MainDicomTags, it is useless to include it in the ExtraMainDicomTags";
+            }
+            
+            
           }
         }
       }