You can self certify the first 7 days of an absence for stress and anxiety. After this, you should see your doctor who will assess your mental health and sign you off for a further period if necessary.