Skip to main content

core.getelementdefinition

Home > @medplum/core > getElementDefinition

getElementDefinition() function

Returns an element definition by type and property name.

Signature:

export declare function getElementDefinition(typeName: string, propertyName: string, profileUrl?: string): InternalSchemaElement | undefined;

Parameters

Parameter

Type

Description

typeName

string

The type name.

propertyName

string

The property name.

profileUrl

string

(Optional) (optional) The URL of the current resource profile

Returns:

InternalSchemaElement | undefined

The element definition if found.