An outbreak of COVID-19 in Shanghai, China, in March 2022 was caused by the Omicron variant. The epidemic lasted for more than 3 months, and the cumulative number of infected people reached 626,000. We investigated the impact of clinical factors on disease outcomes in patients with COVID-19. Using a case-control study design, we examined cases from fever clinics with confirmed Omicron variant infection, analyzed their population and laboratory diagnostic characteristics, and provided theoretical support for subsequent epidemic prevention and control. Logistic regression was used to identify factors associated with infection with the Omicron variant. The results of this study show that the COVID-19 vaccine can protect against infection with the Omicron variant, and more than 50% of infected people had not been vaccinated. Compared with the epidemic in Wuhan 2 years ago, most of the patients in the hospital in the Shanghai epidemic had underlying diseases (
P
= 0.006). A comparison of patients infected with the Omicron variant in Shanghai and patients with other respiratory tract infections showed no significant difference in the levels of neutrophils, lymphocytes, eosinophils, white blood cells, hemoglobin, or platelets (
P
> 0.05). People over 60 years old and those with underlying diseases were at risk for pneumonia (OR = 14.62 (5.49-38.92),
P
< 0.001; OR = 5.29 (2.58-10.85),
P
< 0.001, respectively), but vaccination was a protective factor (OR = 0.24 (0.12-0.49),
P
< 0.001). In summary, vaccination has a potential effect on infection with Omicron variant strains and provides protection against pneumonia. The severity of illness caused by the Omicron variant in 2022 was significantly lower than that of the original SARS-CoV-2 variant from two years previously.