ISObjectAudit.ClassID

Description

Class IDs of the objects audit records from each view audit record of the patient form, medical record or case.

Syntax

object.ClassID

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

Return Value

int

Example

Display the Views Audit records in each patient audit item and the Objects Audit records in each Views Audit record with their class IDs.

Dim aPatient
Dim aFilter
Dim aAuditColl
Dim aAudit
Dim aViewsAuditColl 
Dim aViewAudit
Dim aObjectAudit
Dim aMessage 

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreatePatientAuditFilter
aFilter.PatientId = aPatient.Id
aFilter.MaxCount = 10
aFilter.StartDate = #03/20/2019#
aFilter.EndDate = #03/21/2019#

set aAuditColl = Profile.GetPatientAuditCollection(aFilter)

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

for i = 0 to aAuditColl.Count - 1 
  set aAudit  = aAuditColl.Item(i)
  set aViewsAuditColl = aAudit.LoadViewsAudit 

  aMessage = aMessage & vbNewLine &_
     "----------------- " & aViewsAuditColl.Count &_ 
     " Audit View Items -----------------" & vbNewLine &_
     "(" & aAudit.Started & " - " & aAudit.Finished & ")"  

  for j = 0 to aViewsAuditColl.Count - 1
    set aViewAudit = aViewsAuditColl.Item(j) 
    aMessage = aMessage & vbNewLine &_ 
      "   - " & aViewAudit.Description & " " 
           
    for k = 0 to aViewAudit.ObjectsAudit.Count - 1
      set aObjectAudit = aViewAudit.ObjectsAudit.Item(k)
      aMessage = aMessage & vbNewLine &_ 
      "       - " & aObjectAudit.Description & " (" & aObjectAudit.ClassID & ")"
          
    next        
  next                                          
next

Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface Class ID cannot be found, Objects Audit records can be found in Clinical > Medical Record > Audit, in Patient > Alter Patient > Audit or in Patient > Cases > Administrative > Audit.

Version information

Added in v7.8.0