Skip to content
LambogeniusDocs

HL7 v2 Schema Generator

Command line

Run the same generator without VS Code, with PowerShell 7 or the .NET SDK.

VS Code extensionlambogenius.hl7-schemagenFree · MIT license. Works entirely locally.

Without VS Code

The same generator runs from the command line, from a clone of the GitHub repository:

# PowerShell 7.2+, no build: compiles generator/V2XmlSchemaConverter.cs in memory
./generator/Hl7SchemaGen.ps1 -Source C:\hl7\v2.5 -Out C:\MyLogicApp\Artifacts\Schemas -Message ADT_A01, ORU_R01
./generator/Hl7SchemaGen.ps1 -Source C:\hl7\v2.5 -List

# .NET SDK
dotnet run --project generator -- C:\hl7\v2.5 --out C:\MyLogicApp\Artifacts\Schemas ADT_A01 ORU_R01
OptionMeaning
--version 2.5.1The HL7 version, when the files don't name it.
--namespace URITarget namespace of the message roots.
--plain-rootRoot ADT_A01 instead of ADT_A01_25.
--listList the message structures in the folder.

The PowerShell script needs PowerShell 7.2 or later and no build; the dotnet run form needs the .NET 8 SDK.