@evaherbst
All of these should be doable, the question is what is the benefit you will be gaining by exporting the data in yet another format? Did you consider reading the JSON file directly (which already saves the coordinates in LPS)? Going forward you might find your workflow to be more robust if you avoid using these customs codes and outputs and go straight from JSON.
Did you try
int coordinateSystem = vtkMRMLStorageNode::CoordinateSystemLPS);
If this doesn’t work, and since you are building custom code, you can simply multiply the first to coordinates by -1 to convert RAS to LPS (or vice versa).
That is fine, but I highly recommend to develop your json reader instead. That will help you in the long-run both from data management perspective (what if you decide to add/revise new markups?) and data flow (you will have to re-export everything if you modify your dataset).
I have been in a similar situation, and did what you are doing right now which eventually became a burden.