Cordocentesis is primarily used to detect and treat blood conditions like anemia of one’s fetus. It is usually done when a diagnosis cannot be carried out with amniocentesis, CVS, ultrasound, or other methods.