What should I do if my stomach hurts a lot and gets better after farting or having a bowel movement?

Stomach pain that farts or gets better after a bowel movement is commonly associated with irritable bowel syndrome, gastrointestinal dysfunction, and flatulence. General treatment, medication and emotional regulation can be given to relieve. 1. Irritable bowel syndrome: mainly through drug therapy such as antispasmodic drugs, pro-dynamic drugs, intestinal microecological agents, common drugs are scopolamine, mosapride, bifidobacteria, montelukast, etc., in addition, need to maintain a happy mood. 2. Gastrointestinal dysfunction: mainly through medication such as gastrointestinal stimulant domperidone, acid inhibitor omeprazole, antacid magnesium aluminum carbonate, and so on. 3. Gastrointestinal flatulence: pay attention to abdominal warmth on weekdays, avoid eating too much gas-producing food, such as sweet potatoes, potatoes, turnips and so on. If you find that the symptoms are not cured for a long time, you should consult a doctor in a timely manner, under the guidance of the doctor’s treatment, do not take medication without authorization, so as not to delay the condition. Pay attention to regular diet, quit smoking and drinking, and exercise properly.