core.clearscheduleparameter
Home > @medplum/core > clearScheduleParameter
clearScheduleParameter() function
Immutably clears one scheduling parameter a Schedule sets for a HealthcareService, dropping that calendar back to the service-level parameter of the same name. Pairs with setScheduleParameter and getScheduleParameters.
Signature:
export declare function clearScheduleParameter(schedule: Schedule, service: WithId<HealthcareService>, url: string): Schedule;
Parameters
Parameter | Type | Description |
|---|---|---|
schedule | Schedule | Schedule to update |
service | WithId<HealthcareService> | HealthcareService referenced by the parameters |
url | string | Url of the SchedulingParameters sub-extension to remove, for example |
Returns:
Schedule
A cloned Schedule without the matching parameter