ISProfile.CreatePatientAuditFilter

Description

This function creates the filter for loading patient audit records.

Syntax

object.CreatePatientAuditFilter()

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

Return Value

ISPatientAuditFilter

Returns the filter for loading patient audit records.

Example

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

Dim aPatient
Dim aFilter
Dim aAuditColl
Dim aAudit 
Dim aProv
Dim aMessage 

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreatePatientAuditFilter
aFilter.PatientId = aPatient.Id
aFilter.MaxCount = 100
aFilter.StartDate = #09/24/2017#
aFilter.EndDate = #09/25/2018#

set aAuditColl = Profile.GetPatientAuditCollection(aFilter)

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

for each aAudit in aAuditColl 'ISPatientOrCaseAudit
  set aProv = Profile.LoadProviderById(aAudit.AccessedBy)

  aMessage = aMessage & vbNewLine & "---------------------------" & vbNewLine &_
    " AccessCode: '" & aAudit.AccessCode & "'" & vbNewLine &_
    " AccessedBy: " & aAudit.AccessedBy & " (" & aProv.Code & ")" & vbNewLine &_
    " AuditType: '" & aAudit.AuditType & "'" & vbNewLine &_
    " ComputerName: '" & aAudit.ComputerName & "'" & vbNewLine &_
    " Finished: '" & aAudit.Finished & "'" & vbNewLine &_
    " IP: '" & aAudit.IP & "'" & vbNewLine &_
    " MasterID: '" & aAudit.MasterID & "'" & vbNewLine &_
    " Started: '" & aAudit.Started & "'" & vbNewLine &_
    " UserText: '" & aAudit.UserText & "'" & vbNewLine &_
    " ValidateHash: '" & aAudit.ValidateHash & "'"                                          
next

Profile.MsgBox(aMessage)  
Note:

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

Version information

Added in v7.8.0