Skip to main content

core.hl7context

Home > @medplum/core > Hl7Context

Hl7Context class

The Hl7Context class represents the parsing context for an HL7 message.

Signature:

export declare class Hl7Context 

Constructors

ConstructorModifiersDescription
(constructor)(segmentSeparator, fieldSeparator, componentSeparator, repetitionSeparator, escapeCharacter, subcomponentSeparator)Constructs a new instance of the Hl7Context class

Properties

PropertyModifiersTypeDescription
componentSeparatorreadonlystring
escapeCharacterreadonlystring
fieldSeparatorreadonlystring
repetitionSeparatorreadonlystring
segmentSeparatorreadonlystring
subcomponentSeparatorreadonlystring

Methods

MethodModifiersDescription
getMsh1()Returns the MSH-1 field value based on the configured separators.
getMsh2()Returns the MSH-2 field value based on the configured separators.