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
Parameter | Type | Description |
---|---|---|
resourceType | string | The FHIR resource type. |
code | string | The search parameter code. |
Returns:
SearchParameter | undefined
The search parameter if found, otherwise undefined.