Thanks for writing your query
After going through your suffering, the pain could be of costochondritis
(painful when ribs are pressed), may be relieved by following measure along with the drugs like ibuprofen-
1. Avoiding unnecessary exercise or activities that make the symptoms worse; avoid contact sports until there is improvement in symptoms, and then return to normal activities only as tolerated.
2. Rib belt along with hot water fomentation helps.
3. You may be given a local anaesthetic
injection in the area that is tender if normal activities become very painful and the pain does not respond to drugs..
The condition affects females more than males (70% versus 30%)
As far as outlook of costochondritis is concerned it is usually self limiting and may go away of its own most people will recover fully.
If the problem persists you may see a doctor to rule out the other possibilities.
Hope this information suffices and I shall be glad to answer any further query.
Take care and wish you good health