Using getscu and movescu dcm4che3

1,611 views
Skip to first unread message

pma...@hggm.es

unread,
Jan 13, 2014, 1:57:11 PM1/13/14
to dcm...@googlegroups.com
Hi everyone;

I am really amateur with DICOM. I am trying to use getscu and movescu and I cannot do queries for PatientRoot retrieve level. The doc says:
-L <PATIENT|STUDY|SERIES|IMAGE|FRAME>    specifies retrieve level. Use
                                          STUDY for PatientRoot,
                                          StudyRoot, PatientStudyOnly, and
                                          IMAGE for CompositeInstanceRoot
                                          by default


But when I try to look for PatientID I get the error: Missing Attribute (0020,000D) what is StudyUID.
Do I always have to specify the StudyID?!

I already tried using -L PATIENT but obviously did not work.

When I specify the StudyID I can get the DICOM object with 'getscu' but I cannot with 'movescu' with 'dcmqrsp' and 'storescp'  running, WHY?

Thanks in advance.

Jye

unread,
May 19, 2015, 7:29:03 PM5/19/15
to dcm...@googlegroups.com
Hi Pedro,

Did you ever find a solution?  Previously I have used the dcmqr command as below and it works fine.  I just started using dcm4che3 and the below command with movescu gives the same error.

dcmqr DCM4...@10.10.10.10:11112 -cmove DCM4CHEE2 -qStudyDate=20150101-20150201

./movescu -c DCM4...@10.10.10.10:11112 --dest DCM4CHEE2 -m StudyDate=20150101-20150201

09:27:00,072 INFO  - MOVESCU->DCM4CHEE(1) >> 1:C-MOVE-RSP[pcid=1, status=a900H, errorComment=Missing Unique Key Attribute (0020,000D) in STUDY Level Retrieve
  cuid=1.2.840.10008.5.1.4.1.2.2.2 - Study Root Query/Retrieve Information Model - MOVE
  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian
09:27:00,072 DEBUG - Command:
(0000,0002) UI [1.2.840.10008.5.1.4.1.2.2.2] AffectedSOPClassUID
(0000,0100) US [32801] CommandField
(0000,0120) US [1] MessageIDBeingRespondedTo
(0000,0800) US [257] CommandDataSetType
(0000,0900) US [43264] Status
(0000,0902) LO [Missing Unique Key Attribute (0020,000D) in STUDY Level Retrie
09:27:00,073 INFO  - MOVESCU->DCM4CHEE(1) << A-RELEASE-RQ
09:27:00,073 DEBUG - MOVESCU->DCM4CHEE(1): enter state: Sta7 - Awaiting A-RELEASE-RP PDU
09:27:00,074 INFO  - MOVESCU->DCM4CHEE(1) >> A-RELEASE-RP
09:27:00,074 INFO  - MOVESCU->DCM4CHEE(1): close Socket[addr=/10.10.10.10,port=11112,localport=58244]
09:27:00,074 DEBUG - MOVESCU->DCM4CHEE(1): enter state: Sta1 - Idle

Jye

unread,
May 19, 2015, 9:20:01 PM5/19/15
to dcm...@googlegroups.com
Here is my horrible work around.

I exported all study_iuid from the study table in the pacsdb database and saved them in a .sh file. Then added movescu -c DCM4...@10.10.10.10:11112 --dest DCM4CHEE2 -m StudyInstanceUID= to the front of each line.  Its not elegant but only took a few minutes to put together and less time than it would have taken to figure out what was wrong with the original command.

Cheers
Jye
Reply all
Reply to author
Forward
0 new messages