The term hospitalization implies an inpatient (or at least observation) stay, as opposed to an outpatient encounter like the emergency department or a clinic. Most diagnoses made in the outpatient setting do not require hospitalization, which could include both COVID and myo/pericarditis.
EDIT: speling