Prescription anti-inflammatory medicines are also available. These medicines may be used when over-the-counter medicines do not help. This is due to the risk of side effects after a heart attack or heart surgery.