A method is provided for correcting a curvature or deformity in a patient's spine based on the digitized locations of implanted screws and tracking the placement of the rod as it is placed in a minimally invasive fashion. The method is implemented by a control unit through a GUI to digitize screw locations, accept one or more correction outputs, and generate one or more rod solution outputs shaped to fit at locations distinct from the implanted screw locations.