core.clearscheduleschedulingparameter
Home > @medplum/core > clearScheduleSchedulingParameter
clearScheduleSchedulingParameter() function
Immutably clears one scheduling parameter a Schedule overrides for a HealthcareService, dropping that calendar back to the service-level parameter of the same name.
Signature:
export declare function clearScheduleSchedulingParameter<T extends Schedule>(schedule: T, service: WithId<HealthcareService>, url: SchedulingParameterUrl): T;
Parameters
Parameter | Type | Description |
|---|---|---|
schedule | T | Schedule to update |
service | WithId<HealthcareService> | HealthcareService the parameters are scoped to |
url | Url of the SchedulingParameters sub-extension to remove, for example |
Returns:
T
A cloned Schedule without the matching parameter