1
14"""
15This example shows how one can use the gdcm.CompositeNetworkFunctions class
16for executing a C-FIND query
17It will print the list of patient name found
18
19Usage:
20
21 python FindAllPatientName.py
22
23"""
24
25import gdcm
26
27
30
31
32de.SetByteStringValue('F*')
33
35ds.Insert(de)
36
38theQuery = cnf.ConstructQuery (gdcm.ePatientRootType,gdcm.ePatient,ds)
39
40
41
42
43ret = gdcm.DataSetArrayType()
44
45
46cnf.CFind('dicom.example.com',11112,theQuery,ret,'GDCM_PYTHON','ANY-SCP')
47
48for i in range(0,ret.size()):
49 print "Patient #",i
50 print ret[i]
Composite Network Functions.
Definition gdcmCompositeNetworkFunctions.h:49
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39