A procedure in which a needle is used to remove a small sample of the amniotic fluid that surrounds the foetus inside its membranous sac. It is used to detect abnormalities of the foetus, such as spina bifida.