Hi, everyone!
Question: how can I perform a query retrieve that slightly cross the border between consecutive days?
I’ve been looking into query/retrieve as a means of importing image data from any given PACS. Through the Rest API we can perform query/retrieve with no hassle like so:
[valmont@alis-sol 20190115]$ curl -X POST --url http://10.36.143.131:8042/modalities/pacs/query --data ‘{“Level”:“Instance”,“Query”:{“StudyDate”:“20190115-20190115”,“StudyTime”:“0000-0005”}}’
{
“ID” : “dc297964-d437-42f5-9290-cb9a9f3d14f8”,
“Path” : “/queries/dc297964-d437-42f5-9290-cb9a9f3d14f8”
}
[valmont@alis-sol 20190115]$ curl -X GET --url http://10.36.143.131:8042/queries/dc297964-d437-42f5-9290-cb9a9f3d14f8/answers | head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1643 100 1643 0 0 131k 0 --:–:-- --:–:-- --:–:-- 145k
[
“0”,
“1”,
“2”,
“3”,
“4”,
“5”,
“6”,
“7”,
“8”,
[valmont@alis-sol 20190115]$
With the /answers result we go to the retrieving part, which is straightforward and that is great!
But I’d like to perform queries that entail some “10 minutes ago” worth of data. Because of that, when a new day dawns, my query will look like so:
{“Level”:“Instance”,“Query”:{“StudyDate”:“20190114-20190115”,“StudyTime”:“2355-0005”}}
But this query returns nothing, even though the previous one returns almost 200 results. Is it possible to accomplish this? I suppose the page to look, beyond The Orthanc Book, is this: http://dicom.nema.org/Dicom/2013/output/chtml/part04/sect_C.2.html
Section C.2.2.2.5 describes range matching. It talks of queries that span multiple days, it is true. But it works under the assumption that in the query (sample’d) “StudyTime: A-B”, A is less than or equal to B.
I can try and perform two requests (from 2355 untill 0000 and then 0000 until 0005). But I’d rather not do it unless there’s no other way.
I’d be really grateful for any help you can give.
Thanks!