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​

Constructor

Modifiers

Description

(constructor)(segmentSeparator, fieldSeparator, componentSeparator, repetitionSeparator, escapeCharacter, subcomponentSeparator)

Constructs a new instance of the Hl7Context class

Properties​

Property

Modifiers

Type

Description

componentSeparator

readonly

string

escapeCharacter

readonly

string

fieldSeparator

readonly

string

repetitionSeparator

readonly

string

segmentSeparator

readonly

string

subcomponentSeparator

readonly

string

Methods​

Method

Modifiers

Description

getMsh1()

Returns the MSH-1 field value based on the configured separators.

getMsh2()

Returns the MSH-2 field value based on the configured separators.