added a update patient for api of patients