Skip to main content

Class: Hl7Field

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

Constructors

constructor

new Hl7Field(components)

Parameters

NameType
componentsstring[]

Defined in

packages/core/src/hl7.ts:113

Properties

components

Readonly components: string[]

Defined in

packages/core/src/hl7.ts:111

Methods

get

get(index): string

Parameters

NameType
indexnumber

Returns

string

Defined in

packages/core/src/hl7.ts:117


toString

toString(): string

Returns

string

Defined in

packages/core/src/hl7.ts:121


parse

Static parse(text): Hl7Field

Parameters

NameType
textstring

Returns

Hl7Field

Defined in

packages/core/src/hl7.ts:125