pynetdicom에서 쿼리/검색 예제 (qrscu.py)를 시도하고 있지만 검색 할 때 환자 이름과 잘 작동합니다. 그러나 나는 studyDate와 studyTime의 기초 위에서 그 연구를 검색해야합니다.pynetdicom qyuery/연구 날짜 및 시간을 사용하여 검색
참고 : 여기에 일부 SOP's for DICOM을 사용할 수 있습니다. 그래서 내가 사용하려고 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
제발 도와주세요 오류를 제공합니다 .
예, 공식 문서에서는 이것에 대해 명확하게 언급하지 않았습니다 .... 그래서 이것을 달성하기 위해 노력하고 있습니다 : 계층 구조를 검색해보십시오 (환자 -> 연구 -> 시리즈 - > 이미지). 그게 나에게 정말 도움이된다. –