Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomNetworking/Internals/FindScp.cpp @ 5535:d3e8c599797f
ignore GenericGroupLength in C-Find
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 19 Feb 2024 18:26:38 +0100 |
parents | 48b8dae6dc77 |
children | f7adfb22e20e |
comparison
equal
deleted
inserted
replaced
5534:d7cca6fd3584 | 5535:d3e8c599797f |
---|---|
172 // particular Meta Information Header elements such as Transfer | 172 // particular Meta Information Header elements such as Transfer |
173 // Syntax UID (0002,0010)." | 173 // Syntax UID (0002,0010)." |
174 // http://dicom.nema.org/medical/dicom/current/output/chtml/part04/sect_C.4.html#sect_C.4.1.1.3 | 174 // http://dicom.nema.org/medical/dicom/current/output/chtml/part04/sect_C.4.html#sect_C.4.1.1.3 |
175 // https://groups.google.com/d/msg/orthanc-users/D3kpPuX8yV0/_zgHOzkMEQAJ | 175 // https://groups.google.com/d/msg/orthanc-users/D3kpPuX8yV0/_zgHOzkMEQAJ |
176 | 176 |
177 // GroupLength are removed as well since they make no sense in the filtering as well as in the response. | |
178 // Note that it seems that only some GE devices include them. | |
179 | |
177 DicomArray a(source); | 180 DicomArray a(source); |
178 | 181 |
179 for (size_t i = 0; i < a.GetSize(); i++) | 182 for (size_t i = 0; i < a.GetSize(); i++) |
180 { | 183 { |
181 if (a.GetElement(i).GetTag().GetGroup() >= 0x0008) | 184 if (a.GetElement(i).GetTag().GetGroup() >= 0x0008 |
185 && a.GetElement(i).GetTag().GetElement() != 0x0000) | |
182 { | 186 { |
183 target.SetValue(a.GetElement(i).GetTag(), a.GetElement(i).GetValue()); | 187 target.SetValue(a.GetElement(i).GetTag(), a.GetElement(i).GetValue()); |
184 } | 188 } |
185 } | 189 } |
186 } | 190 } |