Skip to main content

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
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
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 IsChoiceWithEmptyString(pTree As Tree, pIndex As %Integer) as %Boolean
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

FeedbackOpens in a new tab