﻿---
title: "clsAuditCompare"
summary: "API reference for clsAuditCompare."
status: draft
owner: Technical Writer
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.Bill.AutomatedAudit
reference_type: package
---

# clsAuditCompare

Compares two `clsBillAudit` snapshots and records field-level matches and differences across bill, status, audit, service, message, and adjustment data. The results can be read as the full comparison set or filtered to matching and non-matching values.

## Purpose
- Compares two bill audit objects across the major audited data groups.
- Categorizes each comparison result by the audited object type being checked.
- Exposes the full, matching, and non-matching result sets.

## Context
- Namespace: `SAIF.Business.Claim.Bill.AutomatedAudit`
- Assembly/package: `SAIF.Business.Claim.Bill.AutomatedAudit`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| CompareClass | `Enum CompareClass` | Exposes the nested enum `CompareClass`. |
| clsCompareResult | `Class clsCompareResult` | Exposes the nested class `clsCompareResult`. |
| NonMatchingValues | `ReadOnly Property NonMatchingValues As IEnumerable(Of clsCompareResult)` | Returns the NonMatchingValues value. |
| MatchingValues | `ReadOnly Property MatchingValues As IEnumerable(Of clsCompareResult)` | Returns the MatchingValues value. |
| Results | `ReadOnly Property Results As IEnumerable(Of clsCompareResult)` | Returns the Results value. |
| CompareBills | `Function CompareBills(ByVal inAudit1 As clsBillAudit, ByVal inAudit2 As clsBillAudit, Optional ByVal ForceCompare As Boolean = False) As Boolean` | Executes CompareBills and returns the result. |

## Behavioral notes
- `clsAuditCompare` is part of the documented `SAIF.Business.Claim.Bill.AutomatedAudit` public contract.
- Public members are declared in `Business\SAIF.Business.Claim.Bill.AutomatedAudit\AuditUtilities\clsAuditCompare.vb`.

## Constraints and usage notes
- Consumers should use the documented public members directly when integrating this type.

## Sources
- `Business\SAIF.Business.Claim.Bill.AutomatedAudit\AuditUtilities\clsAuditCompare.vb`
