I am creating a pipeline that requires me to download a series from my Orthanc dicom server. I hope to download the series using the Restful API.
I understand it should be something like:
curl
http://localhost:8042/series/SERIES-IDENTIFIER/media > series.zip
This works when I input a series identifier. However, in the automated pipeline, i will not know the series-identifier (I understand that this is an orthanc identifier?).
My orthanc server receives a pushed MRI series. Once that is pushed successfully from the MR server, my program will use the resful api to download the data to the workstation and perform some operations on it. I was hoping I would be able to use the patient ID or some other known attribute. Is there a way to download data without knowing the orthanc URI? Or a way to use restful API to query to get the relevant URI?