搭建dcmtk的demo服务器

一、环境:
1、下载安装
https://dicom.offis.de/download/dcmtk/dcmtk364/bin/dcmtk-3.6.4-win32-dynamic.zip
下载后解压,进入解压后的文件夹内,打开cmd

二、建一个dicom_store目录
mkdir dicom_store三、启动demo服务器
1、配置文件dcmqrscp.cfg:

NetworkTCPPort  = 10400
MaxPDUSize      = 16384
MaxAssociations = 16

HostTable BEGIN
acme1           = (ASTAR_CT1, acmehost1, 5678)
acme2           = (ASTAR_MR1,acmehost2, 5678)
acmeCTcompany   = acme1, acme2

united1         = (UNITED1, unitedhost1, 104)
united2         = (UNITED2, unitedhost2, 104)
unitedMRcompany = united1, united2
HostTable END

AETable BEGIN
ASTAR_PACS ./dicom_store RW (200, 1024mb) ANY
AETable END

2、cmd

dcmqrscp -v --config dcmqrscp.cfg

四、准备demo数据
1、找一个dcm文件,如t.dcm

dcmodify -nb t.dcm ^
-i PatientName="ZHOU FEI" ^
-i PatientID="1078692" ^
-i PatientBirthDate="19740912" ^
-i PatientSex="M" ^
-i AccessionNumber="ME260403CT9026" ^
-i StudyInstanceUID="1.2.840.113619.186.808615416324.20260403095817853.897" ^
-i Modality="CT" ^
-i StudyDate="20260408"

2、上传dcm

storescu -v -aet ASTAR_CT1 -aec ASTAR_PACS localhost 10400 t.dcm

3、修改下1中的信息,重复1、2,增加对应的demo数据

五、查询测试
1、cmd测试:

findscu -v -xe  -aet ASTAR_CT1 -aec ASTAR_PACS localhost 10400 -S ^
-k QueryRetrieveLevel=STUDY ^
-k Modality=CT ^
-k StudyDate=20260410 ^
-k PatientID= ^
-k PatientName= ^
-k StudyInstanceUID= ^
-k AccessionNumber= ^
-k StudyTime= ^
-k PatientSex= ^
-k PatientBirthDate= ^
-k PatientAge= ^
-k PatientWeight= ^
-k PatientSize=

 

2、写入文件
 

findscu -v -xe  -aet ASTAR_CT1 -aec ASTAR_PACS localhost 10400 -S ^
-k QueryRetrieveLevel=STUDY ^
-k Modality=CT ^
-k StudyDate=20260410 ^
-k PatientID= ^
-k PatientName= ^
-k StudyInstanceUID= ^
-k AccessionNumber= ^
-k StudyTime= ^
-k PatientSex= ^
-k PatientBirthDate= ^
-k PatientAge= ^
-k PatientWeight= ^
-k PatientSize= > findscu.txt 2>&1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值