refactor patient new