Stay organized with collections
Save and categorize content based on your preferences.
This page provides an overview on how and when to configure a schema on
an HL7v2 store to parse HL7v2 messages.
Default schema
The Cloud Healthcare API uses a default schema to parse HL7v2 messages that conform
to the HL7v2 standard. If your HL7v2 messages conform to the standard, and
do not contain custom segments, fields, or any other data that deviates from
the standard, see Enable schematized parsing for HL7v2 messages.
You can specify options for the parser in the ParserConfig object, regardless of whether you're using the
default schema or a custom schema. The ParserConfig contains a
ParserVersion
object that lets you specify a version for the parser. See the reference documentation for details on each version.
We recommend that, for all use cases, you specify the
V3
version of the parser. The V3 version has the following advantages:
It contains the existing functionality in the V2 version.
When used with the default parser, it unescapes the following default escaped
HL7v2 control characters:
Field separator: |
Component separator: ^
Sub-component separator: &
Repetition separator: ~
Escape character: \
Truncation character: #
When used with a custom parser, the V3 parser uses improved matching
techniques over the other parser versions.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This page guides users on configuring schemas for HL7v2 stores to parse HL7v2 messages effectively."],["The Cloud Healthcare API uses a default schema for parsing standard HL7v2 messages, with a specific guide available for this use case."],["Custom schemas are necessary for HL7v2 messages that do not adhere to the standard, and a separate guide is available for these."],["Regardless of the schema used, the `ParserConfig` object allows specifying a `ParserVersion`, with `V3` recommended for its enhanced functionality, including unescaping default HL7v2 control characters and improved matching with custom parsers."]]],[]]