Illustration of amniocentesis, in which a sample of amniotic fluid is removed and tested to detect fetal age and sex, chromosome abnormalities (a chart of normal female chromosomes is shown, top right), neural tube defects, inherited diseases, and fetal Rh factor sensitization. Risks include infection, membrane rupture, fetal injury, and premature labor.