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[]): string | undefined;

Parameters

ParameterTypeDescription
resourceanyThe base resource.
urlsstring[]Array of extension URLs. Each entry represents a nested extension.

Returns:

string | undefined

The extension value if found; undefined otherwise.