Calendar Create

Overview #

This allows developers to create calendars for providers in Canvas. Calendars can be either Clinic or Administrative type and can optionally be associated with a location.

from canvas_sdk.effects.calendar import Calendar, CalendarType

Calendar(
   provider="provider-uuid",
   type=CalendarType.Clinic,
   location="location-uuid",
   description="Primary clinic calendar"
).create()

Structure #

CalendarType #

An enumeration of calendar types:

ValueDescription
ClinicCalendar for clinical appointments
AdministrativeCalendar for administrative tasks

Calendar #

A Calendar effect consists of the following properties:

Attributes #

AttributeTypeDescription
idstr \| UUID \| NoneOptional unique identifier for the calendar.
providerstr \| UUIDThe provider UUID
typeCalendarTypeThe type of calendar - either CalendarType.Clinic or CalendarType.Administrative
locationstr \| UUID \| Nonelocation UUID to associate with the calendar.
descriptionstr \| Nonedescription of the calendar’s purpose.