Doctors and nurses with depressive symptoms were up to 40% more likely to take sick leave in the past year, worsening staff shortages across hospitals.