Hi Sébastien, thanks for your response.
I'm trying to query a non-Orthanc remote PACS using the Orthanc REST API to determine if RT objects exist on the remote server before retrieving them. The request you posted above would only search the Orthanc server itself, right? I would need to have retrieved the files to use that request.
To test this out, I query/retrieved a small set of patients from the PACS to my Orthanc server, one of which happened to have CT, RTSTRUCT, and RTPLAN objects on the remote PACS. Since I know that this patient has those files, I tried querying the remote server using the following requests:
# curl -X POST
http://localhost:8042/modalities/PACS/query -d '{"Level":"Series","Expand":true,"Query":{"Modality":"CT","PatientID":"12345678"}}'
# curl -X POST
http://localhost:8042/modalities/PACS/query -d '{"Level":"Series","Expand":true,"Query":{"Modality":"RTSTRUCT","PatientID":"12345678"}}'
# curl -X POST
http://localhost:8042/modalities/PACS/query -d '{"Level":"Series","Expand":true,"Query":{"Modality":"RTPLAN","PatientID":"12345678"}}'
I then GET the answers at /queries/{id}/answers for all of the returned query hash ids, which are all empty. This isn't working as expected given that I know that those files exist on the PACS. I also omitted "Expand":true from the queries, still doesn't work. The deprecated /modalities/{id}/find doesn't work either.
In contrast, when I search the Orthanc server for that patient using the request you suggested I get the expected results:
# curl -X POST
http://localhost:8042/tools/find -d '{"Level":"Series","Expand":true,"Query":{"Modality":"CT","PatientID":"12345678"}}'
# curl -X POST
http://localhost:8042/tools/find -d '{"Level":"Series","Expand":true,"Query":{"Modality":"RTSTRUCT","PatientID":"12345678"}}'
# curl -X POST
http://localhost:8042/tools/find -d '{"Level":"Series","Expand":true,"Query":{"Modality":"RTPLAN","PatientID":"12345678"}}'
Is there any way to duplicate the ability to search at the series level in this manner when querying a remote server?
Thanks again!