Sex selection in IVF
As an assisted reproductive technology, IVF has been widely used in many hospitals in Shanghai. The birth of IVF has brought hope and happiness to many infertile couples, and has also triggered discussion about gender selection. However, at present in Shanghai, the law does not clearly stipulate the sex of IVF. The following will discuss whether IVF can choose gender from the perspective of law, morality, technology and medical practice based on the current situation in Shanghai.

Legal analysis
According to China's Population and Family Planning Law, although the law stipulates the family planning policy, there is no clear stipulation on the gender of IVF. According to the Domestic Survey Report on Biotechnology (2019) released by the Science and Technology Policy and Management Research Center of the Chinese Academy of Sciences, there was a discussion on the choice of sex for test tube babies, but it was not clear whether sex could be chosen. Therefore, in Shanghai, whether IVF is allowed to choose gender is still in the blank stage of the law.
In addition, relevant functional departments in Shanghai have not issued relevant guidance or policy documents to clearly stipulate this. Therefore, it is currently impossible to select the sex of IVF in Shanghai by legal means.
Moral doubts and disputes
The sex selection of IVF has caused a series of moral questions and disputes. On the one hand, supporters believe that social and economic factors of the family may make people tend to choose IVF babies of a specific sex. Therefore, allowing the choice of gender may help to reduce the preference for boys in the family and promote equal gender ratio. On the other hand, opponents believe that choosing the sex of IVF may lead to racial and gender inequality, further exacerbating social problems.
In addition, the sex selection of IVF also triggered a discussion on human reproductive morality. Although the IVF technology has become increasingly mature, there is still controversy about whether sex selection in reproduction involves intervention in human life.
Therefore, no matter whether it is allowed by law or not, the choice of sex by IVF on the moral level still needs further discussion and reflection.
Technical limitations and medical practice
There are also some technical restrictions on IVF's sex selection. According to the current medical technology, sex identification can be carried out in the early stage after fertilization through pre implantation genetic diagnosis technology. However, the success rate of this method is limited, and at the same time, it may cause some damage to embryos, so it has not been widely used in most Shanghai hospitals.
However, with the continuous progress of science and technology, it is expected that there may be more accurate and safe technologies for IVF sex selection in the future. However, before adopting these new technologies, the medical community and society need to conduct in-depth research and evaluation on them, and formulate relevant policies and guidelines.
Summary
To sum up, there are still some disputes and restrictions on the sex selection of IVF in Shanghai. The law does not clearly stipulate the sex of IVF, and there are certain restrictions on technology and medical practice. On the moral level, it has triggered many questions and discussions.
Therefore, the gender selection of IVF needs to be deeply studied and discussed at the legal, moral, technical and medical practice levels. Only by comprehensively considering various factors and formulating reasonable policies and guidance can we better solve the problem of IVF sex selection and provide better assisted reproductive services for infertile couples.