I experiment to use DicomRemapper (the Dicombrowser comman-line tool)
to change dicom file attribute value.
The remapping attributes are: Patient Name(0008,0080), Patient ID
(0010,0020), Study ID (0020,0010), Study description (0008,1030),
Additional Patients History (0010,21B0).
It turns out that Patient Name and Patient ID couldn't be changed.
Does DicomRemapper designed like that way? Or something I should be
noticed? I used DicomBrowser v. 1.5-SNAPSHOT (r. 582, 2009-08-19) .
Thanks a lot for any suggextion.
Haiyan
Dan
Thanks,
Kevin
> --
> You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
> To post to this group, send email to xnat_di...@googlegroups.com.
> To unsubscribe from this group, send email to xnat_discussi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.
In my case I didn't write anon script to change on Dicom file. I
wrote .xml file, use Dicomsummarize to generate spreadsheet, make
change on .csv file, then use Dicomremap to change the value of
attributes which I listed before. In my experiment Patient Name
(0010,0010) and Patient ID(0010,0020) didn't change, the other two
attributes' value has been change without problem.
Thanks,
Haiyan
Here is the script:
remapTest.xml
-----------
<?xml version="1.0" encoding="UTF-8"?>
<!-- New document created with EditiX at Wed Dec 23 14:05:12 EST 2009
-->
<Columns>
<Global>(0008,0080)</Global>
<Patient remap="New Patient Name">(0010,0010)</Patient>
<Patient remap="Patient ID">(0010,0020)</Patient>
<!--Study ID-->
<Study remap="Study ID">(0020,0010)</Study>
<!--Series Number-->
<Series>(0020,0011)</Series>
<!--Study descrition-->
<Series remap="study description">(0008,1030)</Series>
<!--Additional Patients history-->
<Series remap="Patients History">(0010,21B0)</Series>
</Columns>
----------
The command I used:
--------
dicomsummarize -c remapTest.xml -v remapTest.csv 0186193_1
dicomremap -c remapTest.xml -o Output-noComma \ -v remapTest-
noComma.csv 0186193_1
---------
Everything goes well except the values of Patient Name and Patient ID
remain same.
Thanks for the help.
Haiyan
- Kevin