from gdcmPython import *
-toRead = gdcmHeader(FileName)
-toRead.LoadElements()
print "##############################################################"
print "### Display all the possible tags of the current public"
-print "### dictionary, but grouped by using the Fourth field"
+print "### dictionary"
print "##############################################################"
-AllDictFields = toRead.GetPubTagNamesByCategory()
-for fourth in AllDictFields.keys():
- print " ############ Fourth group = ", fourth, " ##############"
- for entry in AllDictFields[fourth]:
- print " ", entry
+PubList = GetPubDictEntryNames()
+for i in range(0, len(PubList)):
+ print " ", PubList[i]
+print "##############################################################"
+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 = GetPubDictEntryNamesByCategory()
+for fourth in PubDict:
+ print " ############ Fourth group = ", fourth, " ##############"
+ for key in PubDict[fourth]:
+ print " ", key