Refactoring patient information