Dynamically alter CallingAE title to match RemoteAE with lua scripts

129 views
Skip to first unread message

ozp...@gmail.com

unread,
May 25, 2015, 7:23:18 PM5/25/15
to orthan...@googlegroups.com
hi there,

i'd like to change the orthanc sending AE title dynamically with lua scripts - is this possible.

if i have say two modalities sending to orthanc routing to different places, i'd like orthanc to appear to the final destination as having not been there.


ie. i wan't an lue script to pickup the RemoteAE title (from the sending modality), and replace the ORTHANC calling AE title with that RemoteAE title when forwarding to the destination.  Is that possible.

Here's a diagram if that helps.  (if it doesn't justify properly, i've attached a screenshot!)



WHAT’S HAPPENING NOW

Sending modality -------------------------------------> ORTHANC ------------------------------------> FinalDestination
                           RemoteAE = SNDMODAL  CallingAE = ORTHANC
                            CalledAE = ORTHANC            CalledAE= DESTMODAL


DESIRED OUTCOME

Sending modality -------------------------------------> ORTHANC --------------------------------------> FinalDestination
                          RemoteAE = SNDMODAL  CallingAE = SNDMODAL*
                            CalledAE = ORTHANC           CalledAE= DESTMODAL

*change this with LUA script to match original RemoteAE



thanks!

Capture.JPG

Sébastien Jodogne

unread,
May 26, 2015, 3:22:02 AM5/26/15
to orthan...@googlegroups.com, ozp...@gmail.com
Hello,

Couldn't you simply set the AET of Orthanc to "SNDMODAL"? This can be set in the configuration file (option "DicomAet"):

Indeed, Orthanc accepts by default all the incoming C-Store connections, issued from any host, so it will receive all the files sent from your "sending modality".

From my point of view, no need for Lua scripting here.

HTH,
Sébastien-

ozp...@gmail.com

unread,
May 26, 2015, 9:20:17 PM5/26/15
to orthan...@googlegroups.com, ozp...@gmail.com
hi,

no, that wasn't the question.  i would like the DicomAet for orthanc to appear as the original modality AET.

currently images sent from SNDMODALa and SNDMODALb through orthanc, all appear at the final destination as having come from the same AET (ORTHANC (or whatever i set DicomAet to be in the config file)).

i want the final destination to see the images as having come from the original AE titles.  ie. overriding the config file value for DicomAet on the fly.

Robert van Ommen

unread,
May 27, 2015, 2:09:20 AM5/27/15
to orthan...@googlegroups.com
Being able to change the calling AE from LUA would be a great addition to Orthanc.

Regards,
Robert

Sébastien Jodogne

unread,
Jun 3, 2015, 8:37:36 AM6/3/15
to orthan...@googlegroups.com, robertv...@gmail.com
OK, got it.

Just added a task on the roadmap:

Sébastien-

Sébastien Jodogne

unread,
Jun 29, 2015, 7:29:34 AM6/29/15
to orthan...@googlegroups.com, ozp...@gmail.com
Hello,

This feature is now implemented in the mainline, and will be part of the 0.9.1 release:

It is accessible both from Lua scripts and from the REST API. You can find some sample calls as a part of the official integration tests:

Sébastien-


On Tuesday, May 26, 2015 at 1:23:18 AM UTC+2, ozp...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages