如何查看orthanc-python.log
move成功,会有如下内容: move: 1.2.840.78.75.7.5.307686.0996885.0717.1548586006 from HOSPITAL-PACS takes: 29.670351599808782
一个检查的第一张图像刚进来时, 会有如下内容: new study: 1.2.392.200036.9116.2.5.1.3268.2060439916.1546394176.0680776.0717.899320
一个检查接收完,并等待了稳定时间之后: stable study: 1.2.392.200036.9116.2.5.1.3268.2060439916.1546394176.0680776.0717.899320
开始触发我们的业务逻辑:
序列筛选
检查部位不是胸部被过滤
10939060 NA200618FLC029 1.2.840.113619.186.12418169119.202006181********.464 1.3.12.2.1107.5.3.49.22605.2.202006181********6 filter because BodyPartExamined HAND
图像属性里找不到胸部的关键字被过滤
10892557 NA200617GECT060 1.2.840.113619.2.340.3.2831218256.616.1591958208.608 1.2.840.113619.2.340.3.2831218256.616.1591958208.613.4 filter because BodyPartExamined: ProtocolName:1.1 HEAD StudyDescription:HEAD SeriesDescription:SKULL 1.25MM ImageComments:
层厚太厚被过滤
10932135 ZH2006181CT085 1.2.840.113619.186.12418169119.202006181********.272 1.3.12.2.1107.5.1.4.75902.3000002006161********00341568 filter because SliceThickness 8
模态不支持被过滤
10526392 NA200616RF4028 1.2.840.113619.186.12418169119.202006161********.161 1.3.12.2.1107.5.3.33.4445.2.202006181********3 filter because Modality RF
CT序列的张数太少(用于过滤定位片)
10769621 NA200611EVCT058 1.2.840.113619.186.12418169119.20200611105931123.685 1.2.840.113619.2.428.3.2831218000.55.1592034845.350 filter because instance nums 1 < 10
整个检查都没有合适的序列, 整个检查被过滤
10938755 ME200618CT1010 1.2.840.113619.186.12418169119.202006180********.144 study is filtered out
检查开始筛选
study 1.2.392.200036.9116.2.5.1.3268.2060439916.1546394176.0680776.0717.899320 thickest series is 1.2.392.200036.9116.2.5.1.3268.2060439916.1546394383.0680776.0717.485292, instances num is 1147
这个检查从哪里来的 where study from 1.2.392.200036.9116.2.5.1.3268.2060439916.1546394176.0680776.0717.899320 GEPACS 192.168.1.150
图像完整性检查 completeness check success: series 1.2.840.113619.2.428.3.2831218000.623.1592390818.147.5 in pacs is 296, we have 296 too
再次传递到后方的原因(找到更薄的序列) reinform 1.2.392.200036.9116.2.5.1.3268.2060439916.1546394176.0680776.0717.899320 last is 588;now 20200618T063027 1.2.392.200036.9116.2.5.1.3268.2060439916.1546394383.0680776.0717.485292 is 1147
不传递到后方的原因(没有找到更薄的序列) notinform 1.2.840.113619.2.416.1018343.0717.1202946444748180********9352699685862 has no more instances this time
传递给pacs_module inform pacs_module {'studyUID': '1.2.840.113820.104.6.893261.0717.120181********2370', 'seriesUID': '1.2.392.200036.9116.2.5.1.3268.2060439916.1544143543.893261.0717.321161', 'numberReceived': 1041, 'statecode': 800, 'message': '', 'filepath': '/store_image/4c18cd69-ecee1be6-10a1dcd4-73308186-275b913f', 'callingAPTitle': 'BATCH1', 'callingPresentationAddress': '192.168.1.224', 'seriesnum': 1, 'totalRecievedtime': '', 'priorities': 4, 'isPush': 1, 'lastUpdateTime': '20200618T080626'}
如何查看dcm_end.log
find 2020-06-18 study list
orthanc find query is {'StudyDate': '20200618'}
从pacs那查到839条检查(不是都会被采纳)
find 2020-06-18 study list from pacs is 839
新发现了9条
study not in local db is 9
经过模态过滤之后,还剩9条
study from pacs after modality filter left 9
实际新增9条
actually add new number: 9
检查被判断为稳定
patientID 10939048 accessionNumber NA200618EVCT077 studyuid 1.2.840.113619.186.12418169119.202006181********.630 is stable: instances num: 321
新增10条稳定的检查(判断稳定之后就准备去拉取) num: stable study 10 finded
进入拉取, 准备要拉取10条
move data in ['2020-06-18']
send move study. amount is 10
continue to pull study, amount=10
拉取成功1条(如果失败, 这里为空列表)
move success: [['1.2.840.113619.2.340.3.2831218256.616.1591958247.853.4', 'HOSPITAL-PACS']]
pacs_module收到orthanc传递过来的检查 after receive notify {'studyUID': '1.2.840.113619.2.340.3.2831218256.616.1591958247.848', 'seriesUID': '1.2.840.113619.2.340.3.2831218256.616.1591958247.853.4', 'numberReceived': 294, 'statecode': 800, 'message': '', 'filepath': '/store_image/0b60c370-27100af8-f3d95718-3e094a6c-e257062e', 'callingAPTitle': 'GEPACS', 'callingPresentationAddress': '192.168.1.150', 'seriesnum': 1, 'totalRecievedtime': '', 'priorities': 0, 'isPush': 0, 'lastUpdateTime': '20200618T082032'}
成功发送到rabbitmq
send 1.2.840.113619.2.340.3.2831218256.616.1591958247.848 to rabbitmq success
负责发送给后端的线程收到了rabbitmq推送的检查消息
send_to_backend 140********5536 get message {'studyUID': '1.2.840.113619.186.12418169119.202006181********.571'}
传递给后端的文件夹里有219张图像
upload_image_path file_path /store_image/74f85fdc-8de0b009-f592a9a0-e7b17eed-c73169cb has file number is 219
算法计算完成
upload_image_path file_path ----/store_image/0b60c370-27100af8-f3d95718-3e094a6c-e257062e----success
这个检查是重新计算
1.2.840.113619.2.340.3.2831218256.616.1591958248.428 exists, last isloading is 2, we receive a new one, calc again
插件手动查询拉取
orthanc find query is {'AccessionNumber': '10136791', 'StudyDate': ''}
orthanc find query is {'PatientID': '10136791', 'StudyDate': ''} pull data manually. study_uid=1.2.840.113619.186.808617810995.20120428093140339.266, study_date=2012-04-28
continue to pull study, amount=1
orthanc move failed!