It could any of the following or even something else. My suggestion is see your MD
Pneumonia (bacterial or viral) of the lower lobe of the right lung.
Pleurisy or pleuritis (inflammation of the lung membrane) from infection, trauma, e
Enlarged liver due to heart failure, hepatitis, fatty liver, lymphoma, leukemia, etc.
Liver cancer or metastases of other cancer into the liver.
GALLBLADDER/ BILIARY TRACT
Gallbladder inflammation, mostly due to gallstones.
Inflammation or blockage of the biliary tree (cystic, or common bile duct).
Gallbladder and biliary cancer are rare.
Pyelonephritis (infection of the right kidney).
Abscess under diaphragm
it sound like to me that u may have ibs don't worry this is a irritable bowel syndrome there are plenty of medication u can try at a local chemist