Script to count tag characters ?

  • Is there any script (command, etc) that indicates the number of characters within a certain tag ?
    In fact, I'm asking for some ImportConverter that eliminates last 3 characters from Patient Name, wich are "^^^"


    e.g. something like
    ImportConverter0 = ifequal "%V0010,0010[,3]" , "^^^" ; set 0010,0010 to ............


    Thanks.

  • Hi,


    The first bit is ok (in 1.4.16rc4b): but for the second bit (.......) there is no command to do a substring to remove just 3 characters. You may consider using lua to do this.


    Marcel

  • Hi,


    it would be something like this in 1.4.16rc4b:


    [lua]
    ImportConverter0 = s = Data.PatientID; if length(s)>3 and ascii[s, length(s)-2]==94 then Data.PatientID = strsub(s, 1, length(s)-3) end;


    Marcel

Participate now!

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