Conquest to Change Modality Tag

  • Hi There,


    Am trying to create a simple ImportConvertor that will change the modality header only if it meets a particular criteria. Then forward to a destination AE and destroy the data from Conquest DB


    I created a .lua file and saved it under ..\conquestdicomserver1419\ . The content of the file is simple


    Code
    str = Data.Modalitynewstr = strif string.find(str, "OT") then newstr = "XA"endData.Modality = newstrprint(str)print(newstr)


    In the dicom.ini file I added this


    Code
    [lua]
    ImportConvertor0 = dofile("ChangeStudyMod.lua"); forward to <the_destination_AETITLE> channel *; destroy;


    I keep getting a syntax error. If I remove these lines


    Quote

    forward to <the_destination_AETITLE> channel *; destroy;


    The lua file does what it's suppose to and updates the modality tag when needed to do so. I can't get the extra part added.


    What's the proper way to add this in [lua] in dicom.ini so it also forward each image file then destroy the data from Conquest DB for each image processed ?


    Will keep trying in meantime to see if I can get it going properly.


    Thank You

Participate now!

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