1. 修改配置文件
dcmqrscp.cfg
https://raw.githubusercontent.com/DCMTK/dcmtk/master/dcmqrdb/etc/dcmqrscp.cfg
# NOTE: in the current implementation you cannot substitute an IP address
# for a hostname.
#
acme1 = (ACME1, acmehost1, 5678)
需要提供hostname,暂时不支持IP地址
2. 创建文件夹
COMMON D:\DcmScuScp\COMMON R (200, 1024mb) ANY
ACME_STORE D:\DcmScuScp\DcmScp RW (9, 1024mb) acmeCTcompany
UNITED_STORE D:\DcmScuScp\UNITED_STORE RW (9, 1024mb) unitedMRcompany
3. 启动dcmqrscp
启动:
dcmqrscp.exe -d -c dcmqrscp.cfg
-d 为debug模式,可以看到输出信息
-c 为配置文件参数
4. 归档到PACS
使用storescu工具
@ECHO OFF
setLOCAL ENABLEDELAYEDEXPANSION
title 批量归档到PACS服务器
SET CallingAE=ACME1
SET CalledAE=ACME_STORE
SET PACSHost=10.9.19.226
SET PACSPort=104
:for1
SET /P ACVPath=请输入需要归档的文件夹,可以拖动到CMD窗口中
.\storescu.exe -xs +sd +r -aet %CallingAE% -aec %CalledAE% %PACSHost% %PACSPort% %ACVPath% -v
choice /c qn /n /t 20 /d n /m "请输入q键退出命令,不输入按键则继续循环:"
if %errorlevel%==1 exit
goto for1
PAUSE
5. 查询与下载
查询:
findscu.exe 10.9.19.226 104 -aec ACME_STORE -aet ACME1 -k 0008,0052=SERIES -S +sr -k StudyDate -k StudyInstanceUID -k SeriesInstanceUID
下载:
movescu.exe -v -S -aec ACME_STORE -aet ACME1 -aem ACME1 --port 11110 -od d:/temp 10.9.19.226 104 -k QueryRetrieveLevel=SERIES -k SeriesInstanceUID=1.2.156.112605.189250940724475.181024015300.3.5280.131458 -k StudyInstanceUID=1.2.124.113532.80.22160.14711.20181024.85902.441398563
注意:
不支持Number of Series Related Instances(0020,1209)的查询,这个比较遗憾。
Number of Series Related Instances | (0020,1209) |
https://www.dabsoft.ch/dicom/4/C.6.1.1/