This function returns a collection of appointments for the provider, with the specified date and at the specified place of service.
object.LoadAppointments(aDate[, aPOS = ""])
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProvider interface |
|
aDate |
In, Required | DateTime |
The date of the appointment |
aPOS |
In, Optional Default value is "" |
string |
The code of the POS for the
appointment |
Display the number of the appointments for the provider, with the specified date and at the specified place of service.
Dim aFilter
Dim aProviders, aProvider
Dim aDate
Dim aPos
Dim aMessage
Dim aLoadedAppointments
aDate = #05/25/2019#
aPos = "LONSDALE"
Set aFilter = Profile.CreateProvidersFilter
aFilter.Category = 2 'pcProvider
set aProviders = Profile.LoadProvidersByFilter(aFilter)
for each aProvider in aProviders
set aLoadedAppointments = aProvider.LoadAppointments(aDate, aPos)
aMessage = aMessage & vbNewLine & aProvider.FullName & " has " &_
aLoadedAppointments.Count & " linked appointment(s)"
next
Profile.MsgBox (aMessage)
In Profile Client v8 on User Interface Appointments for the selected provider can be found in
.