ISProfile.GetPatientAuditDetailsCollection

Description

This function returns the collection of the patient audit records loaded on the basis of the selected filter.

Syntax

object.GetPatientAuditDetailsCollection(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 collection of the patient audit records loaded on the basis of the selected filter.

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.

See also

Version information

Added in v7.8.0