A former doctor who misdiagnosed an ectopic pregnancy and told a woman to "go home and try for another" has been struck off.