The doctors performed pars plana vitrectomy (PPV) to remove the worm.