core.getschedulingtimezone | Medplum
getSchedulingTimezone() function
Resolves the timezone used by scheduling in server priority order: the Schedule's parameters for the service, then the service's own parameters, then the actor's standard FHIR timezone extension.
Signature:
export declare function getSchedulingTimezone(service: WithId<HealthcareService>, schedule?: Schedule, actor?: Resource): string | undefined;
Parameters
| Parameter | Type | Description |
|---|---|---|
| service | WithId |
HealthcareService whose parameters may define a timezone |
| schedule | Schedule | (Optional) Schedule whose parameters may define a timezone. Omit to resolve the service's own timezone, as when the service default hours are being read on their own rather than through a particular calendar. |
| actor | Resource | (Optional) Optional Schedule actor used as a timezone fallback |
Returns:
string | undefined
The resolved IANA timezone identifier, if present