]> Creatis software - gdcm.git/blob - gdcmPython/demo/printGroupedPublicDict.py
To avoid warnings
[gdcm.git] / gdcmPython / demo / printGroupedPublicDict.py
1 from gdcmPython import *
2
3 print "##############################################################"
4 print "### Display all the possible tags of the current public"
5 print "### dictionary"
6 print "##############################################################"
7 PubList = GetPubDictEntryNames()
8 for i in range(0, len(PubList)):
9    print "   ", PubList[i]
10
11 print "##############################################################"
12 print "### Display all the possible tags of the current public"
13 print "### dictionary, but grouped by using the Fourth field"
14 print "##############################################################"
15 print " WARNING : the 'fourth' fiels IS NOT part of DICOM"
16 print " DO NOT use it"
17 PubDict = GetPubDictEntryNamesByCategory()
18 for fourth in PubDict:
19    print "   ############ Fourth group = ", fourth, " ##############"
20    for key in PubDict[fourth]:
21       print "   ", key