Retrieve dicomfiles from PACS to directory. findscu,movescu

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
tepe
Posts: 4
Joined: Mon, 2017-11-27, 18:23
Contact:

Retrieve dicomfiles from PACS to directory. findscu,movescu

#1 Post by tepe » Thu, 2017-11-30, 14:19

This is my first time here.

My problem Situation:

I have two Dicom nodes:

PACS: AETitle: GEPACS
IP: 10.48.5.205
PORT: 4100

calling Workstation: AETitle: C06SW-PACS-036
IP: 10.47.48.140
PORT: 104

The following script:

findscu -S -k 0008,0052=STUDY -k 0008,0050="11213411" -aec GEPACS 10.48.5.205 4100 -aet C06SW-PACS-036
I: ---------------------------
I: Find Response: 1 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0050) SH [11213411] # 8, 1 AccessionNumber
I: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
I: (0008,0054) AE [GEPACS] # 6, 1 RetrieveAETitle
I: (0008,0056) CS [ONLINE] # 6, 1 InstanceAvailability
I: (0010,0020) LO [0080326746] # 10, 1 PatientID
I: (0020,000d) UI [1.2.840.113619.6.95.31.0.3.4.1.1018.13.11213411 ] # 48, 1 StudyInstanceUID
I:

MOVESCU.EXE 10.48.5.205 4100 -aec GEPACS -aem C06SW-PACS-036 -aet C06SW-PACS-036 -k 0008,0052=STUDY -k 0020,000D="1.2.840.113619.6.95.31.0.3.4.1.1018.13.11213411" -k 0010,0020=0080326746

Transfer all Images of the study identified by the accessionnumber: 11213411 from our PACS to the Database of the Workstation.

But we like to have the dicomfiles of the study in a Directory of the Workstation.

Have anyone a tipp, how we can reach this target?

Thanks and best regards,

Hans Tepe (Charité; Radiology Department)

Michael Onken
DCMTK Developer
Posts: 1733
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Retrieve dicomfiles from PACS to directory. findscu,move

#2 Post by Michael Onken » Thu, 2017-11-30, 15:12

Dear Hans,

the parameter -aem tells movescu where to send the requested DICOM files (by defining the so-called Move Destination AE Title). So if you want to retrieve them to your workstation, you must configure your workstation's AE Title there. In your case you tell the PACS to send them to AE Title "C06SW-PACS-036" which more sounds like a PACSes AE Title.

Note that your PACS manages a list of AE Titles with their IP addresses and ports, one for each potential receiver of DICOM files. So if you use movescu ... -aem WORKSTATION ... (as an example), make sure that WORKSTATION is configured as a known AE Title with IP and port on the PACS. Otherwise the PACS will return "Move Destination Unknown" to you.

Once the PACS starts the transfer, it will open a second connection to your workstation (i.e. to the port and IP address configured for WORKSTATION). Therefore you must ensure that a DICOM Stroage SCP listens on that port for incoming DICOM connections. movescu can do the job for you: You can specify via option --port 1234 (for example) that you want to listen on port 1234 for the incoming DICOM storage. Alternatively, you can start DCMTK's storescp via (e.g.) storescp -v 1234. For both tools option -od lets you override the output directory where the files should be stored to (default is the current directory).

Greetings from Oldenburg,
Michael

tepe
Posts: 4
Joined: Mon, 2017-11-27, 18:23
Contact:

Re: Retrieve dicomfiles from PACS to directory. findscu,move

#3 Post by tepe » Thu, 2017-11-30, 15:33

Dear Michael,

you can see at the top of my question, that C06SW-PACS-036 is the AETitle of the Workstation, and this AETitle is known by the PACS.

Greetings from Berlin,

Hans

Michael Onken
DCMTK Developer
Posts: 1733
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Retrieve dicomfiles from PACS to directory. findscu,move

#4 Post by Michael Onken » Thu, 2017-11-30, 16:34

Hans, sorry for scanning your post to quickly. So your problem is simply the output directory? Then -od (as described) will do the trick. Or do I get you wrong?
Otherwise let me know which problem you are running into.

Best,
Michael

[edit]
P.S: If the receiver on port 104 on your workstation is *not* under your control, there is no way to specifiy the storage directory via movescu. movescu simply initiates the "Download" and specifies the destination via the -aem switch. There is no way in movescu (or in the DICOM protocol) in general that allows to tell PACS or final receiver on the second connection where (i.e. into which directory) it should store the images.
[/edit]

tepe
Posts: 4
Joined: Mon, 2017-11-27, 18:23
Contact:

Re: Retrieve dicomfiles from PACS to directory. findscu,move

#5 Post by tepe » Thu, 2017-11-30, 19:48

Dear Michael,

I think I begin to understand.

My Workstation C06SW-PACS-036 is with the installed Software like an 'little' PACS.

So I must create an additional AETitel with the same IP and a different Port-Number.
These Values must then configuered in the Main-PACS GEPACS.

The -aem Parameter must be set to this new AETitle in the movescu command plus the new port numbrr.


Right?

Plattdeutsch bin ich besser!

Greetings Hans

Michael Onken
DCMTK Developer
Posts: 1733
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Retrieve dicomfiles from PACS to directory. findscu,move

#6 Post by Michael Onken » Thu, 2017-11-30, 20:37

Hi Hans,

exactly, that's how it works.

Best,
Michael

P.S: Nächstes mal dann op Platt :)!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest