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| Option | Meaning |
|---|---|
--version 2.5.1 | The HL7 version, when the files don't name it. |
--namespace URI | Target namespace of the message roots. |
--plain-root | Root ADT_A01 instead of ADT_A01_25. |
--list | List 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.