Dynamics of depression and diabetes door