validation and refactoring patient view