Gender disorder before birth

Patient: My wife is pregnant above 36 weeks.The Gyn Doc told her that you baby gender is in between male and female. I want to know is it possible to know about gender disorder before baby birth and if so what is treatment for gender disorder after birth. plz explain

Doctor: