core.hl7segment._constructor_
Home > @medplum/core > Hl7Segment > (constructor)
Hl7Segment.(constructor)
Creates a new HL7 segment.
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. |