一、环境:
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:
bash
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
bash
dcmqrscp -v --config dcmqrscp.cfg
四、准备demo数据
1、找一个dcm文件,如t.dcm
bash
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
bash
storescu -v -aet ASTAR_CT1 -aec ASTAR_PACS localhost 10400 t.dcm
3、修改下1中的信息,重复1、2,增加对应的demo数据
五、查询测试
1、cmd测试:
bash
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、写入文件
bash
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