Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/Internals/FindScp.cpp Mon Feb 19 18:22:44 2024 +0100 +++ b/OrthancFramework/Sources/DicomNetworking/Internals/FindScp.cpp Mon Feb 19 18:26:38 2024 +0100 @@ -174,11 +174,15 @@ // http://dicom.nema.org/medical/dicom/current/output/chtml/part04/sect_C.4.html#sect_C.4.1.1.3 // https://groups.google.com/d/msg/orthanc-users/D3kpPuX8yV0/_zgHOzkMEQAJ + // GroupLength are removed as well since they make no sense in the filtering as well as in the response. + // Note that it seems that only some GE devices include them. + DicomArray a(source); for (size_t i = 0; i < a.GetSize(); i++) { - if (a.GetElement(i).GetTag().GetGroup() >= 0x0008) + if (a.GetElement(i).GetTag().GetGroup() >= 0x0008 + && a.GetElement(i).GetTag().GetElement() != 0x0000) { target.SetValue(a.GetElement(i).GetTag(), a.GetElement(i).GetValue()); }