Hi
Objective: To Store patient images in separate locations on the basis of Institution Name
I tried to use the old script that was provided in the forum to store images on the basis of Modality type. I used the same code with minor modification but i got error.
ImportConverter0 = if Data.Institution Name=='Hospital Name A' then Data.Storage='MAG1' end;
MAG1 is already defined at top. I also tried this
ImportConverter0 = if Data.Institutio=='Hospital Name A' then Data.Storage='MAG1' end;
But i got the error appended below:-
[PACS] *** lua syntax error [string "if Data.Institution Name=='dPJ' then Data.Storage='MAG1' end;"]:1: 'then' expected near 'Name' in 'if Data.Institution Name=='dPJ' then Data.Storage='MAG1' end;'
Please guide me where i am committing the mistake as the error says its a syntax error and i am beginner in LUA.
Second Question is If my hospital name is like Hospital Name A (Spaces in Hospital Name) and i defined MAG like E:\Hospital Name A (in windows) will this work or give me error.
Thirdly, i have 15 hospitals that will connect to this PACS Server and wanted to save images of them in their respected folders whereas conquest only support max 0 to 9 importconvertors how will i manage rest of hospitals.
--Hammad