DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Wed, 2018-05-23, 21:45

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu, 2018-02-08, 15:05 
Offline

Joined: Tue, 2017-05-23, 07:57
Posts: 6
Hello,

I'm trying to do a "dcmdump" for DICOM tag 0018,9506.0008,002a with the command: "dcmdump.exe +P 0018,9506.0008,002a E:\TEST\BTO01.dcm > dicomtag.txt". When I do this, I get all the leaf elements under the 0018,9506 tag and NOT just the 0008,002a tag. I would like only the 0008,002a tag. Can someone assist with the syntax on this?

Also, based upon the info I get in the above "dcmdump", I'm trying to do a "dcmodify" on "9506.0008,002a"
and I'm trying to figure out the syntax for doing this. Right now I'm trying the following: "dcmodify.exe -m "0018,9506.0008,002a=20180207121212" E:\TEST\BTO01.dcm". I'm getting the following error: "Cannot put value into non-leaf elements!". Can someone help me with this syntax to modify the leaf element?

Thanks in advance,

Marcus


Top
 Profile  
 
PostPosted: Fri, 2018-02-09, 15:16 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1938
Location: Oldenburg, Germany
Quote:
I'm trying to do a "dcmdump" for DICOM tag 0018,9506.0008,002a with the command: "dcmdump.exe +P 0018,9506.0008,002a E:\TEST\BTO01.dcm > dicomtag.txt". When I do this, I get all the leaf elements under the 0018,9506 tag and NOT just the 0008,002a tag. I would like only the 0008,002a tag. Can someone assist with the syntax on this?

As you can read in the documentation, dcmdump's +P option supports a very simple syntax only. Basically, you can either specify a single numeric tag or the official keyword, e.g. "+P 0010,0010" or "+P PatientName".

Quote:
Also, based upon the info I get in the above "dcmdump", I'm trying to do a "dcmodify" on "9506.0008,002a"
and I'm trying to figure out the syntax for doing this. Right now I'm trying the following: "dcmodify.exe -m "0018,9506.0008,002a=20180207121212" E:\TEST\BTO01.dcm". I'm getting the following error: "Cannot put value into non-leaf elements!". Can someone help me with this syntax to modify the leaf element?

The so-called "path syntax" of dcmodify in also described in detail in the corresponding documentation. You should try the following:
Code:
dcmodify -m "(0018,9506)[0].(0008,002a)=20180207121212" E:\TEST\BTO01.dcm


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group