diff OrthancServer/OrthancFindRequestHandler.cpp @ 2317:5b7556568fa4

Incoming C-Find request: removing group-length for all manufacturer -> removed EFilm2 manufacturer that is now useless
author amazy
date Thu, 13 Jul 2017 11:35:57 +0200
parents de1ba22fd28a
children 174c3616ab6d
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp	Wed Jul 12 22:39:28 2017 +0200
+++ b/OrthancServer/OrthancFindRequestHandler.cpp	Thu Jul 13 11:35:57 2017 +0200
@@ -451,19 +451,14 @@
                                                  const DicomTag& tag,
                                                  ModalityManufacturer manufacturer)
   {
+    // wathever the manufacturer, remote the GenericGroupLength tags (http://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_7.2.html)
+    if (tag.GetGroup() == 0x0000)
+    {
+      return false;
+    }
+
     switch (manufacturer)
     {
-      case ModalityManufacturer_EFilm2:
-        // Following Denis Nesterov's mail on 2015-11-30
-        if (tag == DicomTag(0x0008, 0x0000) ||  // "GenericGroupLength"
-            tag == DicomTag(0x0010, 0x0000) ||  // "GenericGroupLength"
-            tag == DicomTag(0x0020, 0x0000))    // "GenericGroupLength"
-        {
-          return false;
-        }
-
-        break;
-
       case ModalityManufacturer_Vitrea:
         // Following Denis Nesterov's mail on 2015-11-30
         if (tag == DicomTag(0x5653, 0x0010))  // "PrivateCreator = Vital Images SW 3.4"