EnsPortal.HL7.Utils

class EnsPortal.HL7.Utils extends %Library.RegisteredObject

This class contains utility methods to support the HL7 user interface

Method Inventory

Parameters

parameter DOMAIN = Ensemble;

Methods

classmethod GetImmediateBaseSchema(pSchema As %String) as %String
Accepts a schema name as input. Returns its base schema or "" if there is no base schema.
classmethod GetMostCustomSchemaEntity(pSchema As %String, pEntity As %String, pType As %String) as %String
Accepts a custom schema name and schema entity (such as a message type or message structure) as input. Looks through this schema's inheritance to find out where the "most custom" entity of this type is defined and returns a string in the form "schema:name" with the name being the input entity name. If no entity of this type is found in the inheritance hierarchy, even in a standard schema, then it returns a blank string.
classmethod GetSchemaInheritanceList(pSchema As %String) as %String
Accepts a schema name as input. Returns a comma-separated list of schema names ordered from the "most custom" custom schema to the "least custom" schema, which may be a standard schema.
classmethod IsCustomSchema(pSchema As %String) as %Boolean
Accepts a schema name as input. Returns 1 (true) if the schema is custom, 0 (false) if it is standard).
classmethod SchemaEntityAlreadyExists(pSchema As %String, pEntity As %String, pType As %String) as %String
Indicates whether the entity exists in the schema. 1 = true, 0 = false. If searching for a schema itself, use pType="" and pEntity="". Otherwise use pType values suitable for schemas such as "MT" "MS" "DS" and so on.

Inherited Members

Inherited Methods

Feedback