---
title: clsMedicalRefund.clsMedicalPayment
summary: API reference for clsMedicalRefund.clsMedicalPayment.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.Payment
reference_type: package
---

# clsMedicalRefund.clsMedicalPayment

`clsMedicalRefund.clsMedicalPayment` represents a medical payment selected for refund and manages service payments, previous refunds, and bill identifiers, including validation and save behavior for the adjustment.*

## Purpose
- Tracks service payments, previous refunds, and bill identifiers for the refund workflow.*
- Validates the refund state before persisting it.*

## Context
- Namespace: `Adjustment.Refund`
- Assembly/package: `SAIF.Business.Claim.Payment`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| `ServicePayments` | `Public ReadOnly Property ServicePayments() As clsReadOnlyBusinessCollection(Of clsMedicalServicePayment)` | Returns service payments. |
| `PreviousRefunds` | `Public ReadOnly Property PreviousRefunds() As IEnumerable(Of clsBillPaymentAdjustment)` | Returns previous refunds. |
| `BillID` | `Public ReadOnly Property BillID() As Decimal` | Returns bill i d. |
| `IsMcoFee` | `Public ReadOnly Property IsMcoFee() As Boolean` | Returns is mco fee. |
| `IssueDate` | `Public ReadOnly Property IssueDate() As Date` | Returns issue date. |
| `PayeeName` | `Public ReadOnly Property PayeeName() As String` | Returns payee name. |
| `AmountPaid` | `Public ReadOnly Property AmountPaid() As Decimal` | Returns amount paid. |
| `RefundAmount` | `Public Property RefundAmount() As Decimal` | Gets or sets refund amount. |
| `IsValid` | `Public Overrides ReadOnly Property IsValid() As Boolean` | Returns is valid. |

## Inherited public members

| Member | Signature | Purpose | Origin |
| --- | --- | --- | --- |
| `MyGuid` | `Public ReadOnly Property MyGuid() As String` | Returns the object's generated GUID identifier.† | `Legacy\BusinessObjectFramework` — `clsBusinessBase` |
| `IsNew` | `Public ReadOnly Property IsNew() As Boolean` | Indicates whether the object represents unsaved data.† | `Legacy\BusinessObjectFramework` — `clsBusinessBase` |
| `IsDeleted` | `Public ReadOnly Property IsDeleted() As Boolean` | Indicates whether the object has been marked for deletion.† | `Legacy\BusinessObjectFramework` — `clsBusinessBase` |
| `SetValueOnChange` | `Public Function SetValueOnChange(Of T)(ByRef inFieldValue As T, ByVal inSetValue As T, Optional ByVal inMarkDirty As Boolean = True) As Boolean` | Assigns a new field value only when it differs and optionally marks the object dirty.† | `Legacy\BusinessObjectFramework` — `clsBusinessBase` |
| `Rules` | `Public ReadOnly Property Rules() As clsRulesManager` | Exposes the BOF rules manager for validation and messages.† | `Legacy\BusinessObjectFramework` — `clsBusinessBase` |
| `Save` | `Public Overridable Function Save() As Boolean` | Persists the object through the BOF save pipeline.† | `Legacy\BusinessObjectFramework` — `clsBusinessBase` |
| `SaveChild` | `Public Overridable Function SaveChild() As Boolean` | Persists the object as a BOF child object.† | `Legacy\BusinessObjectFramework` — `clsBusinessBase` |
| `ToXml` | `Public Function ToXml() As String` | Returns the object's XML representation using the configured default tag name.† | `Legacy\BusinessObjectFramework` — `clsBusinessBase` |

## Behavioral notes
- This type is documented from its source declaration.
- The type participates in the `clsBusinessBase` inheritance path used by `SAIF.Business.Claim.Payment`.

## Constraints and usage notes
- Consumers should rely on the public members and BOF lifecycle patterns visible in the source file.

> **Note:** Statements marked with `†` are derived from dependency library documentation via the Legends CLI.

## Sources
- `Business\SAIF.Business.Claim.Payment\Adjustments\Refunds\clsMedicalRefund.vb`
- `Legacy\BusinessObjectFramework\clsBusinessBase.vb`
