Thanks fore writing your query.
You can have a X-Ray of chest PA view done to rule out any pathology in lungs.
But after reading your post, it seems that the pain you experienced might be due to increased gas and acid production in stomach.
You can take antacid
20 mg along with Domperidone
10 mg once a day in morning for relief of symptoms. Taking antacid gel is also beneficial as it forms a protective layer over the damaged mucosa of the stomach.
You should follow some precautions like :-
1. Avoid spicy and oily foods.
2. Donot miss a meal.
3. Avoid cigarette/alcohol.
4. Avoid emotional/mental stress
5. Donot self medicate especially with pain killers and steroids
6. Avoid gas producing foods like peas, legumes, etc.
If the problem persists, get yourself examined by a Physician and take any medicines under medical supervision only.
I hope this is helpful to you.