doctor validation and testing