我正在尝试来自pynetdicom的查询/检索示例 (qrscu.py),但在我们搜索时它与患者姓名配合得很好。但是我需要根据studyDate和studyTime来搜索study。
注意:这里有一些DICOM 的 SOP可用。所以我尝试使用StudyRootFindSOPClass
我尝试使用:
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
但它给出了错误
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
请帮助我使用研究日期和时间获取研究。