Modifying an incoming DICOM object for only one destination

  • Hello Marcel!

    I have a question. Our Conquest installation routes incoming RTPLAN objects to various destinations (using ExportConverters). One of these destinations requires the addition of some additional private tags, to the RTPLAN object, that I do not want to send to all the other destinations. I need to do this addition of the private tags using a LUA script in an ImportConverter, as it needs to happen before saving the object to disk and processing it further with ExportConverters.

    Is there any way that, in this LUA script in the ImportConverter, I can create a copy of the original incoming RTPLAN, add the private tags to this (in memory) copy, send this (in memory) copy to the desired destination, and "destroy" this memory copy, leaving the original RTPLAN untouched? I have tried this using an ExportConverter LUA script, which of course does not work, and I believe most Conquest/LUA functions within a ImportConverter LUA-script operate upon the object that is in the context of the script.

    Looking forward to hearing your view on this.

    Kind regards,

    Maarten Buiter

  • Hi Marcel, many thanks for your quick answer. I will explore this option, I had overlooked it in the manual, and show the results here again.

    Greets, Maarten

  • Hi Marcel,

    I have tried your suggestion (found it in the manual as well) and of course it works like a charm. We have even configured it in an "Inception"-like construction:

    From a .lua-script triggered by an ExportConverter:

    Code
          script("forward to DCMHOST script lua:dofile('ProcessObject.lua')");

    Many thanks!

    Maarten

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!