Iterating HS.SDA3.Container container twice
I initialize a HS.SDA3.Container from a XML stream and I need to iterate over it twice. What is a correct way of doing it? Is it enough to adjust StreamPos/StreamOref?
The optimal solution would be to use one loop, but it's not possible to combine the processing logic.
set oSDA = ##class(HS.SDA3.Container).%New()
do oSDA.InitializeXMLParse(.tQuickStream)
while oSDA.GetNextSDA(.tType, .tPatient) {
// processing logic A
}
set oSDA.StreamPos = 1
do oSDA.StreamOref.Rewind()
while oSDA.GetNextSDA(.tType, .tPatient) {
// processing logic B
}
Product version: IRIS 2022.1