script('forward to AE_Title') does not forward

  • Hello All,

    I have an import converter (v1.4.19c):


    ImportConverter0 = ifnotequal "%u", "SERVER0"; C:\dicomserver\lua\SCfilter.lua


    SCfilter.lua =


    script('forward to REVIEW_3; forward to NETA; forward to PREM01; forward to PREM00; forward to NMR1');


    if (Data.SeriesDescription == "Images+Maps") or
    (Data.SeriesDescription == "Images") or
    (Data.SeriesDescription == "SaveScreens") or
    (Data.SeriesDescription == "MIProcessing") or
    (Data.SeriesDescription == "4DM-NMViewer") then
    script('forward to PACS')
    else
    print("Did not match to send.")
    end


    The first 'script' call works.


    The second 'script' call does not successfully forward even though logging shows "ImportConverter19.0: forwarded object to PACS"


    Should that have worked?


    Thanks,

    Scott

  • Hi,


    Normally you put 'forward to' on different lines, by putting them in one lua script they share the same association (19.x), which breaks. You can fix this by saying:


    script('forward to REVIEW_3 channel 0; forward to NETA channel 1; forward to PREM01 channel 2; forward to PREM00 channel 3; forward to NMR1 channel 4');

    script('forward to PACS channel 5')


    Default each 'script' call will use channel 19.0, 19.1, etc.
    Therefore the second breaks as it reused channel 19.0!


    Marcel

  • Thank you.

    Do you feel lua is a better, more efficient method than using server commands as the following?


    ImportConverter0 = ifnotequal "%u", "VNA_QR"; call C:\ConquestNC\Foward2All.cq


    Forward2All.cq =


    forward to Syn0a30wv;

    forward to 4DMREVIEW_3;

    forward to SYMBIANETA;

    forward to 4DM_PREM00;

    forward to 4DM_PREM01;

    forward to TURBONMR1;


    ifequal "%V0008,103e", "4DM-Images+Maps"; forward to RADPACS;

    ifequal "%V0008,103e", "4DM-Images"; forward to RADPACS;

    ifequal "%V0008,103e", "4DMSPECT SaveScreens"; forward to RADPACS;

    ifequal "%V0008,103e", "4DM-MIProcessing"; forward to RADPACS;

    ifequal "%V0008,103e", "4DM-NMViewer"; forward to RADPACS;

    ifequal "%V0008,103e", "4DM-3D+Images"; forward to RADPACS;


    There are other export converters in my dicom.ini :


    ExportConverters = 10

    ExportConverter0 = ifmatch "%V0008,1030","*Prone*"; forward to TURBONCPR1

    ExportConverter1 = ifmatch "%V0008,103e","AC*"; forward to TURBONCPR1


    Am I better off putting these in the Forward2All.cq file?


    Thanks,

    Scott

  • Hi Scott,


    this has the same issue as lua. The cq file entries will share the same channel. I prefer lua because of its straightforward syntax and have stopped active development of conquest style scripting.


    Marcel

Participate now!

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