Skip to main content

core.getextension

Home > @medplum/core > getExtension

getExtension() function

Returns an extension by extension URLs.

Signature:

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

Parameters

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

Returns:

Extension | undefined

The extension object if found; undefined otherwise.