Almost 20,000 patients were waiting for routine treatment at Queen Victoria Hospital in September, new figures show.