refactor patient file options