First of all I immensely thank the people behind this wonderful software.
My question is about Rest API.
When I am doing patient level queries , the returned JSON objects is not containing ID .
When i am doing “/patients?expand”, the returned JSON objects contain ID.
This becomes great obstacle for me to do some filtering and as well as to reduce the number of patients displayed in the index page.
I would be grateful if any one helps in this regard.
Regards…
Hello,
When I am doing patient level queries , the returned JSON objects is
not containing ID .
Do you mean DICOM C-FIND queries via /queries, Orthanc queries via
/tools/find, or simply patient listing via /patients?
When i am doing "/patients?expand", the returned JSON objects
contain ID.
Note that /patients does also without the expand parameter; unless you
mean something else than the patient ID?
This becomes great obstacle for me to do some filtering and as well
as to reduce the number of patients displayed in the index page.
If you want to do server-side filtering of Orthanc resources, I believe
you're looking for /tools/find.
Thanks much Thibault Nelis for your response.
Do you mean DICOM C-FIND queries via /queries, Orthanc queries via
/tools/find, or simply patient listing via /patients?
Yes I meant DICOM C-FIND queries via /queries. But that do not fetch Patient ID assigned by Orthanc.
Note that /patients does also without the expand parameter; unless you
mean something else than the patient ID?
The expand parameter is used by Orthanc in its explorer to fetch all patients with their IDs. It is becoming slow as patient count increases.
If you want to do server-side filtering of Orthanc resources, I believe
you’re looking for /tools/find.
If you do not bother to spare some time , can you provide some working examples to use /tools/find through HTTP.
Thank you Thibault Nelis.
I got tools/find working by posting a JSON object with following format
`
{“Level”:“Patients”,“Query”:{“PatientID”:“9*”,“PatientName”:“*”}}
`
Thank you.
Yes that is normal, C-FIND requests are sent to arbitrary DICOM
modalities which are not necessarily Orthanc servers and hence do not
have Orthanc IDs assigned to the target resources.
Looking at your other message I believe you found what you were looking
for with /tools/find to issue similar requests to Orthanc servers.
Don't hesitate if I seem to have misunderstood.