Results: In diabetic patients, elevated CRP, IL-6, TRG/HDL-C ratio, and TyG index, severe pneumonia, and hyperglycemia were associated with extended hospitalization. The gene discussed is IL6; the disease is susceptibility to pneumonia measurement.