updated the patients script