How can we use dcmodify to change a tag value when there are 2 tags at the same absolute path?
Example:
<< dcmodify -v -m "(300a,03a2).(300a,03a8).(300a,0360).(300a,0362)=20" filename.dcm >> gives a path error.
Using -ma instead of -m changes both tag values - not what we want - (but maybe this uses a different search algorithm)?
There are item tags between the sequence tags... do these need to be included in the path?
We're still using DCMTK v3.5.3
Thanks,
David
Dcmodify + absolute path to tag
Moderator: Moderator Team
Ermm... I see now that the [bracketed_number] in the example section for dcmodify (http://support.dcmtk.org/docs/dcmodify.html) refers to the array offset of the item groups. Painful as it was to count all this stuff out, we got the value of the second tag changed.
Short answer: read the manual.
Thanks,
David
Short answer: read the manual.
Thanks,
David
-
- OFFIS DICOM Team
- Posts: 1437
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Very interesting discussion
If you can think of a nice (i.e., reasonably easy to read) way of displaying the path of each attribute in a tool like dcmdump, post a proposal (or even better: implement a solution and post the code). In principle you are right: It would indeed be helpful to have a tool that shows each path. However, this is probably only an issue for the few people that deal with deeply nested structures, which almost only happen inside DICOM Structured Reporting documents.
If you can think of a nice (i.e., reasonably easy to read) way of displaying the path of each attribute in a tool like dcmdump, post a proposal (or even better: implement a solution and post the code). In principle you are right: It would indeed be helpful to have a tool that shows each path. However, this is probably only an issue for the few people that deal with deeply nested structures, which almost only happen inside DICOM Structured Reporting documents.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest