What is amniocentesis? How is it misused?

Amniocentesis is a pre-natal diagnostic test based on the chromosomal pattern of the cells in the amniotic fluid that surrounds the developing foetus in the womb.It is misused to detect the sex of pre-bom child that leads to female foeticide in the case of girl-child.