The NHS rule, which was introduced in 2010, says hospitals must eliminate mixed-sex wards except for in certain circumstances.