During this procedure, a sample of the fluid that surrounds and protects a baby during pregnancy (amniotic fluid) is withdrawn from the uterus. Typically done after week 15 of pregnancy, amniocentesis can identify certain genetic conditions, as well as neural tube defects — serious abnormalities of the brain or spinal cord.