findscu on Orthanic

967 views
Skip to first unread message

Christopher Petty

unread,
Mar 21, 2014, 3:05:52 PM3/21/14
to orthan...@googlegroups.com

Just found Orthanic today ( nice package ) as i needed to setup a virtual scanner for some offline testing.

i built Orthanic on scientific linux, configured, started and pushed some data in from a remote system using storescu

Maybe i missed, or mis-understood this, but how can i query the Orthanic database from a that same remote machine using findscu ?

I can query my scanner with something like the following:
findscu -aet NAME -S -k StudyID="12345" -k SeriesNumber="3" host.ip DCMPORT

Is this possible with my instance of Orthanic
Thanks,
-chris

Sébastien Jodogne

unread,
Mar 22, 2014, 7:14:30 AM3/22/14
to orthan...@googlegroups.com
Dear Christopher,

Thanks for your interest in Orthanc. It is indeed possible to query Orthanc from findscu, but you also have to set the "QueryRetrieveLevel" tag (0008,0052) in your call to findscu. Here is the correct call in your case:

# findscu -aet NAME -S -k "0008,0052=STUDY" -k StudyID="*" -k SeriesNumber="*" localhost 4242

You will find attached the corresponding configuration file for Orthanc. I have only changed the default "DicomModalities" section as follows:

  "DicomModalities" : {
    "test" : [ "NAME", "localhost", 104 ]
  }

"NAME" corresponds to the argument you used for the "-aet" option.

HTH,
Sébastien-
Petty.json

Christopher Petty

unread,
Mar 23, 2014, 8:55:20 AM3/23/14
to orthan...@googlegroups.com
Great, thanks for the reply, this is going to be extremely helpful

Christopher Petty

unread,
Mar 25, 2014, 1:19:42 PM3/25/14
to orthan...@googlegroups.com

To follow up ... is is possible that after performing a find request .. i can perform a move request and pull the data ?

with my findscu calls working in the modified config, i would expect to replace findscu with movescu ( at least this is my experience when querying our mr scanner as long as i have configured my aet ).

# findscu -aet NAME -S -k QueryRetrieveLevel=SERIES -k StudyID="12345" -k SeriesNumber="6" orthanc.host 4006
returns a valid series

# movescu -aet NAME -S -k QueryRetrieveLevel=SERIES -k StudyID="12345" -k SeriesNumber="6" orthanc.host 4006
returns an "Error Failed - Unable to process" log

with this from the server trace:
I0325 13:11:05.834761 27695 CommandDispatcher.cpp:445] Association Acknowledged (Max Send PDV: 16372)
W0325 13:11:05.835603 27699 OrthancMoveRequestHandler.cpp:127] Move-SCU request received for AET "sl6-vm2"
E0325 13:11:05.835655 27699 MoveScp.cpp:99] IMoveRequestHandler Failed: Bad request
I0325 13:11:05.836516 27699 CommandDispatcher.cpp:594] DUL Peer Requested Release
I0325 13:11:05.836530 27699 CommandDispatcher.cpp:601] Association Release


"dicom" : [ "STORESCP","dicom.example.com",4006],
"test"  : [ "sl6-vm2","localhost", 4006 ]

My push commands to "dicom.example" work, when going through the web interface and i've tries many different iterations of:
["MOVESCU","queryhost.example",port]
["sl6-vm2","queryhost.example",port]
["new-aet","queryhost.example",port]
etc

Christopher Petty

unread,
Mar 25, 2014, 1:35:11 PM3/25/14
to orthan...@googlegroups.com

OK, i realized after looking at the OrthancMoveRequestHandler.cpp src that i need to specify by SeriesIntanceUID if i am querying on a series level ... However now i'm just managing to push the data to my own Orthanc server :)  and not actually pull it to my new machine

Christopher Petty

unread,
Mar 25, 2014, 1:50:02 PM3/25/14
to orthan...@googlegroups.com
I eventually got this to work with 2 entries 

# movescu -aem DEST -aet SRC -S -k QueryRetrieveLevel=SERIES -k SeriesInstanceUID="1.2.840.###########" orthanc.host 4006

"test"  : [ "SRC","localhost",4006 ],
"tesla" : [ "DEST","dest.example.edu",4006]

Sébastien Jodogne

unread,
Mar 26, 2014, 3:42:45 AM3/26/14
to orthan...@googlegroups.com
Hello Christopher,

 
I eventually got this to work with 2 entries 

Fine! Let us know if you need further assistance.

Sébastien-
 
Reply all
Reply to author
Forward
0 new messages