The study focused on the risk factors of postoperative arrhythmia and lung infection and the preventive effects of targeted low-molecular-weight heparin (LMWH) on the occurrence of deep venous thrombosis (DVT) in patients with esophageal/cardia cancer. In this article, 82 patients who were pathologically diagnosed with esophageal/cardia cancer and underwent surgical treatment were selected as the research subjects. According to the different preoperative treatment methods, the patients were divided into the control group (without anticoagulant drugs before the operation, 44 cases) and the anticoagulation group (anticoagulant drugs were administered before the operation, 38 cases), and they were compared for basic clinical indicators and disease history. Logistic regression analysis was performed to analyze the risk factors of adverse events, and the Wells and Autar scale scores were calculated. Different groups were compared for the operation time, blood loss, and postoperative drainage volume during the operation. D-dimer was detected on the first 1, 3, 5, and 7 days after the operation, and the lower extremity venous color Doppler ultrasound was performed on the 1st and 7th days after the operation. The results showed that age ≥65 years, abnormal preoperative ECG, preoperative coronary heart disease (CHD), preoperative chronic obstructive pulmonary disease (COPD), operative time ≥4 h, and preoperative blood sodium <4.04.0 mmol/L were all risk factors for postoperative arrhythmia. Age, preoperative diabetes mellitus, preoperative COPD, length of hospital stay, and FEV1 were all risk factors for postoperative lung infections. In the control group and anticoagulation group, 11 cases (13.41%) and 5 cases (16.10%) had lower extremity DVT, respectively. The incidence of lower extremity DVT was lower in the anticoagulation group than in the control group
P
<
0.01
. It suggested that age, preoperative disease history, hospital stay, and operation time were risk factors for postoperative adverse events in patients with esophageal/cardia cancer. The targeted anticoagulant LMWH has a significant preventive effect on the occurrence of lower extremity DVT in patients with esophageal/cardia cancer, providing an effective reference for the prognosis and prevention of esophageal/cardia cancer.