ISProfile.CreateAppointmentFilter

Description

This function creates the filter for loading appointments.

Syntax

object.CreateAppointmentFilter()

Part Attribute Type Description
object Required
The object always implements the ISProfile interface

Return Value

ISAppointmentFilter

Returns the filter for loading appointments

Example

Display the appointments loaded on the basis of the selected filter and the time they were booked.

Dim aPatient
Dim aFilter
Dim aAppointment
Dim aAppointments
Dim aMessage

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateAppointmentFilter
aFilter.PatientID = aPatient.ID
set aAppointments = Profile.LoadAppointments(aFilter)

aMessage = "Appointments Count = " & aAppointments.Count
for i = 0 to aAppointments.Count - 1
  set aAppointment = aAppointments.Item(i)
  aMessage = aMessage & vbNewLine & "The appointment was booked on " &_
    aAppointment.BookTime
next      

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Appointments can be found in Special > Appointments or in Patient > Alter Patient > Appointments.

Version information

Added in v7.8.0