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
Parameter | Type | Description |
---|---|---|
resource | any | The base resource. |
urls | string[] | Array of extension URLs. Each entry represents a nested extension. |
Returns:
string | undefined
The extension value if found; undefined otherwise.