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

Parameter

Type

Description

resource

any

The base resource.

urls

string[]

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

Returns:

Extension | undefined

The extension object if found; undefined otherwise.