If heart and lungs have been given the all clear then you need to consider anxiety disorder, or possible gastric related and an endoscopy may be helpful. This is especially the case as your painkillers may be causing stomach irritation and reflux should be ruled out.
A final option may be costocondritis which is a musculoskeletal problem involving inflammation and pain of the ribs.
If this answered your question please click ACCEPT, use reply if there is something else you need to know regarding your question.Positive feedback or bonus is very much appreciated.