Over 17,000 patients died before they could be treated with surgery or diagnostic scans, a new report says.