ISAppointment.EarlierRequestType

Description

This property defines the condition of the request about the earlier appointment with the same provider in case it becomes available for booking.

Syntax

object.EarlierRequestType

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

Return Value

TSEarlierRequestType

Example

Display the type of the request about the earlier appointment.

Dim aPatient
Dim aProvider
Dim aFilter 
Dim aAppointments, aAppointment
Dim aEarlierRequest
Dim aMessage

Set aPatient = Profile.SelectPatient
set aProvider = Profile.LoadProvider("PROV")
set aFilter = Profile.CreateAppointmentFilter

aFilter.ProviderID = aProvider.Id
aFilter.PatientID = aPatient.ID
aFilter.DateFrom = #01/01/2019#
aFilter.DateTo = #01/01/2020#

set aAppointments = Profile.LoadAppointments(aFilter)

for i = 0 to aAppointments.Count - 1 
  set aAppointment = aAppointments.Item(i)
  aEarlierRequest = aAppointment.EarlierRequestType

  aMessage = aMessage & vbNewlIne &_
    aAppointment.BookTime & vbTab
    
  Select Case aEarlierRequest
    Case 2 
      aMessage =  aMessage & "Any Pos"
    Case 1 
      aMessage =  aMessage & "Same Pos"
    Case Else
      aMessage =  aMessage & "None"
  End Select
next 'i  

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Request Type can be found in Appointment Window > Appointment > Request Earlier.

Version information

Added in v8.5.0