"""
This example shows how one can use the gdcm.CompositeNetworkFunctions class
for executing a C-FIND query
It will print the list of patient name found
Usage:
python FindAllPatientName.py
"""
import gdcm
ds.Insert(de)
theQuery = cnf.ConstructQuery (gdcm.ePatientRootType,gdcm.ePatient,ds)
ret = gdcm.DataSetArrayType()
cnf.CFind('dicom.example.com',11112,theQuery,ret,'GDCM_PYTHON','ANY-SCP')
for i in range(0,ret.size()):
print "Patient #",i
print ret[i]