- Log in to post comments
User bio
404 bio not found
Member since Dec 21, 2022
Posts:
Mike has not published any posts yet.
Replies:
Certifications & Credly badges:
Mike has no Certifications & Credly badges yet.
Followers:
Mike has no followers yet.
Following:
Mike has not followed anybody yet.
InitializeXMLParse does a lot of necessary things including the following:
This is a lot of overhead. Also, "do oSDA.StreamOref.Rewind()" and "oSDA.StreamPos = 1" fails to re-initialize the ..StreamBuffer.
My suggestion would be to declare a MultiDimensional property in your class:
Property %sdaclass [ MultiDimensional, Private ];
Then follwing any call to GetNextSDA, save the SDA class in the MultiDimensional:
set ..%sdaclass($increment(%sdaclass))=tPatient // replace tPatient with variable returned by GetNextSDA
Your second pass can simply iterate over the MultiDimensional:
set subscript=""
for {
set subscript=$order(..%sdaclass(subscript))
quit:subscript=""
set sdaclass=..%sdaclass(subscript)
... processing logic B
}