Doctors usually recommend bed rest for mild cases of pericarditis as it usually improves on its own gradually. For severe cases, medication may be prescribed to relieve pain and reduce swelling and inflammation of the pericardium. For extreme cases where there is a fluid accumulation around the heart, a procedure to remove the fluid - either via a needle or surgery - may be recommended.