Mortality risk higher among people with diabetes when discharged from hospital