Skip to main content

core.hl7segment._constructor_

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

Hl7Segment.(constructor)

Creates a new HL7 segment.

Signature:

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

Parameters

ParameterTypeDescription
fieldsHl7Field[] | string[]The HL7 fields. The first field is the segment name.
contextHl7Context(Optional) Optional HL7 parsing context.