The application of rationality to medical records