ISApproval.ID

Description

ID of the approval.

Syntax

object.ID

Part Attribute Type Description
object Required
The object always implements the ISApproval interface
Restriction: This property is readonly.

Return Value

int

Example

Display the number of the approvals loaded on the basis of the selected filter and some information about them, including their IDs.

Dim aPatient
Dim aFilter
Dim aApproval
Dim aApprovals
Dim aMessage
Dim aApp
Dim i

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateApprovalsFilter
aFilter.Patient = aPatient
set aApprovals = Profile.LoadApprovals(aFilter)

aMessage = "Approvals Count = " & aApprovals.Count
for i = 0 to aApprovals.Count - 1
  set aApproval = aApprovals.Item(i)
  set aApp = Profile.LoadApproval(aApproval.ID)
  aMessage = aMessage & vbNewLine & "The approval '" & aApp.Description & "' (ID : " &_
    aApp.ID & ") for " & aPatient.SurnameFirstName & " was added on " & aApproval.DateTimeAdded
next      

Profile.MsgBox(aMessage)           
Note:

In Profile Client v8 on User Interface ID cannot be found, but Approvals can be found in Patient > Alter Patient > Approvals or in Financial > Approvals > Approvals.

Version information

Added in v7.8.0