changeset 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 3badc205cb4c
children f9eda86f9045
files NEWS OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Wed May 12 09:32:20 2021 +0200
+++ b/NEWS	Thu May 13 14:11:47 2021 +0200
@@ -1,6 +1,8 @@
 Pending changes in the mainline
 ===============================
 
+* "Replace" tags in "/modify" and "/anonymize" now supports value representation AT
+
 
 Version 1.9.3 (2021-05-07)
 ==========================
--- 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.
          **/