Abstract:Objective To investigate the efficacy of totally thoracoscopic surgery versus median sternotomy in the treatment of children with ventricular septal defect (VSD).Methods A retrospective analysis was performed on clinical data from 98 children with VSD (aged 0-18 years) admitted to the First Affiliated Hospital of Xinjiang Medical University from June 2020 to June 2025. According to the surgical approach, 46 patients were assigned to the thoracoscopic group and 52 to the median sternotomy group. The thoracoscopic group underwent totally thoracoscopic VSD patch repair, whereas the median sternotomy group underwent VSD patch repair via median sternotomy. Age, sex, body weight, VSD diameter, left ventricular ejection fraction (LVEF), New York Heart Association (NYHA) functional class, operative time, cardiopulmonary bypass time, aortic cross-clamp time, intraoperative blood loss, chest closure time, duration of mechanical ventilation, intensive care unit (ICU) stay, 48-h drainage volume, FLACC pain score, postoperative hospital stay, and complication rate were compared between the two groups.Results Operative time, cardiopulmonary bypass time, and aortic cross-clamp time were longer in the thoracoscopic group than in the median sternotomy group, whereas intraoperative blood loss was lower and chest closure time was shorter (P < 0.05). ICU stay and postoperative hospital stay were shorter and 48-h drainage volume was lower in the thoracoscopic group (P < 0.05). The duration of mechanical ventilation did not differ significantly between the groups (P > 0.05). Repeated-measures analysis of FLACC scores showed significant effects of time and group and a significant time-by-group interaction (all P < 0.05); scores were lower in the thoracoscopic group, indicating better analgesia. The total incidence of postoperative complications did not differ significantly between the two groups (P > 0.05).Conclusion Totally thoracoscopic surgery is a safe and effective treatment for children with VSD. Compared with median sternotomy, it has significant advantages in reducing surgical trauma, accelerating postoperative recovery, and ensuring safety, with a similar incidence of short-term postoperative complications. Therefore, for children with VSD who are ineligible for interventional occlusion and have a body weight > 35 kg, totally thoracoscopic surgery can serve as a practical alternative to median sternotomy VSD patch repair.