Skip to main content

Class: Hl7Segment

The Hl7Segment class represents one HL7 segment. A segment is a collection of fields. The name field is the first field. Note that we do not strictly parse messages, and only use default delimeters.

Properties

name

Readonly name: string

Defined in

packages/core/src/hl7.ts:80


fields

Readonly fields: Hl7Field[]

Defined in

packages/core/src/hl7.ts:81

Constructors

constructor

new Hl7Segment(fields)

Parameters

NameType
fieldsstring[] | Hl7Field[]

Defined in

packages/core/src/hl7.ts:83

Methods

get

get(index): Hl7Field

Parameters

NameType
indexnumber

Returns

Hl7Field

Defined in

packages/core/src/hl7.ts:92


toString

toString(): string

Returns

string

Defined in

packages/core/src/hl7.ts:96


parse

Static parse(text): Hl7Segment

Parameters

NameType
textstring

Returns

Hl7Segment

Defined in

packages/core/src/hl7.ts:100