Hundreds of elective surgeries and dental appointments have been cancelled after the fault was discovered last month.