Have pain on right side rib cage two days now. It hurts when I cough or lay on my stomach. No other symptoms. History of GERD.?

Needs evaluation. 1. Could be rib, soft tissue injury 2. Could be a collapsed lung 3. Could be a blood clot ultimately you need evaluation and if your pain is that bad you need to go to the emergency room.