Anti-inflammatory medicines can help reduce inflammation of the pericardium. These medicines may be given when the heart is still working normally and not much fluid has built up.