ISPatientInfoViewAudit.ValidateHash

Description

This function checks whether the hash of the patient view audit record is valid.

Syntax

object.ValidateHash()

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

Return Value

TSHashValidationResult

Example

Display the number of the patient audit records loaded on the basis of the selected filter, the number of Info Views Audit Items in each audit record, their description and validation.

Dim aPatient
Dim aFilter
Dim aAuditColl
Dim aAudit 
Dim aViewsAuditColl
Dim aViewAudit
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/23/2019#

set aAuditColl = Profile.GetPatientInfoAuditCollection(aFilter)

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

'ISPatientInfoViewAudit, TSPatientOrPayerCentreView
for i = 0 to aAuditColl.Count - 1 
  set aAudit = aAuditColl.Item(i)
  set aViewsAuditColl = aAudit.LoadViewsAudit  
  
  aMessage = aMessage & vbNewLine &_
     "----------------- " & aViewsAuditColl.Count &_ 
     " View Items -----------------" & vbNewLine &_
     "(" & aAudit.Started & " - " & aAudit.Finished & ")" & vbNewLine 

  for j = 0 to aViewsAuditColl.Count - 1
    set aViewAudit = aViewsAuditColl.Item(j)
    aMessage = aMessage &_ 
     "   - " & aViewAudit.Description & " " & aViewAudit.ValidateHash & vbNewLine  
  next                                          
next
                                 
Profile.MsgBox(aMessage)  
Note:

Version information

Added in v8.4.0