Margaret Haywood , 58 , who had been a nurse for 20 years , was struck off by the Nursing and Midwifery Council ( NMC ) after acting as an undercover reporter for a BBC Panorama programme broadcast in July 2005 .