among other things, it could also be pleursey, which is an inflammation of the pleura, the covering of the lungs immediately under the ribs or costochondritis an inflammation of the covering of the ribs. this can be a clinical call by a doctor, and while it's not a emergency, for your own pain relief, it should be soon, since home care hasn't resolved it.