This function adds a new appointment.
object.CreateAppointment()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
Add a new appointment and display the patient it was booked for, the date of the appointment and the provider it is assigned to.
Dim aPatient
Dim aAppointment
Dim aProviderName
Dim aMessage
Set aPatient = Profile.SelectPatient
set aAppointment = Profile.CreateAppointment
aAppointment.BookTime = #09/28/2018#
aAppointment.ProviderID = Profile.CurrentUserId
aAppointment.PosID = Profile.CurrentPOSId
aAppointment.PatientId = aPatient.ID
aAppointment.Save
aMessage = vbNewLine & "The appointment with " & aAppointment.ProviderName &_
" was booked for " & aPatient.SurnameFirstName & " on " & aAppointment.BookTime
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Appointments can be found in
or in .