I CANT POOP

hi, so i’m recovering from gastritis and haven’t been able to poop or burp or pass gas correctly. does anyone have any advice on what i should do to get rid of the stool in my body and to pass gas