ISPatientOrCaseAuditDetail.AccessedBy

Description

The person who accessed the patient's Medical Record or Case.

Syntax

object.AccessedBy

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

Return Value

int

Example

Display the number of the patient audit details loaded on the basis of the selected filter and some information about them.

Dim aPatient
Dim aFilter 
Dim aPatientAuditDetail
Dim aPatientAuditDetails
Dim aProvider
Dim aMessage 
Dim i

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreatePatientAuditFilter
aFilter.PatientId = aPatient.Id 
set aPatientAuditDetails = Profile.GetPatientAuditDetailsCollection(aFilter)

aMessage = "Patient Audit Details Count = " & Profile.GetPatientAuditDetailCount(aFilter)
for i = 0 to aPatientAuditDetails.Count - 1
  set aPatientAuditDetail = aPatientAuditDetails.Item(i)
  set aProvider = Profile.LoadProviderById(aPatientAuditDetail.AccessedBy)
  aMessage = aMessage & vbNewLine &_
    "Computer Name: " & aPatientAuditDetail.ComputerName & vbNewLine &_
    "Accessed By: " & aProvider.FullName & vbNewLine &_
    "Date: " & aPatientAuditDetail.Date & vbNewLine &_
    "Detail Description: " & aPatientAuditDetail.DetailDescription & vbNewLine &_
    "IP: " & aPatientAuditDetail.IP & vbNewLine &_
    "Master ID: " & aPatientAuditDetail.MasterID & vbNewLine &_
    "Person Info: " & aPatientAuditDetail.PersonInfo & vbNewLine &_
    "User Text: " & aPatientAuditDetail.UserText & vbNewLine 
next      
                                
Profile.MsgBox(aMessage)      
Note:

In Profile Client v8 on User Interface Accessed By can be found in Case Admin > General > Audit > Extended Case Audit > Accessed By.

Version information

Added in v7.8.0