Adding update patient api method