Well an update the above was only a temporary 'fix' worked for 4 patients then crashed, damn after I got past the second and third patient using the script writer thought I was home free as previously would crash on second patient. Should have known better