criteria for the resident doctor exam