You may need to stay in the hospital during treatment for pericarditis. This lets your health care provider monitor you for any complications.