HS.HC.InteropTools.Mirth.Setup
class HS.HC.InteropTools.Mirth.Setup
This utility aids in migrating from Mirth Connect to an Interoperability production. To use this utility:1. Call ##class(HS.HC.InteropTools.Mirth.Setup).GenerateReport()
This generates an html report file that describes the Mirth Connect configuration. Use this report to get a high level overview of the Mirth Connect configuration and its complexity.
2. Call ##class(HS.HC.InteropTools.Mirth.Setup).Run()
This will generate an interoperability production based on the Mirth Connect export. The utility supports automatically converting certain types of Mirth Connect components:
a. Source Connectors - File & TCP will be converted to Business Services
b. Destination Connectors - File & TCP will be converted to Business Operations
Note that routers will connect the generated business services and operations that are converted from the same Mirth Channel
In order to edit the production components before they're loaded via the Production Generator, such as if you want to customize the business component names, you can set the pGenerateProduction=0, and edit the generated items.csv and config.csv files.
Method Inventory
Methods
This method creates an html report file that describes the given Mirth Connect export file. It contains sections describing the Channels, Source Connectors, Destination Connectors, Transformers, and Filters.
pMirthExportFile - The Mirth Connect xml export file
pOutputDir - Directory to create the mirthexportanalysis.html file.
pMirthExportFile - The Mirth Connect xml export file
pOutputDir - Directory to create the mirthexportanalysis.html file.
classmethod Run(pMirthExportFile As %String, pPackageName As %String, pOutputDir As %String, pGenerateProduction As %Boolean = 1) as %Status
This method converts a Mirth Connect export to an Interoperability production. It does so by generating items.csv and config.csv, which are then loaded by the Production Generator. Set pGenerateProduction to 0 to skip loading.
It also creates a conversion.html report file that describes which components were successfully converted and which were not.
pMirthExportFile - The Mirth Connect xml export file
pPackageName - The package that you want all generated interoperability classes to be under. Note that it will not delete classes in that package if they already exist, so it's suggested to pick a new package name (or delete existing classes in that package) each time you run this utility.
pOutputDir - Directory to create the items.csv and config.csv files
pGenerateProduction - Optional parameter (default true) to indicate if the Production Generator should generate the production. If false, the Production Generator will need to be called directly via ##class(EnsLib.InteropTools.HL7.ProductionGenerator).Load(configFile,itemsFile,.errors) to load the production.
It also creates a conversion.html report file that describes which components were successfully converted and which were not.
pMirthExportFile - The Mirth Connect xml export file
pPackageName - The package that you want all generated interoperability classes to be under. Note that it will not delete classes in that package if they already exist, so it's suggested to pick a new package name (or delete existing classes in that package) each time you run this utility.
pOutputDir - Directory to create the items.csv and config.csv files
pGenerateProduction - Optional parameter (default true) to indicate if the Production Generator should generate the production. If false, the Production Generator will need to be called directly via ##class(EnsLib.InteropTools.HL7.ProductionGenerator).Load(configFile,itemsFile,.errors) to load the production.