Thousands of outpatient clinics ‘at risk of closure’ with proposed legislation