EnsLib.InteropTools.HL7.MessageAnalyzer.Derive.TreeModel

abstract class EnsLib.InteropTools.HL7.MessageAnalyzer.Derive.TreeModel

Method Inventory

Methods

classmethod AsAbstractStringsLines(pTree As Tree, pIndex As %Integer) as %List [ Language = objectscript ]
Given the index of a Choice node with all-plain children, return a %List in the format expected by the AbstractStrings constructor
classmethod CreateOptional(pIndex As %Integer, pNewTree As Tree, pTreeRefs As TreeRefs) as %Integer [ Language = objectscript ]
Creates a new optional node and replaces the node at pIndex, which the optional node adopts. Returns the index to the new optional node.
classmethod CreateRepeat(pContainedIndex As %Integer, pNewTree As Tree, pTreeRefs As TreeRefs) as %Integer [ Language = objectscript ]
Creates a new repeat node and replaces the node at pContainedIndex, which the repeat node adopts. Returns the index to the new repeat node.
classmethod CreateSequence(pIndex As %Integer, pParentIndex As %Integer, pNewTree As Tree, pTreeRefs As TreeRefs) as %Integer [ Language = objectscript ]
Create a sequence node and point it to the node at the given index

Returns the index of the new sequence node

classmethod CreateSequenceIfNeeded(pIndex As %Integer, pParentIndex As %Integer, pNewTree As Tree, pTreeRefs As TreeRefs) as %Integer [ Language = objectscript ]
If the parent of node at the given index is NOT a sequence node: create a sequence node and point it to the node at the given index

Returns the index of the sequence node (new or old)

classmethod IsChoiceWithEmptyString(pTree As Tree, pIndex As %Integer) as %Boolean [ Language = objectscript ]
classmethod ReplaceSymbols(pTree As Tree, pLinesSymbols As LinesSymbols) as %Boolean [ Language = objectscript ]
Replaces any symbols from pLinesSymbols in the tree with their definitions

Returns 1 if any symbols were replaced

Feedback