dcm4che-tool-movescu - problem from version 5.23.1 and higher with Accession Number attribute

66 views
Skip to first unread message

Konrad Zawada

unread,
Oct 4, 2022, 1:41:24 PM10/4/22
to dcm4che
Hi everyone !
as of version 5.23.1 there is a problem with the movescu tool. The problem concerns the accession number attribute and the character length - if I use accession number longer than 8 characters, movescu returns an error. For example:

command-line request:
movescu.bat -b AET -c  CALLAET@192.168.1.100:104 -m 00100020=1234 -m 00080050=123456789 --dest DESTAET

response from movescu:
movescu: 123456789
java.lang.IllegalArgumentException: 123456789
        at org.dcm4che3.tool.common.CLIUtils.toTag(CLIUtils.java:670)
        at org.dcm4che3.tool.common.CLIUtils.toTags(CLIUtils.java:660)
        at org.dcm4che3.tool.common.CLIUtils.addAttributes(CLIUtils.java:788)
        at org.dcm4che3.tool.movescu.MoveSCU.configureKeys(MoveSCU.java:284)
        at org.dcm4che3.tool.movescu.MoveSCU.main(MoveSCU.java:237)

I think it's a bug.

Gunter Zeilinger

unread,
Oct 5, 2022, 3:25:28 AM10/5/22
to dcm4che
Not reproducible on Linux:

$ movescu -b AET -c  CALLAET@localhost:11112 -m 00100020=1234 -m 00080050=123456789 --dest DESTAET
09:18:35.627 INFO  - Initiate connection from 0.0.0.0/0.0.0.0:0 to localhost:11112
09:18:35.633 INFO  - Established connection Socket[addr=localhost/127.0.0.1,port=11112,localport=55489]
09:18:35.638 DEBUG - /127.0.0.1:55489->localhost/127.0.0.1:11112(1): enter state: Sta4 - Awaiting transport connection opening to complete
09:18:35.639 INFO  - AET->CALLAET(1) << A-ASSOCIATE-RQ

so I guess it's related Windows command shell - you may try to quote arguments containing '='.

Anyway, the invoked C-MOVE RQ will be not be DICOM compliant, because of the missing Study Instance UID - and you also should not include an attribute like Accession Number, which is not an unique key!
Reply all
Reply to author
Forward
0 new messages