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

ParameterTypeDescription
typeNamestringThe type name.
propertyNamestringThe property name.
profileUrlstring(Optional) (optional) The URL of the current resource profile

Returns:

InternalSchemaElement | undefined

The element definition if found.