diff OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp @ 4663:72af097bb92b

"Replace" tags in "/modify" and "/anonymize" now supports value representation AT
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 May 2021 14:11:47 +0200
parents 93a51d228d80
children d38a7040474a
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Wed May 12 09:32:20 2021 +0200
+++ b/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Thu May 13 14:11:47 2021 +0200
@@ -1685,7 +1685,6 @@
 
         case EVR_OB:  // other byte
         case EVR_OW:  // other word
-        case EVR_AT:  // attribute tag
           throw OrthancException(ErrorCode_NotImplemented);
     
         case EVR_UN:  // unknown value representation
@@ -1770,6 +1769,18 @@
 
 
         /**
+         * Other types
+         **/
+        
+        case EVR_AT:  // attribute tag, new in Orthanc 1.9.4
+        {
+          DicomTag value = ParseTag(utf8Value);
+          ok = element.putTagVal(DcmTagKey(value.GetGroup(), value.GetElement())).good();
+          break;
+        }
+
+          
+        /**
          * Sequence types, should never occur at this point.
          **/