Hello,
Thanks for the query to H.C.M. Forum.
Since you mentioned that pain is on the right
rib cage . Sometimes pain also on left side when drink wine or alcohol .
The possibility may be
peptic ulcer disease or
Hiatus hernia.
Diagnosis can be confirmed by upper G I
endoscopy.
As you stated that pain aggravate by drinks of alcohol or wines i.e. substances of irritant nature increase the pain .
So for this try raising the head of your bed about 4 inches with blocks. It also might help to avoid eating or drinking for two hours before you lie down.
To help control the stomach acid , one should not drink ALCOHOL or WINE . Don't use products containing caffeine or spicy food , greasy food, junk , chocolates. Some antacid may help, if not then take
proton pump inhibitors after consultation with doctor.
Now the question of smelling ammonia type smell get in blood exmination for serum creatineine & blood urea , may be due to high level of blood urea in body ( ammonia smell).
Good luck.
Dr. HET