diff Plugins/Engine/OrthancPlugins.cpp @ 3507:69e49fc044f8

Fix generation of "SOP Instance UID" on split and merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Aug 2019 16:54:00 +0200
parents dd1e68f2d0c0
children f6fe095f7130
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp	Wed Aug 28 15:19:04 2019 +0200
+++ b/Plugins/Engine/OrthancPlugins.cpp	Wed Aug 28 16:54:00 2019 +0200
@@ -2113,6 +2113,12 @@
     }
     else
     {
+      if (result.size() > 1)
+      {
+        LOG(WARNING) << "LookupResource(): Multiple resources match the query (instead of 0 or 1), which indicates "
+                     << "your DICOM database breaks the DICOM model of the real world";
+      }
+      
       throw OrthancException(ErrorCode_UnknownResource);
     }
   }