DICOM C-GET的实际操作
使用DCMTK的工具集,通过C-GET操作,实现外网医学影像的的获取。
服务器端:dcmqrscp.exe ,部署在云服务器,提供C-GET SCP service,该服务器IP为:120.99.48.89 ,port:9105, AETitle: QRSCP2018;
客服端:getscu.exe, 进行C-GET SCU的操作,AETitle:QRSCU1。
C-GET SCU 命令行:getscu.exe -d -S -aec QRSCP2018 -aet QRSCU1 -od e:\temp\StoreSCUs\ 120.99.48.89 9105 -k QueryRetrieveLevel=STUDY -k StudyInstanceUID=1.2.840.114062.2.172.16.26.205.2011.12.2.17.18.19.3508500.1
获取的影像数据保存在客户端的e:\temp\StoreSCUs\ 目录下面。
客户端运行结果
C-GET SCU 运行结果如下:获取图像成功。
简单过程如下(该STUDY只有1幅图像):
I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending C-GET Request (MsgID 1)
I: Received C-STORE Request (MsgID 1)
I: Sending C-STORE Response (Success)
I: Received C-GET Response (Pending)
I: Received C-GET Response (Success)
I: Final status report from last C-GET message:
I: Number of Remaining Suboperations : 0
I: Number of Completed Suboperations : 1
I: Number of Failed Suboperations : 0
I: Number of Warning Suboperations : 0
I: Releasing Association
获取1stduy,该study有6个image。结果如下:(有传输失败的情况,只传输了1个系列,另2个series失败)。
I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending C-GET Request (MsgID 1)
I: Received C-GET Response (Pending)
I: Received C-GET Response (Pending)
I: Received C-GET Response (Pending)
I: Received C-GET Response (Pending)
I: Received C-STORE Request (MsgID 5)
I: Sending C-STORE Response (Success)
I: Received C-GET Response (Pending)
I: Received C-STORE Request (MsgID 6)
I: Sending C-STORE Response (Success)
I: Received C-GET Response (Pending)
I: Received C-GET Response (Warning: SubOperationsCompleteOneOrMoreFailures)
W: Suboperations of C-GET completed with one or more failures
I: Final status report from last C-GET message:
I: Number of Remaining Suboperations : 0
I: Number of Completed Suboperations : 2
I: Number of Failed Suboperations : 4
I: Number of Warning Suboperations : 0
I: Releasing Association
E: Association Release Failed: 0006:0316 DUL P-Data PDU arrived
I: Aborting Association