ISProfile.GetCaseAuditCollection

Description

This function returns the case audit collection.

Syntax

object.GetCaseAuditCollection(aFilter)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aFilter In, Required
The object that defines conditions for filtering

Return Value

ISCollection

Returns the case audit collection.

Example

Display the number of the case audits loaded on the basis of the selected filter and some information about them.

Dim aFilter 
Dim aCaseAudits
Dim aCaseAudit
Dim aMessage 
Dim i

Set aFilter = Profile.CreateCaseAuditFilter
aFilter.StartDate = #09/09/2019#
set aCaseAudits = Profile.GetCaseAuditCollection(aFilter)

aMessage = "Case Audits Count = " & aCaseAudits.Count
for i = 0 to aCaseAudits.Count - 1
  set aCaseAudit = aCaseAudits.Item(i)
  aMessage = aMessage & vbNewLine &_
    "Computer Name: " & aCaseAudit.ComputerName & vbNewLine &_
    "Access Code: " & aCaseAudit.AccessCode & vbNewLine &_
    "Finished: " & aCaseAudit.Finished & vbNewLine &_
    "IP: " & aCaseAudit.IP & vbNewLine &_
    "Master ID: " & aCaseAudit.MasterID & vbNewLine &_
    "Started: " & aCaseAudit.Started & vbNewLine &_
    "User Text: " & aCaseAudit.UserText & vbNewLine 
next      

Profile.MsgBox(aMessage)         
Note:

In Profile Client v8 on User Interface Case Audits can be found in Clinical > Medical Record > Audit.

See also

Version information

Added in v7.8.0