Skip to main content

core.getextensionvalue

Home > @medplum/core > getExtensionValue

getExtensionValue() function

Returns an extension value by extension URLs.

Signature:

export declare function getExtensionValue(resource: any, ...urls: string[]): ExtensionValue | undefined;

Parameters

Parameter

Type

Description

resource

any

The base resource.

urls

string[]

Array of extension URLs. Each entry represents a nested extension.

Returns:

ExtensionValue | undefined

The extension value if found; undefined otherwise.