find_patient refactor