core.medplumclient.unsubscribefromcriteria | Medplum

MedplumClient.unsubscribeFromCriteria() method

Unsubscribes from the given criteria.

When called the same amount of times as proceeding calls to subscribeToCriteria on a given criteria, the criteria is fully removed from the SubscriptionManager.

Signature:

unsubscribeFromCriteria(criteria: string, subscriptionProps?: Partial<Subscription>): void;

Parameters

Parameter Type Description
criteria string The criteria to unsubscribe from.
subscriptionProps Partial (Optional) The optional properties that subscribeToCriteria was called with.

Returns:

void