Skip to content
LambogeniusDocs

HL7 v2 Schema Generator

Get the v2.xml schemas

Download HL7's v2.xml schemas once per HL7 version.

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

Once per HL7 version

The generator reads HL7's own v2.xml schemas: datatypes.xsd, fields.xsd, segments.xsd and one file per message structure. HL7 International provides them free of charge to anyone with an HL7 account.

  1. 1
    Create a free account

    at hl7.org and sign in.

  2. 2
    Download the HL7 v2 standard package

    for your version (for example 2.5.1), which includes the v2.xml schemas.

  3. 3
    Unzip it anywhere,

    for example C:\hl7\v2.5.1. You don't have to find the exact subfolder: the extension looks for segments.xsd itself.

HL7's content

The v2.xml schemas, and the schemas generated from them, contain HL7's content. Use them under your own HL7 license and don't redistribute them.