core.hl7message.getall | Medplum

Hl7Message.getAll() method

Warning: This API is now obsolete.

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

Returns all HL7 segments of a given name.

Signature:

getAll(name: string): Hl7Segment[];

Parameters [​](/content/docs/sdk/core.hl7message.getall#parameters "Direct link to Parameters"/index.html)

Parameter Type Description
name string The HL7 segment name.

Returns:

Hl7Segment

An array of HL7 segments with the specified name.