Skip to main content

core.getsearchparameter

Home > @medplum/core > getSearchParameter

getSearchParameter() function

Returns a search parameter for a resource type by search code.

Signature:

export declare function getSearchParameter(resourceType: string, code: string): SearchParameter | undefined;

Parameters

ParameterTypeDescription
resourceTypestringThe FHIR resource type.
codestringThe search parameter code.

Returns:

SearchParameter | undefined

The search parameter if found, otherwise undefined.