For example, you injure your back and living in pain, but you’ve develop depression or anxiety because of that injury. In this case, workers’ compensation would be obliged to give you care for that condition — for the psychologically-induced trauma.
In most cases, however, if it’s just the stress or anxiety of a job absent a physical injury, it’s not covered. There is one notable exception and that is for first responders — policemen, firemen, ambulance workers, medical technicians — that have to enter unspeakable scenes. They are eligible to get PTSD-related benefits paid to them.