EnsLib.InteropTools.HL7.MessageAnalyzer.Derive.TreeModel
abstract class EnsLib.InteropTools.HL7.MessageAnalyzer.Derive.TreeModel
Method Inventory
- AsAbstractStringsLines()
- CreateOptional()
- CreateRepeat()
- CreateSequence()
- CreateSequenceIfNeeded()
- IsChoiceWithEmptyString()
- ReplaceSymbols()
Methods
Given the index of a Choice node with all-plain children, return a %List in the format expected by the AbstractStrings constructor
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
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
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
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 ReplaceSymbols(pTree As Tree, pLinesSymbols As LinesSymbols) as %Boolean
Replaces any symbols from pLinesSymbols in the tree with their definitions
Returns 1 if any symbols were replaced