Being treated for lung infection and inflammation, possibility doctor believes I am pregnant and awaiting blood results. Sharp pain on right ribs. Why?

Pain may be. associated with pneumonia if it is on the same right side. If not, the pain will need to be worked up by the physician treating you as you could have other things like blood clots in the lung or muscular weakness associated with rib or intercostal muscle strain possibly from coughing. Thanks for trusting in HealthTap.