Skip to main content

core.clearscheduleparameter

Home > @medplum/core > clearScheduleParameter

clearScheduleParameter() function

Warning: This API is now obsolete.

Use clearScheduleSchedulingParameter() instead.

Immutably clears one scheduling parameter a Schedule overrides for a HealthcareService.

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 the parameters are scoped to

url

string

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

Returns:

Schedule

A cloned Schedule without the matching parameter