Yes, this is an old article. It is not a new law. I did not want to change the title of the article.
Sex-screening, using ultrasound machines, has become popular in China because of a tradition of preferring sons to daughters. Some parents, allowed only one child, choose abortion when they find out that the wife is carrying a girl. This has led to a rising imbalance in the ratio of men to women in China.
The law decrees that sex identification of a fetus by technical means is strictly forbidden, except when needed on medical grounds. Doctors who perform such tests, which are not difficult, could lose their license under the law.
But I thought this law had been revoked since. Seems like it hasn't (other than a few amendments).
I was recently talking to a Chinese friend, and she could only figure out the gender of her kid due in 4 months after traveling abroad. In China, a medical professional would get their license revoked if they get caught disclosing the gender for non-medical reasons.