This is something you absolutely need to discuss with your doctor. This has to do with numerous factors including how severe the event was and how much anxiety you are having.  If you are feeling better, you can return to work when you feel comfortable.