Skip to main content

core.hl7field.get

Home > @medplum/core > Hl7Field > get

Hl7Field.get() method

Warning: This API is now obsolete.

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

Returns an HL7 component by index.

Signature:

get(component: number, subcomponent?: number, repetition?: number): string;

Parameters

Parameter

Type

Description

component

number

The component index.

subcomponent

number

(Optional) Optional subcomponent index.

repetition

number

(Optional) Optional repetition index.

Returns:

string

The string value of the specified component.