I have been diagnosed with gastritis and given a perscription

Patient: I have been diagnosed with gastritis and given a perscription of omeprazole 20mg. Ever since taking these my pain has gotten worse and I’m gassy and uncomfortable. The pain keeps me up at night as well. What’s going on?

Doctor: