Modify PatientName lua

  • Hi


    trying to modify PatientName with following Statement in "dicom.ini" doesn't work;

    [lua]

    ImportConverter0 = Data.PatientName = string.gsub(Data.PatientName,"ü","ü")


    however running "Data.PatientName = string.gsub(Data.PatientName,"ü","ü");"

    in "ModifyDicom" Window does the job!


    Thanks in advance for comments.


    Regards
    Manfred

  • Hi


    I couldn't solve the issue using string.byte(), so I looked for a different way:


    [lua]

    ImportConverter0 = Data.PatientName = string.gsub(Data.PatientName,"ü","ü")


    didn't work, so I changed the script to


    [lua]

    ImportConverter0 = dofile("PatientName.lua")


    where "PatientName.lua" contains the above string ... and it's working!


    Thanks anyway
    Manfred

Participate now!

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