comparison OrthancServer/Sources/OrthancFindRequestHandler.cpp @ 5639:b6a6179a2a69

TimezoneOffsetFromUTC is now ignored for C-Find matching
author Alain Mazy <am@orthanc.team>
date Fri, 24 May 2024 15:11:28 +0200
parents 48b8dae6dc77
children f7adfb22e20e
comparison
equal deleted inserted replaced
5638:4535194cbb8a 5639:b6a6179a2a69
437 for (size_t i = 0; i < query.GetSize(); i++) 437 for (size_t i = 0; i < query.GetSize(); i++)
438 { 438 {
439 const DicomElement& element = query.GetElement(i); 439 const DicomElement& element = query.GetElement(i);
440 const DicomTag tag = element.GetTag(); 440 const DicomTag tag = element.GetTag();
441 441
442 // remove tags that are not used for matching
442 if (element.GetValue().IsNull() || 443 if (element.GetValue().IsNull() ||
443 tag == DICOM_TAG_QUERY_RETRIEVE_LEVEL || 444 tag == DICOM_TAG_QUERY_RETRIEVE_LEVEL ||
444 tag == DICOM_TAG_SPECIFIC_CHARACTER_SET) 445 tag == DICOM_TAG_SPECIFIC_CHARACTER_SET ||
446 tag == DICOM_TAG_TIMEZONE_OFFSET_FROM_UTC) // time zone is not directly used for matching. Once we support "Timezone query adjustment", we may use it to adjust date-time filters but for now, just ignore it
445 { 447 {
446 continue; 448 continue;
447 } 449 }
448 450
449 std::string value = element.GetValue().GetContent(); 451 std::string value = element.GetValue().GetContent();