Header only storescu/storescp

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
mparamas
Posts: 19
Joined: Fri, 2005-09-30, 15:23

Header only storescu/storescp

#1 Post by mparamas »

We are working on automated DICOM QC project based on DICOM header data for research protocol compliance and header values based QC. Since we do not do image level QC, we only need to send DICOM header, and it should speed up our exams containing thousands of images. We need a way to SEND (storescu) and RECEIVE (storescp) DICOM header only using DCMTK. Can this be possible?

Though I could save DICOM header only into a file (via dcmdump file|grep PixelData, and subtracting the bytes from file size, call it X, then doing dd if=file of=file-hdr.dcm bs=1 count=X), this file cannot be sent/received.

Thanks.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1437
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Header only storescu/storescp

#2 Post by Marco Eichelberg »

You cannot use storescu to send a partial image. You could, however, use dcmodify to create sample datasets without pixel data:

Code: Select all

dcmodify -e PixelData <filename.dcm>

mparamas
Posts: 19
Joined: Fri, 2005-09-30, 15:23

Re: Header only storescu/storescp

#3 Post by mparamas »

This worked. Thanks. I was able to send the .dcm file using storescu to storescp (and even to mirc CTP), and they worked fine.

Flip side to this is that there is an extra step of dcmodify for every image in the exam. Wish storescu had an option to strip pixel data on the fly before sending.

Nevertheless, there is a solution, at the least.

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

Re: Header only storescu/storescp

#4 Post by J. Riesmeier »

Wish storescu had an option to strip pixel data on the fly before sending
Maybe, you want to add the following dcmdump option also to storescu:

Code: Select all

    +st  --stop-after-elem      [t]ag: "gggg,eeee" or dictionary name
                                stop parsing after element specified by t
This should be rather easy.

mparamas
Posts: 19
Joined: Fri, 2005-09-30, 15:23

Re: Header only storescu/storescp

#5 Post by mparamas »

$ storescu -v +st "7fe0,0010" -aec CTP localhost 4245 MR.1591982761.1.1.dcm
$dcmtk: storescu v3.6.5 2019-10-28 $

storescu: DICOM storage (C-STORE) SCU
error: Unknown option +st

So, there is no such option +st for storescu. Would it be possible for you to offer that option in source?

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

Re: Header only storescu/storescp

#6 Post by J. Riesmeier »

What I meant with my previous posting: you could add this functionality to storescu (i.e. on your own). Just look into the source code of dcmdump and modify the source code of storescu accordingly.

mparamas
Posts: 19
Joined: Fri, 2005-09-30, 15:23

Re: Header only storescu/storescp

#7 Post by mparamas »

Thought so as well. I will dig. Thanks.

Post Reply

Who is online

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