I've been trying to figure out if the pain in my right side, under the ribs, is just gas pain or something more serious. It comes and goes, but when I have it I can't lie down. The pain is excruciating. About 5 years ago, I had pnemonia and my right lung had separated walls. The pnemonia itself wasn't detected by doctors until two weeks in. I don't know if it might be related, but I have had problems with my breathing ever since, but the pain is new. Can anybody help?