ISAppointment.PriorityCode

Description

The priority code for the booking.

Syntax

object.PriorityCode

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

Return Value

string

Example

Display the priority code for the booking.

Dim aPatient
Dim aProvider
Dim aFilter 
Dim aAppointments
Dim aFirstAppointment
Dim aPriorityCode

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

aFilter.ProviderID = aProvider.Id
aFilter.PatientId = aPatient.Id
aFilter.DateFrom = #01/01/2018#
aFilter.DateTo = #01/01/2019#

set aAppointments = Profile.LoadAppointments(aFilter)

if aAppointments.Count > 0 then
  set aFirstAppointment = aAppointments.Item(0)
  aPriorityCode = aFirstAppointment.PriorityCode
  Profile.MsgBox(aPriorityCode)
else
  Profile.MsgBox("aAppointments.Count = 0")
end if  
Note: For options to appear in the drop-down menu they need to be added as short codes of type 'Attendance Priority' first.

In Profile Client v8 on User Interface Priority Code can be selected from the drop-down menu in Appointment Window > Attendance > Seen by field.

Version information

Added in v7.8.0