Appointment

Introduction #

The Appointment model represents a single scheduled meeting from a patient, that may be in the future or past.

Basic usage #

To get an appointment by identifier, use the get method on the Appointment model manager:

from canvas_sdk.v1.data.appointment import Appointment

appointment = Appointment.objects.get(id="f53626e4-0683-43ac-a1b7-c52815639ce2")

If you have a patient object, the appointments for a patient can be accessed with the appointments attribute on a Patient object:

from canvas_sdk.v1.data.patient import Patient

patient = Patient.objects.get(id="1eed3ea2a8d546a1b681a2a45de1d790")
appointments = patient.appointments.all()

Filtering #

Appointments can be filtered by any attribute that exists on the model.

Filtering for appointments is done with the filter method on the Appointment model manager.

By attribute #

Specify an attribute with filter to filter by that attribute:

from canvas_sdk.v1.data.appointment import Appointments , AppointmentProgressStatus

appointments = Appointment.objects.filter(status=AppointmentProgressStatus.CONFIRMED)

Attributes #

Appointment #

Field NameType
idUUID
dbidInteger
entered_in_errorCanvasUser
patientPatient
appointment_rescheduled_fromAppointment
providerStaff
start_timeDateTime
duration_minutesInteger
commentString
note_idInteger
note_type_idInteger
statusString
statusString
meeting_linkURL
telehealth_instructions_sentBoolean
locationPracticeLocation
descriptionString