The doctor helped his patient get pregnant, as her boyfriend couldn't