Hello,
I am trying to fetch the study details from the dcm4chee using the qrscp.py of pynetdicom.
But the search in the given example is just working on the basis of patient name, but I need to fetch the data
using the study date and time.
So I made some changes to the code like I try to use the
print "DICOM FindSCU ... ",
d = Dataset()
d.StudyDate = args.searchstring
d.QueryRetrieveLevel = "STUDY"
d.StudyID = "*"
study = [x[1] for x in assoc.StudyRootFindSOPClass.SCU(d, 1)][:-1]
print 'done with status "%s"' % st
print "\n\n\n Cont...", study
But I get this error :
Request association
Association response received
DICOM Echo ... done with status "Success "
DICOM FindSCU ...
Traceback (most recent call last):
File "studyqrscu.py", line 104, in <module>
study = [x[1] for x in assoc.StudyRootFindSOPClass.SCU(d, 1)][:-1]
File "/usr/local/lib/python2.7/dist-packages/pynetdicom-0.8.1-py2.7.egg/netdicom/applicationentity.py", line 90, in __getattr__
raise Exception("SOP Class %s not supported as SCU" % attr)
Exception: SOP Class StudyRootFindSOPClass not supported as SCU
Please let me know that what I need to do to find the study using the date and time.
Thanks