EnsLib.InteropTools.HL7.MessageAnalyzer.NFA.Extend.Strategies.ScanImpl.ScanBranch

class EnsLib.InteropTools.HL7.MessageAnalyzer.NFA.Extend.Strategies.ScanImpl.ScanBranch extends %Library.RegisteredObject

Method Inventory

Methods

method %OnNew(pSchemaSource As %String, ByRef pMessageArray, pDiffCollection As DiffCollection, pConfig As Config, pLogger As Logger) as %Status [ Language = objectscript ]
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

method BranchKey() as %String [ Language = objectscript ]
classmethod ExtendImpl(pConfig As Config, pLogger As Logger, pIgnoreTrailingZ As %Boolean, pBestSchemaName As %String, pBestSchemaSource As %String, ByRef pMessageArray, pMachineCollection As MachineCollection, pRigSchema As RigSchema, pDiffCollection As DiffCollection, Output pMessagesByDiff, ByRef pExtensions As Extend) as %Boolean [ Language = objectscript ]
Returns whether a match was found

pMessagesByDiff(TYPE,1..pMessagesByDiff(TYPE))=$LB(MESSAGESEGMENTLIST,ADDEDKEY)

TYPE is one of: 1=>added to diffs, 0=>matched, -1=>not added to diffs but not matching either

method ExtendProgressivelyOne(pIgnoreTrailingZ As %Boolean, Output pSchemaSourceList) as %String [ Language = objectscript ]
If there was an exact match: returns the matching schema source

If there was NO exact match: returns "" and a list of possible new schema sources in pSchemaSourceList

method GetDiffCollection() as DiffCollection [ Language = objectscript ]
classmethod GetPattern(pConfig As Config, pLogger As Logger, pLinesSymbols As LinesSymbols, pOriginalRecords As %List, ByRef pAnyWithoutEarliest) as %String [ Language = objectscript ]
Returns pattern, or "" if none
method GetSchemaSource() as %String [ Language = objectscript ]
method SizeMetric() as %Integer [ Language = objectscript ]

Inherited Members

Inherited Methods

Feedback