Pain severity, disease type, alexithymia, psychological resilience, and somatization all had a significant effect on pain catastrophizing. Healthcare workers must provide timely and accurate assessments of patients' pain levels to help prevent the onset of pain catastrophizing. Adopting measures to improve alexithymia and somatization symptoms, and focusing on enhancing patients' psychological resilience can also help reduce the level of pain catastrophizing. Cognitive behavioral therapy may be an effective treatment method for pain catastrophizing.