-# Rename the dcm extension files of a given drectory according
+# Rename the dcm extension files of a given directory according
# to series and image number information extracted in each respective header.
from gdcmPython import *
toRead = gdcmHeader(FileName)
ValDict = toRead.GetPubEntry()
-ExploreElements = ["Patient Name", "Patient ID",
- "Study Date", "Study Time", "Study ID",
- "Study Instance UID",
- "Series Number",
- "Modality"]
+ExploreElements = ["Patient's Name", "Patient ID",
+ "Study Date", "Study Time", "Study ID",
+ "Study Instance UID",
+ "Series Number",
+ "Modality"]
for elem in ExploreElements:
print "[%s] = " % elem,
print "### Display all the possible tags of the current public"
print "### dictionary, but grouped by using the Fourth field"
print "##############################################################"
+print " WARNING : the 'fourth' fiels IS NOT part of DICOM"
+print " DO NOT use it"
PubDict = GetPubDictTagNamesByCategory()
for fourth in PubDict:
print " ############ Fourth group = ", fourth, " ##############"