- StoreSCP
start listening and display echo when received DICOM files
$ storescp +xa +uf -xs -dhl -fe ".dcm" -od . -aet AE_DESTINATION 1044 -xcr "date \"+%F %T\" && echo from=\"#r\" ae-title=\"#a\" filepath=\"#p/#f\"" ### example output ### 2023-06-14 15:45:20 from=10.10.60.87 ae-title=LUNIT_DBT filepath=./SC.X.1.2.276.0.7230010.3.1.4.0.27301.1686725120.197885.dcm 2023-06-14 15:45:21 from=10.10.60.87 ae-title=LUNIT_DBT filepath=./PSg.X.1.2.276.0.7230010.3.1.4.0.27301.1686725121.197886.dcm 2023-06-14 15:45:22 from=10.10.60.87 ae-title=LUNIT_DBT filepath=./SRm.X.1.2.276.0.7230010.3.1.4.0.27301.1686725122.197887.dcm
start listening to port 1044 and display default formatted output log
$ storescp +xa -v 1044 ### example output ### I: Association Received I: Association Acknowledged (Max Send PDV: 16372) I: Received Store Request (MsgID 1, SC) RECV: ................... I: storing DICOM file: ./SC.1.2.410.200083.4633864700949836620980698258739013904895541515850 I: Association Release I: Association Received I: Association Acknowledged (Max Send PDV: 16372) I: Received Store Request (MsgID 1, PSg) RECV: ...........................
- StoreSCU
send a single DICOM file
$ storescu -aet [my ae-title] -aec [destination at-title] [destination-ip-address] [port] [DICOM filename]
- dcmsend
Send all *.dcm files within current directory
$ dcmsend -aec LUNIT_MG [ip] [port] *.dcm
sending all files inside multiple directories
$ dcmsend [ip] [port] --scan-directories [dir1] [dir2] [dir3] [dir4]
- dcmdump
Save all DICOM tags into a file
$ dcmdump [DICOM filename] > myfile.txt
- dcmodify
Change Specific Character Set for encoding/decoding
$ dcmodify [DICOM filename] -m 0008,0005='ISO 2022 IR 149'
Frequently used DCMTK commands
Written: 2023-06-14 12:05:37
Last update: 2024-07-05 14:52:39
These are the frequently used DCMTK package commands.
Search more info