Skip to main content

SchemaMap.Tool.Build.Run

abstract class SchemaMap.Tool.Build.Run

manages import and export to and from CSV for various purposes, related to developer collaboration and Perforce storage of shared work

Method Inventory

Methods

classmethod BuildDTL() as %Status
classmethod BuildGlobal() as %Status
classmethod BuildHelp() as %Status
For SDA3 or FHIR, this method must be called after the ^SchemaMap.Paths global is built and after the FHIR data model classes are built (after BuildGlobal and BuildModel). For FHIR, this method calls BuildListsForClassInfo which adds required finishing touches to some ^SchemaMap.Paths values for FHIR. For SDA3, this method calls BuildCodeTableDetailHelp which helps developers better understand the quirky SDA3 CodeTableDetail types. BuildCodeTableDetailHelp() needs values that are present in the ^SchemaMap.Paths global only after BuildGlobal and BuildModel are called.
classmethod BuildModel() as %Status
classmethod EnableEdit(enableEdit As %Boolean = 0) as %Status
Ensure EnableEdit is called after JSONDataFiles, which kills the ^SchemaMap.Config global that this method sets. Ensure EnableEdit is called before BuildGlobal, which sets some reference data based on the current BuildMode.

If the SchemaMap.Dev module is not available, we use 0 for enableEdit.

This method sets the correct BuildMode based on enableEdit: read-only has Delivery, read-write has Development. Note: when the BuildMode on an instance is set to Development, starting the delivery sequence temporarily sets the BuildMode to Delivery, then at the end of the sequence resets it to Development.

classmethod Install(dirName As %String = "") as %Status
This method deletes and regenerates the following items from imported schema data: Data model classes for FHIR STU3 and FHIR DSTU2, Data that guides Schema Mapper code generation, Data that controls the Schema Mapper UI, All schema tables, All mapping tables, All lookup tables, All project and tool configuration data.
classmethod IsDev() as %Boolean
classmethod ProjectArchiveDirectory() as %String
classmethod Setup() as %Status
FeedbackOpens in a new tab