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

Parameter

Type

Description

resource

Resource

The resource that was created or updated.

searchRequest

SearchRequest

The subscription criteria as a search request.

Returns:

boolean

True if the resource satisfies the search request.