core.hl7segment.tostring | Medplum

Hl7Segment.toString() method

Returns the HL7 segment as a string.

Unparsed fields are emitted directly from their original string form, which preserves the source text without forcing a parse.

Signature:

toString(): string;

Returns:

string

The HL7 segment as a string.