Hi and thanks for your query,
Its actually an issue of concern. Cough an rib cage
pain usually indicates an issue with the thoracic cavity
. This could be an infection of a deformation. However, its not certain whether your measurements were accurate or not.
It is imperative for you to a chest X rays, and get your lungs and sputum checked. This could be a lung infection
or a pleural effusion
most of the time.
I suggest you take an appointment with a pulmonologist for a proper evaluation.
Thanks and best regards,