Philippa says
AIt sounds like you may have developed agoraphobia, which is a fear of not being able to escape if you get trapped or where it might be difficult to get help. This might mean leaving the house in general, but also could be a very specific phobia. If you are made to do your stressful situation, for example when you left the house to go to the doctor, it can bring on symptoms of a panic attack and the condition is classed as a panic disorder. Ring your GP and arrange an appointment so you can discuss with them and get help that could include talking therapies and medication.