movescu - store a study to local storage

55 views
Skip to first unread message

Bahman Kasmai

unread,
May 18, 2022, 8:53:22 AMMay 18
to
It appears that the following script is working as shown below with output:

movescu -v -S -k 0008,0052=STUDY -aet MY_PC -aec OUR_PACS 10.145.95.154 104 -k 0020,000D=1.2.840.113845.11.1000000001951524609.20220512122506.3581149 -k 0010,0020=1234567
I: Requesting Association
I: Association Accepted (Max Send PDV: 64988)
I: Sending Move Request (MsgID 1)
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
I: (0010,0020) LO [0427192] # 8, 1 PatientID
I: (0020,000d) UI [1.2.840.113845.11.1000000001951524609.20220512122506.3581149] # 60, 1 StudyInstanceUID
I:
I: Received Move Response 1 (Pending)
I: Received Move Response 2 (Pending)
I: Received Final Move Response (Success)
I: Releasing Association

However when I add "-od h:\dcmtk-storage" to store the study to a local storage h:\dcmtk-storage i get the following error:

movescu: DICOM retrieve (C-MOVE) SCU
error: --output-directory only allowed with --port

What am I doing wrong? Any help on this will be appreciated.

Bahman Kasmai

unread,
May 18, 2022, 1:19:06 PMMay 18
to
This was resolved when i launched storescp in another cmd window and the the images started arriving in the folder where I launched storescp. Not sure how i could structure the thousands of imported images into folders with names reflecting the study using perhaps the patient id or something different. Any advice on this will be appreciated.

guiot...@gmail.com

unread,
May 19, 2022, 3:46:12 AMMay 19
to
Le mercredi 18 mai 2022 à 19:19:06 UTC+2, bka...@gmail.com a écrit :
> This was resolved when i launched storescp in another cmd window and the the images started arriving in the folder where I launched storescp. Not sure how i could structure the thousands of imported images into folders with names reflecting the study using perhaps the patient id or something different. Any advice on this will be appreciated.

Hi
from the doc of dcmtk storescp : https://support.dcmtk.org/docs/storescp.html

sorting into subdirectories (not with --bit-preserving):

-ss --sort-conc-studies [p]refix: string
sort studies using prefix p and a timestamp

-su --sort-on-study-uid [p]refix: string
sort studies using prefix p and the Study Instance UID

-sp --sort-on-patientname
sort studies using the Patient's Name and a timestamp

filename generation:

-uf --default-filenames
generate filename from instance UID (default)

+uf --unique-filenames
generate unique filenames

-tn --timenames
generate filename from creation time

-fe --filename-extension [e]xtension: string
append e to all filenames

cheers
Reply all
Reply to author
Forward
0 new messages