Retrieving only tags from a query towards remote modalities?

111 views
Skip to first unread message

Ioannis Sfakianakis

unread,
Aug 31, 2021, 6:38:11 AM8/31/21
to Orthanc Users
Hi all,

I am performing a query towards a custom dicom server e.g.:

curl -X POST http://localhost:8042/modalities/<custom_dicom_server>/query -d '{"Level":"Series","Query":{"Modality":"*","ProtocolName":"*","SeriesDescription":"*","SeriesInstanceUID":"*","StudyInstanceUID":"<study_id>"}}'

The answer of that is the number of series associated to the studyID.  I am trying to get only the tags of the dicom files belonging to those series. Can you give me some pointers how to do that?

If that is not possible: Could I retrieve only the first dicom file of the series?

Thank you,

Yannis

Alain Mazy

unread,
Aug 31, 2021, 6:46:30 AM8/31/21
to Ioannis Sfakianakis, Orthanc Users
Hi

Actually the /query route does not retrieve the file (the /retrieve route does).  

You should check the /answers/../content route.  This might be what you're looking for: https://book.orthanc-server.com/users/rest.html#reviewing-query-answers

HTH

Alain.


--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/6cd781bc-a01a-4d42-a916-1e5105ee1d2an%40googlegroups.com.

Ioannis Sfakianakis

unread,
Aug 31, 2021, 6:51:53 AM8/31/21
to Orthanc Users
Hi alain,

Thank you for your quick response, the /answers/../content route, gives me some metadata about the series but not the tags of the dicom files belonging to the series. Is there something else that I can try?

Yannis

Alain Mazy

unread,
Aug 31, 2021, 7:07:43 AM8/31/21
to Ioannis Sfakianakis, Orthanc Users
You can list all the tags you want in the response in the query itself.  However, the other modality might not be able to report any tag in a C-Find response.

If you want all the tags, your only solution is to retrieve at least the first frame of a series.
Once you have the SeriesInstanceUID, you can perform a query at instance level to retrieve all the SOPInstanceUIDs of the given series.  Then, once you have the SOPInstanceUID, you can C-Move a single instance to yourself and you'll get all DICOM tags.

HTH

Alain

Reply all
Reply to author
Forward
0 new messages