Hi there,
I’m seeing an issue in Orthanc, using the latest version 1.12.3 (this also happened in prior versions) if a query is performed and provides a TimezoneOffsetFromUTC query key, it will cause Orthanc to return no results even without any date / time filters passed.
Is this the intended behavior of Orthanc or is this a bug?
This is coming from a system that is always sending this key so we are currently unable to query Orthanc from it.
Many thanks,
Ben
Hi @benganley
I just tried with these 2 queries:
findscu -S -k "QueryRetrieveLevel=Study" -k "PatientID=*" -k "TimezoneOffsetFromUTC=" localhost 4243
findscu -S -k "QueryRetrieveLevel=Study" -k "PatientID=*" -k "TimezoneOffsetFromUTC=*" localhost 4243
The first one return results while the second one does not.
After checking the DICOM standard, it appears that the Timezone offset shall be used only to adjust Date/time filtering so I have patched Orthanc to not use as a value for matching.
Before the new release is ready, you can use a lua script to patch the incoming query.
function IncomingFindRequestFilter(query, origin)
-- First display the content of the C-Find query
PrintRecursive(query)
PrintRecursive(origin)
local v = query
v['0008,0201'] = nil
return v
end
Best regards,
Alain.
Thanks for the quick fix Alain.
I look forward to the release with this fix.