ISApproval.DateTimeAltered

Description

The date and the time the approval was added.

Syntax

object.DateTimeAltered

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

Return Value

DateTime

Example

Display the number of the approvals loaded on the basis of the selected filter, the dates and time they were altered, the full names of the patients the approvals were created for.

Dim aPatient
Dim aFilter
Dim aApproval
Dim aApprovals
Dim aMessage
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)
  aMessage = aMessage & vbNewLine & "The approval for" & aPatient.SurnameFirstName &_
    " was altered on " & aApproval.DateTimeAltered      
next      

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Date can be found in Patient > Alter Patient > Approvals > Date or in Financial > Approvals > Approvals > Date.

Version information

Added in v7.8.0