Pericarditis is an inflammation of the pericardium or sac that contains your heart. Most people do well with prompt treatment, rest and medication. Others may need a procedure to drain fluid from their pericardium. In most cases, people make a full recovery. However, it can take weeks or months.