How to get just one DCM image with MOVESCU?!?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
cvieira
Posts: 5
Joined: Thu, 2013-09-12, 15:09

How to get just one DCM image with MOVESCU?!?

#1 Post by cvieira »

Hello!

Recently I was assigned to develop a simple online DICOM project in which I must query our PACS database for a specific image of a study. Then, the main objective is to parse some of its DICOM tags.

The approach I came up with is to use MOVESCU.EXE to retrieve and locally store the required DCM image file by using STORESCP.EXE as the local DICOM server. However, the only way I can get that image is to retrieve the full study, which is causing a considerable delay on the remaining processes, as I need to read dozens or even hundreads of studies each time.

The command I'm using:

Code: Select all

STORESCP.EXE -v -aet LocalAETitle LocalPort -od TestDirectory

Code: Select all

MOVESCU.EXE -S ArchiveAETitle ArchivePort --call LocalAETitle --aetitle ArchiveAETitle --move LocalAETitle -k QueryRetrieveLevel=IMAGES -k AccessionNumber=AN
I've tryed other options but nothing seams to work. SO, how can I just get one DICOM image with STORESCP/MOVESCU?!? What am I missing? Is there another way?

Thanks in advance.
Last edited by cvieira on Thu, 2013-10-03, 18:15, edited 1 time in total.

st80rules
Posts: 190
Joined: Tue, 2007-05-08, 17:45

Re: How to get just one DCM image with MOVESCU?!?

#2 Post by st80rules »

You're querying on AccessionNumber which I believe is the same for all images of a study, that's why you receive all images of the study. You should query on the SOPInstanceUID tag instead, but you'll need to supply StudyInstanceUID and SeriesInstanceUID as well. This will result in a single image being returned.

Normand

cvieira
Posts: 5
Joined: Thu, 2013-09-12, 15:09

Re: How to get just one DCM image with MOVESCU?!?

#3 Post by cvieira »

Normand, first of all thank you for your reply!

Yes, the AccessionNumber is the same for all images of a study.
Could you please help me getting your sugestion into the code line?

st80rules
Posts: 190
Joined: Tue, 2007-05-08, 17:45

Re: How to get just one DCM image with MOVESCU?!?

#4 Post by st80rules »

Something along the lines of:

Code: Select all

movescu [yourOtherArguments] -k 0008,0052=IMAGE -k 0020,000D="your study UID" -k 0020,000E="your series uid" -k 0008,0018="your SOP uid" 

cvieira
Posts: 5
Joined: Thu, 2013-09-12, 15:09

Re: How to get just one DCM image with MOVESCU?!?

#5 Post by cvieira »

I've tryed your suggestion, but with:

Code: Select all

MOVESCU.EXE -S ArchiveAETitle ArchivePort --call LocalAETitle --aetitle ArchiveAETitle --move LocalAETitle -k QueryRetrieveLevel=IMAGES -k 0020,000D=StudyInstanceUID -k 0020,000E=SeriesInstanceUID -k 0008,0018=SOPInstanceUID
I'm still retrieving all images for the given study. Here's the STORESCP output:

Code: Select all

I: Association Received
I: Association Acknowledged (Max Send PDV: 99988)
I: Received Store Request: MsgID 0, (CT)
RECV: ..........................................
I: storing DICOM file: C:\Test\CT.1.2.392.200036.9116.2.6.1.48.1214870151.1370223548.411561
I: Received Store Request: MsgID 0, (CT)
RECV: ..........................................
I: storing DICOM file: C:\Test\CT.1.2.392.200036.9116.2.6.1.48.1214870151.1370223650.991131
.
.
... and so on!

Adicionally, all images are getting retrieved with the modality prefix (CT in this case) and the file extension is being omitted (*.dcm). What might be wrong?

Any help will be appreciated.

J. Riesmeier
DCMTK Developer
Posts: 2505
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: How to get just one DCM image with MOVESCU?!?

#6 Post by J. Riesmeier »

First of all, the name of the Q/R level is IMAGE and not IMAGES.

Then, a C-STORE request does not transfer a DICOM file but a DICOM dataset, i.e. the filename is generated by the storage SCP. In your case there is a multitude of options for the storescp that allow for specifying how the name of the file is generated (incl. filename extension).

Btw, you should definitely read the relevant parts of the DICOM standard before starting your move request.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Baidu [Spider], Bing [Bot] and 1 guest