core.hl7segment.parse | Medplum

Hl7Segment.parse() method

Parses an HL7 segment string into an Hl7Segment object.

Signature:

static parse(text: string, context?: Hl7Context): Hl7Segment;

Parameters

Parameter Type Description
text string The HL7 segment text.
context Hl7Context (Optional) Optional HL7 parsing context.

Returns:

Hl7Segment

The parsed HL7 segment.