How to modify the value of a tag in a sequence

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
xfjsuperking
Posts: 70
Joined: Thu, 2007-08-30, 02:01

How to modify the value of a tag in a sequence

#1 Post by xfjsuperking »

Hello everyone:
i want to modify a tag value in a sequence using dcmodify ,after reading the documents of dcmtk,i still can not write the correct commandline to modify the tag value.please help me.Thanks in advance

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

#2 Post by Marco Eichelberg »

I don't think that the modification of attributes embedded in a sequence is possible with dcmodify.

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

#3 Post by Michael Onken »

Hi,

it is possible, see the online documentationfor examples, e. g. use

Code: Select all

dcmodify -m "(0008,1111)[0].PatientsName=NewName" yourfile.dcm
You can mix up Dictionary Names and tags - for the tag (0008,1111) you could also use the Dictionary Name "ReferencedPerformedProcedureStepSequence" instead.

Regards,
Michael[/quote]

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

#4 Post by Marco Eichelberg »

In that case I apologize for giving wrong advice :oops:

Post Reply

Who is online

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