Conditional query/retrieve DICOM from a list of patients

Dear Orthanc Community,

I have a list of patients that each ID and a particular date (say operation date) are available.I would like to automatically retrieve their pre-operative image studies from the DICOM server in our institution using Orthanc.
Is there a plug-in or script for this kind of conditional query and then retrieval available?

Thanks so much for your help.

best,
ty

Hello,

Such a workflow could be automated using an external script (written e.g. in Python) that make calls to the REST API of Orthanc:
http://book.orthanc-server.com/users/rest.html

Sébastien-

Dear Tsung,

Yes I made such an app using Orthanc Service in my “Orthanc Tools” Java program

Look at page 17 of the following documentation : https://github.com/salimkanoun/Orthanc_Tools/blob/master/Orthanc_Tools_Documentation.pdf

The app is here : https://github.com/salimkanoun/Orthanc_Tools/releases

Salim