When I get upset I throw up, I can not eat in public ...

I am 21 years old and as a child I suffered a food poisoning, I got sick for a week feeling sick every day but could not vomit. When I was 18, I began to feel dizzy again, unable to vomit, I went to the doctor and he suspected gastritis, I had an endoscopy and the doctor said that I had a mild gastritis, I took omeprazole for about 6 months I improved reasonably, I did another endoscopy and the doctor said it was cured, but the sickness came back now when I get nervous I vomit, I have difficulties eating in public for fear of getting sick, I'm afraid of vomiting in public, if I feel like vomiting at home I'm calm and I vomit without problems (in case some food has done me wrong) but in public, in someone's house, in events I am afraid to eat and to vomit, is that this evil is physical or psychological, I have read enough about emetophobia and other eating disorders but I do not know if I fit into this picture, remembering that I have no problems with weight.
Expert answer:

Certainly it is a problem of the emotional sphere, it is an anxiety picture with some peculiarities of the panic syndrome (the specific fear is only a detail, having more importance in the psychotherapy). The truth is that your anxiety ends up generating the vomit and when you have vomit you are afraid of vomiting in public and when you are in public and it is time to eat you become anxious and consequently vomit, then your fear ends up being justified. You need to break this cycle.