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): InternalSchemaElement | undefined;

Parameters

ParameterTypeDescription
typeNamestringThe type name.
propertyNamestringThe property name.

Returns:

InternalSchemaElement | undefined

The element definition if found.