Skip to main content

Class: Hl7Message

The Hl7Message class represents one HL7 message. A message is a collection of segments. Note that we do not strictly parse messages, and only use default delimeters.

Constructors

constructor

new Hl7Message(segments)

Parameters

NameType
segmentsHl7Segment[]

Defined in

packages/core/src/hl7.ts:15

Properties

segments

Readonly segments: Hl7Segment[]

Defined in

packages/core/src/hl7.ts:13

Methods

buildAck

buildAck(): Hl7Message

Returns

Hl7Message

Defined in

packages/core/src/hl7.ts:34


get

get(index): undefined | Hl7Segment

Parameters

NameType
indexstring | number

Returns

undefined | Hl7Segment

Defined in

packages/core/src/hl7.ts:19


getAll

getAll(name): Hl7Segment[]

Parameters

NameType
namestring

Returns

Hl7Segment[]

Defined in

packages/core/src/hl7.ts:26


toString

toString(): string

Returns

string

Defined in

packages/core/src/hl7.ts:30


parse

Static parse(text): Hl7Message

Parameters

NameType
textstring

Returns

Hl7Message

Defined in

packages/core/src/hl7.ts:63