core.hl7field.get | Medplum

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.