The Scottish Labour leader said he would do ‘whatever it takes’ to reduce waiting times for patients in the NHS.