core.hl7segment.parse
Home > @medplum/core > Hl7Segment > parse
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 | (Optional) Optional HL7 parsing context. |
Returns:
The parsed HL7 segment.