Skip to main content

core.hl7segment._constructor_

Home > @medplum/core > Hl7Segment > (constructor)

Hl7Segment.(constructor)

Creates a new HL7 segment.

Field strings are not parsed until they are accessed via Hl7Segment.getField() or via the Hl7Segment.fields getter.

Signature:

constructor(fields: (Hl7Field | string)[], context?: Hl7Context);

Parameters

Parameter

Type

Description

fields

(Hl7Field | string)[]

The HL7 fields. The first field is the segment name.

context

Hl7Context

(Optional) Optional HL7 parsing context.