Amniocentesis is a medical test to check the liquid that surrounds the fetus. It helps the doctor make sure the fetus is healthy.