Query on remote modality via API and arbitrary DICOM tag

Hi,

I would like to query a remote modality (Agfa product) like this:

curl --request POST http://xx.xx.xx.xx:8042/modalities/mypacs/query --data ‘{“Level”:“Patient”,“Query”: {“RETIRED_OtherPatientIDs”:“XXXXXXXXX”}}’

Result:

{
“ID” : “42286f25-c3e4-4e80-8568-d8735173xxxx”,
“Path” : “/queries/42286f25-c3e4-4e80-8568-d8735173xxxx”
}

an empty array is return:

curl -u pacs:pacs --request GET http://xx.xx.xx.xx:8042/queries/42286f25-c3e4-4e80-8568-d8735173xxxx/answers

Result:
[]

Is this not implemented, either on Orthanc’s or Agfa’s side?

Note that I can retrieve patients with the “RETIRED_OtherPatientIDs” tag on Orthanc, via the tools/find method.

Thanks!

Philippe

I really don’t think Orthanc filters anything from the outgoing C-Find request in that case. And, I could perfectly understand Agfa does not allow queries against this non-standard tag.

To make sure that the limitation is on Agfa side, you can run the C-Find query directly with findscu so you’ll have Orthanc out of the loop.