Skip to main content

core.clearhealthcareserviceschedulingparameter

Home > @medplum/core > clearHealthcareServiceSchedulingParameter

clearHealthcareServiceSchedulingParameter() function

Immutably clears one scheduling parameter a HealthcareService sets for itself, dropping it back to whatever scheduling defaults that parameter to.

Signature:

export declare function clearHealthcareServiceSchedulingParameter<T extends HealthcareService>(service: T, url: HealthcareServiceSchedulingParameterUrl): T;

Parameters

Parameter

Type

Description

service

T

HealthcareService to update

url

HealthcareServiceSchedulingParameterUrl

Url of the SchedulingParameters sub-extension to remove, for example duration

Returns:

T

A cloned HealthcareService without the matching parameter