gets patient's profile by id