Skip to main content

core.getsearchparameterdetails

Home > @medplum/core > getSearchParameterDetails

getSearchParameterDetails() function

Returns the type details of a SearchParameter.

The SearchParameter resource has a "type" parameter, but that is missing some critical information.

For example: 1) The "date" type includes "date", "datetime", and "period". 2) The "token" type includes enums and booleans. 3) Arrays/multiple values are not reflected at all.

Signature:

export declare function getSearchParameterDetails(resourceType: string, searchParam: SearchParameter): SearchParameterDetails;

Parameters

Parameter

Type

Description

resourceType

string

The root resource type.

searchParam

SearchParameter

The search parameter.

Returns:

SearchParameterDetails

The search parameter type details.