Hi thanks for your question.
You have been diagnosed as acute on chronic gastritis
on endoscopy,but you have not mentioned about your H Pylori status that is a test done during endoscopy to know whether your stomach is infected with H Pylori bacteria or not..H Pylori is most common cause for gastritis.Medicine your taking are for gastritis,irrtitable bowel
sndrome and now for intestinal infection.I would suggest you to consult a gastero enterologist who may be able to evaluate you for your symptoms .
Hope this answers your question.