Skip to main content

SchemaMap.Tool.Build.Generate

abstract class SchemaMap.Tool.Build.Generate extends SchemaMap.Tool.Base.Generate

Recurses through the flat, static schema data tables to generate the path-by-path globals needed to drive schema analysis and mapping tools.

Use caution when calling macros other than $$$MapLog* macros in this class. This class generates the ^SchemaMap.Paths global upon which most of the macros are based.

Method Inventory

Methods

classmethod BuildListFHIRBaseFields(schema As %String) as %Status
classmethod BuildListFHIRQuantityTypes(schema As %String) as %Status
classmethod BuildListsForClassInfo(schema As %String) as %Status
classmethod GetListCodeTableDetail() as %Status
SDA3
classmethod GetListFHIR(schema As %String)
classmethod GetListFHIR3()
classmethod GetListFHIR4()
classmethod GetListSDA3() as %Status
SDA3
classmethod GetListTrak() as %Status
Trak
classmethod GetPaths(schema As %String) as %Status
classmethod GetPathsField(schema As %String, prePath As %String, preType As %String, preCard As %String, preDesc As %String) as %Status
classmethod GetPathsFields(schema As %String, resource As %String) as %Status
classmethod GetPropertiesOfCode(pClassName As %String, Output pAll) as %Status
SDA3 Appends to the output value pAll which is a multidimensional list of classes and property names of code table classes that have the potential to be interesting.
classmethod GetPropertiesOfNonCode(pClassName As %String, Output pAll) as %Status
SDA3 Re-initializes the output value pAll to empty and then uses it to list the properties of the input class name
classmethod GlobalReferenceField(package As %String(VALUELIST=",HC,ODS")="HC", from As %String = "", to As %String = "", resource As %String = "") as %Status
Input all 3 arguments from, to, and resource, or none of them.

If none, the ^SchemaMap.ReferenceField global is killed, every mapping table in the project is examined, and the entire ^SchemaMap.ReferenceField global is regenerated accurately for the project.

If from and to are provided, and the input resource is a path that contains a colon, only the resource portion of the path is used as input to the method, with the result that all current entries for the parent resource are regenerated.

classmethod GlobalReferenceFieldEntry(package As %String(VALUELIST=",HC,ODS")="HC", from As %String = "", to As %String = "", fromPath As %String = "") as %Status
classmethod SetPathsElementInfo(schema As %String, path As %String, type As %String, card As %String, desc As %String, isObject As %Boolean, isVariant As %Boolean = 0) as %Status
For an element, get raw schema information from the schema table columns and store it in the ^SchemaMap.Paths global, indexed by schema and path. Calculate and store other useful schema information in the ^SchemaMap.Paths global, indexed by schema and path. For calculating and storing data type information, see SetPathsTypeInfo.
classmethod SetPathsResourceInfo(schema As %String, resource As %String, type As %String, desc As %String = "") as %Status
For a resource, get raw schema information from the schema table columns and store it in the ^SchemaMap.Paths global, indexed by schema and path.
classmethod SetPathsTypeInfo(schema As %String, path As %String, type As %String) as %Status
Calculate and store data type information in the ^SchemaMap.Paths global, indexed by schema and path.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab