Thanks, Marcel, that changes the patient name exactly as expected.
I have other steps to run after name is updated (create folders and run a .bat file with parameters) for pdf creation, like this:
"ImportConverter1 = mkdir d:\ExamesJPG\%V0008,0020\%V0010,0010\ ; save jpg to d:\PDF\%V0008,0020\%V0010,0010\%V0008,0018.jpg ; system d:\iview.bat "d:\PDF\%V0008,0020\%V0010,0010\%V0008,0018.jpg" "/append=d:\ExamesJPG\%V0008,0020\%V0010,0010\%V0010,0010.pdf" "/cmdexit"
The ImportConverter does not work anymore after the [lua] command.. So I guess I should create a file.lua with all those steps to make it work?