In the first three months of pregnancy, embryo secretes hormones that govern the development of the sex organs. If this development is abnormal, the child’s sex organs may have some anomalies at birth.
Smaller genital defects can almost always be corrected by surgical intervention. However, in rare cases (less than one in 1,000 newborns), the error is more pronounced, sometimes so much that doctors are concerned about the true sex of a child.
In such cases, the scan of the cells (taken from the baby’s mouth) is made shortly after birth to find out the true genetic gender of the child. After that, a surgical procedure is performed to correct the appearance of the sexual organs. In most cases such a child, when he or she grows up, will lead a normal sex life.