Saving patient chart function is converted to ORM