command for tag-to-tag value replacement

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
honus
Posts: 4
Joined: Mon, 2006-03-13, 20:49

command for tag-to-tag value replacement

#1 Post by honus »

Hello all.

I was able to successfully use the dcmodify to replace a tag element with a new 'static' value; however, I am actually looking for a command and/or arguments to replace a tag element's value with an existing tag element's value.

example: move value from (0008,0080) to (0008,0090).

Thanks in advance.

h

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

#2 Post by Michael Onken »

Hi,

there is no such option in dcmodify, that supports this kind of modification. You could write a script, that uses dcmdump to extract the value and then dcmodify to set the extracted value to the desired tag.

Regards,
Michael

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 0 guests