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

ParameterTypeDescription
componentnumberThe component index.
subcomponentnumber(Optional) Optional subcomponent index.
repetitionnumber(Optional) Optional repetition index.

Returns:

string

The string value of the specified component.