I would be grateful if someone please could advise if I am right in assuming that the use of study uid is mandatory in movescu and therefore I need first use findscu to acquire the study uid and then movescu to move a study to a local storage:
Step 1:
findscu -v -S -k 0008,0052=STUDY -aet MYPC_AET -aec PACS_AET 10.145.01.01 104 -k 0008,0020=20220512 -k 0010,0020=1234567 -k 0020,000D
which returns
# Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0020) DA [20220512] # 8, 1 StudyDate
I: (0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
I: (0010,0020) LO [1234567] # 8, 1 PatientID
I: (0020,000d) UI (no value available) # 0, 0 StudyInstanceUID
I:
I: ---------------------------
I: Find Response: 1 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Implicit
I: (0008,0020) DA [20220512] # 8, 1 StudyDate
I: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
I: (0008,0054) AE [PACS_AET] # 10, 1 RetrieveAETitle
I: (0010,0020) LO [1234567 ] # 8, 1 PatientID
I: (0020,000d) UI [1.2.840.113845.11.1000000001951524609.20220512122506.3581149] # 60, 1 StudyInstanceUID
I:
I: Received Final Find Response (Success)
I: Releasing Association
Parse the output above and obtain the study uid for step 2
Step 2
movescu -v -S -k 0008,0052=STUDY -aet MYPC_AET -aec PACS_AET 10.145.01.01 104 -k 0020,000D=1.2.840.113845.11.1000000001951524609.20220512122506.3581149 -k 0010,0020=1234567 -od h:\dcmtk-storage --port 104
Is there a better way of moving a study to a lovcal drive? The findscu seems to take longer than I expected. Has response line I: Find Response: 1 (Pending) anything to do with it?
Two steps for moving a study to local storage?
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: Two steps for moving a study to local storage?
Hi,
I don't see a better way to download a single study since you always must know the Study Instance UID to retrieve it. No idea why findscu is slow. You could use -d on findscu to see which part of the communication takes so long.
Best regards,
Michael
I don't see a better way to download a single study since you always must know the Study Instance UID to retrieve it. No idea why findscu is slow. You could use -d on findscu to see which part of the communication takes so long.
Best regards,
Michael
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Two steps for moving a study to local storage?
Depending on the platform (e.g. OS and command shell) you are working on, the logging to the console might takes some time, so it could be useful to disable the log output (--quiet or --hide-responses) and to extract the C-FIND response datasets to file (--extract, --extract-xml or --extract-xml-single).
Who is online
Users browsing this forum: No registered users and 1 guest