Hi @SébastienJodogne / Orthanc community!
I’m currently running an orthanc server soothly on an ubuntu 16.04LTS. This server is properly paired with oother dicom modalities via a local network and all expected functionallities are working fine either from the web explorer and from the restAPI standpoint. Thanks for this brilliant work & doc!
My concern is about a very simple query usecase that I can’t really manage to do.
Namely I would like to query modalities at the series level. When I do this on the orthanc server itslefs it works like a charm with, for example the following payload:
- data = {“Level”: “Series”, “Query”: {“SeriesDescription”: “some querry”}} using a POST on tool/find as stated by the doc(https://book.orthanc-server.com/users/rest-cheatsheet.html
Now when starting with a modality the doc states to use a POST method on /modalities/{id}/query and this works when using a payload at a Study level for example:
- data = {“Level”: “Study”, “Query”: {“AccessionNumber”: “”, “PatientBirthDate”: “”, “PatientID”: “”, “PatientName”: “”, “PatientSex”: “”, “StudyDate”: “”, “StudyDescription”: “”}}
Unfortunately this doesnt suits my usecase since I’m looking at Series-Level fields to querry… And I got a 500 error if I try this with a “series level” payload as the first one…
The only workaround I found so far would be to:
-
querry all the studies on the modalities
-
Get the ids and then query all the series of every study
-
Given the series ids querry all the tags of these series
-
Given the dicom tags filter the result of it afterwards
This solution sounds pretty inefficient and wont scale as the number of modalities grows…
TLDR What option is given in orthanc to querry modalities at series level using the restAPI (the usecase being e.g. to retrive series with a given series description).
Thanks a lot for reading this and maybe for the lightening me !
Have a great day