Skip to main content

core.hl7message.get

Home > @medplum/core > Hl7Message > get

Hl7Message.get() method

Warning: This API is now obsolete.

Use getSegment() instead. This method will be removed in a future release.

Returns an HL7 segment by index or by name.

Signature:

get(index: number | string): Hl7Segment | undefined;

Parameters

ParameterTypeDescription
indexnumber | stringThe HL7 segment index or name.

Returns:

Hl7Segment | undefined

The HL7 segment if found; otherwise, undefined.