Skip to main content

core.matchessearchrequest

Home > @medplum/core > matchesSearchRequest

matchesSearchRequest() function

Determines if the resource matches the search request.

Signature:

export declare function matchesSearchRequest(resource: Resource, searchRequest: SearchRequest): boolean;

Parameters

ParameterTypeDescription
resourceResourceThe resource that was created or updated.
searchRequestSearchRequestThe subscription criteria as a search request.

Returns:

boolean

True if the resource satisfies the search request.