Pregnant and doctor wants me to wean my 9 month old.

Has anyone had this happen. I didn’t get to talk to the dr about it yet but wondering if anyone else’s doctors have asked them to wean.