FAQ #38: How can I use findscu for a query with the query/retrieve service?

Frequently Asked Questions regarding DCMTK

Moderator: FAQ Team

Post Reply
Message
Author
Thomas Wilkens
DCMTK Developer
Posts: 117
Joined: Tue, 2004-11-02, 17:21
Location: Oldenburg, Germany
Contact:

FAQ #38: How can I use findscu for a query with the query/retrieve service?

#1 Post by Thomas Wilkens »

:?: How can I use findscu for a query with the query/retrieve service?

:!: Here is an example: using findscu to query an image from a query/retrieve SCP using the patient root information model:

Code: Select all

findscu -v -P -k 0008,0052="IMAGE" -k 0010,0020="300019" -k 0020,000D="1.2.3.1" -k 0020,000E="1.2.3.2" -k 0008,0018="1.2.3.3" localhost 104
Explanation:
  • -v runs the application in verbose mode
  • -P specifies to use the patient root information model
  • -k 0008,0052="IMAGE" tells the application that you are querying on image level (i.e. for an image)
  • -k 0010,0020="300019" is the patient ID of the patient in question (unique key on patient level)
  • -k 0020,000D="1.2.3.1" is the study instance uid of the study in question (unique key on study level)
  • -k 0020,000E="1.2.3.2" is the series instance uid of the series in question (unique key on series level)
  • -k 0008,0018="1.2.3.3" is the sop instance uid of the image in question (unique key on image level)
  • localhost is the machine the query/retrieve SCP is running on
  • 104 is the port the query/retrieve SCP is listening to.
Note that when you are querying on a certain query level (attribute 0008,0052 set to either PATIENT, STUDY, SERIES or IMAGE), you have to specify all unique keys of levels which are above this level; e.g. on image level, you have to specify a patient id, a study instance uid and a series instance uid to denote the patient/study/series you are referring to, and of course you have to finally provide a sop instance uid to specify the image you are looking for.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest