If doctors are medically unfit to perform their normal workplace duties, they are supposed to return to their duties only after they are medically fit. However, does this apply to mental disorders such as anxiety also?

Can a doctor with anxiety disorder continue practice?