changeset 5555:13eb84aea8b8

0x0111 is now considered as a warning instead of an error
author Alain Mazy <am@orthanc.team>
date Mon, 15 Apr 2024 16:31:04 +0200
parents dcbf0c776945
children 1fc1289383ae
files NEWS OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.cpp
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Fri Mar 29 23:23:01 2024 +0100
+++ b/NEWS	Mon Apr 15 16:31:04 2024 +0200
@@ -10,6 +10,9 @@
   They are now removed from the query earlier to avoid this disk access that 
   could slow down the response time.  Note that this seems to happen mainly 
   when the query originates from some GE devices (AWS).
+* The 0x0111 DIMSE Status is now considered as a warning instead of an error
+  when received as a response to a C-Store. 
+  See https://discourse.orthanc-server.org/t/ignore-dimse-status-0x0111-when-sending-partial-duplicate-studies/4555/3
 
 REST API
 --------
--- a/OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.cpp	Fri Mar 29 23:23:01 2024 +0100
+++ b/OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.cpp	Mon Apr 15 16:31:04 2024 +0200
@@ -449,7 +449,8 @@
     if (response.DimseStatus != 0x0000 &&  // Success
         response.DimseStatus != 0xB000 &&  // Warning - Coercion of Data Elements
         response.DimseStatus != 0xB007 &&  // Warning - Data Set does not match SOP Class
-        response.DimseStatus != 0xB006)    // Warning - Elements Discarded
+        response.DimseStatus != 0xB006 &&  // Warning - Elements Discarded
+        response.DimseStatus != 0x0111)    // Warning - Duplicate SOPInstanceUID (https://discourse.orthanc-server.org/t/ignore-dimse-status-0x0111-when-sending-partial-duplicate-studies/4555/3)
     {
       char buf[16];
       sprintf(buf, "%04X", response.DimseStatus);