diff OrthancServer/Sources/OrthancInitialization.cpp @ 5036:877bc3b96476

Handle Dicom sequences in ExtraMainDicomTags and save them in the 'MainDicomSequences' metadata
author Alain Mazy <am@osimis.io>
date Fri, 24 Jun 2022 15:47:10 +0200
parents f377d5643538
children 3444990cf295
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancInitialization.cpp	Wed Jun 22 15:37:08 2022 +0200
+++ b/OrthancServer/Sources/OrthancInitialization.cpp	Fri Jun 24 15:47:10 2022 +0200
@@ -262,13 +262,13 @@
             ValueRepresentation vr = FromDcmtkBridge::LookupValueRepresentation(tag);
             if (vr == ValueRepresentation_Sequence)
             {
-              LOG(WARNING) << "  - " << tagName << " can not be added in the Extra Main Dicom Tags since it is a sequence";
+              LOG(INFO) << "  - " << tagName << " (sequence)";
             }
             else
             {
-              DicomMap::AddMainDicomTag(tag, tagName, level);
               LOG(INFO) << "  - " << tagName;
             }
+            DicomMap::AddMainDicomTag(tag, tagName, level);
           }
         }
       }