Skip to main content

EnsLib.InteropTools.HL7.MessageAnalyzer.Validation.PathUpdater

class EnsLib.InteropTools.HL7.MessageAnalyzer.Validation.PathUpdater extends %Library.RegisteredObject

Method Inventory

Methods

method %OnNew(pHL7Message As Message, pCustomVersion As %String, pSchemaName As %String, pSegmentName As %String, pSegmentIndex As %Integer, pConfigChangeLog As ConfigChangeLog, pLogger As Logger) as %Status
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.

classmethod BaseVersion(pCustomVersion As %String) as %String
Given a custom version, return its base version (or "" if none)
classmethod CopyAndUpdateMessageTypesIfNeeded(pCustomVersion As %String, pSchemaName As %String) as %List
classmethod CopyFrom(pSourceVersion As %String, pCustomVersion As %String, pKind As %String, pItem As %String, pIfNeeded As %Boolean = 0)
Copies an entity to a custom version from a given version

pKind is the global key - e.g. "SS" for a segment structure

pItem is the name of the segment structure etc.

- if the target entity already exists this method throws a fatal exception, unless pIfNeeded is passed as true in which case the method simply returns

classmethod CopyFromBase(pCustomVersion As %String, pKind As %String, pItem As %String, pIfNeeded As %Boolean = 0)
Copies an entity to a custom version from its base version

pKind is the global key - e.g. "SS" for a segment structure

pItem is the name of the segment structure etc.

- if the target entity already exists this method throws a fatal exception, unless pIfNeeded is passed as true in which case the method simply returns

classmethod DescribeChange(pHL7Configuration As HL7Configuration, pClassArgs As %String, pCategory As %String, pSubCategory As %String, pItem As %String, pOldData As %String, pNewData As %String) as %List
classmethod DescribeCopy(pHL7Configuration As HL7Configuration, pClassArgs As %String, pCategory As %String, pItem As %String, pSourceVersion As %String, pTargetVersion As %String) as %List
classmethod MakeCustomVersion(pCustomVersion As %String, pBaseVersion As %String)
Create a custom version based on a given base.

- throws a fatal exception if the custom version already exists

method Update(pPath As %List, Output pPathResult As Path, pFindCodeTable As %List = "") as %List
pPath is $ListBuild($ListBuild(ACCESSPOINT,INDEX))

Returns $ListBuild(0,ERR) or $ListBuild(1,KIND,LIBRARYVERSION,NAME)

ERR is a string

KIND refers to the final item: "DT" or "CT"

LIBRARYVERSION is the original schema of the final item

NAME is the name of the final item

If the given path is "" the KIND, LIBRARYVERSION and NAME will all be returned as ""

-

pFindCodeTable is $ListBuild(FIELDINDEX,COMPONENTINDEX,SUBCOMPONENTINDEX,CODETABLE) if given

Inherited Members

Inherited Methods

FeedbackOpens in a new tab