ISPatientAuditFilter.MaxCount

Description

This filter is used to load the maximum number of the patient audit records. The maximum number is determined by the user.

Syntax

object.MaxCount

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

Return Value

int

Example

Display the number of the patient audit records loaded on the basis of the selected filter and some information they contain.

Dim aPatient
Dim aFilter
Dim aAuditColl
Dim aAudit 
Dim aProvider 
Dim aMessage 

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreatePatientAuditFilter
aFilter.PatientId = aPatient.Id
aFilter.MaxCount = 100
aFilter.StartDate = #01/01/2019#
aFilter.EndDate = #01/01/2020#

set aAuditColl = Profile.GetPatientAuditCollection(aFilter)

aMessage = "Audit Collection Items count = " & aAuditColl.Count

for each aAudit in aAuditColl 'ISPatientOrCaseAudit
  set aProvider = Profile.LoadProviderById(aAudit.AccessedBy)
  aMessage = aMessage & vbNewLine & "---------------------------" & vbNewLine &_
    " Accessed By: " & aProvider.FullName & vbNewLine &_
    " Computer Name: '" & aAudit.ComputerName & "'" & vbNewLine &_
    " Started: " & aAudit.Started & vbNewLine &_
    " Finished: " & aAudit.Finished & vbNewLine &_
    " IP: " & aAudit.IP                                          
next

Profile.MsgBox(aMessage)   
Note:

Version information

Added in v7.8.0