---
title: ClaimPaymentQueryProvider
summary: API reference for ClaimPaymentQueryProvider.
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# ClaimPaymentQueryProvider

Query provider exposing 2 data-access operation(s) (`GetSpecialHandlingCode`, `GetSpecialHandlingCodes`) against 1 distinct table(s); see [sql/index.md](../../sql/index.md) for the full ORM operation catalog.

## Purpose
- Provides read/write access to 1 table(s) via NHibernate `IQueryable<T>`/`GetRepository<T>()` calls documented in [sql/index.md](../../sql/index.md).
- Exposes 2 public query/command method(s) consumed by higher application layers; see [database-tables.md](../../database-tables.md) for the underlying schema.

## Context
- Namespace: `SAIF.Data.Queries.Claims`
- Assembly/package: `SAIF.Data`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| GetSpecialHandlingCodes | `List<SpecialHandlingCode> GetSpecialHandlingCodes()` | Executes an ORM query ([SQL-054](../../sql/SQL-054-claim-payment-query-provider-get-special-handling-codes.md)) against [CL_PAYMENT_SPCL_HANDLING_CODE](../../database-tables.md#cl_payment_spcl_handling_code). |
| GetSpecialHandlingCode | `SpecialHandlingCode GetSpecialHandlingCode(string code)` | Executes an ORM query ([SQL-055](../../sql/SQL-055-claim-payment-query-provider-get-special-handling-code.md)) against [CL_PAYMENT_SPCL_HANDLING_CODE](../../database-tables.md#cl_payment_spcl_handling_code). |
| GetClaimCostCategoryCodes | `List<ClaimCostCategoryCode> GetClaimCostCategoryCodes()` | Retrieves claim cost category codes.* |
| GetClaimCostCategoryCode | `ClaimCostCategoryCode GetClaimCostCategoryCode(string code)` | Retrieves claim cost category code.* |
| ClaimPaymentQueryProvider(IRepositoryFactory factory) | `ClaimPaymentQueryProvider(IRepositoryFactory factory)` | Initializes a new instance, wiring the repository factory used by this provider's query methods.* |

## Behavioral notes
- Query methods build LINQ expressions over `IQueryable<T>` obtained via `Factory.GetRepository<T>()` and execute them against the underlying NHibernate session.*

## Constraints and usage notes
- Instances are constructed with an `IRepositoryFactory` and are expected to be resolved through dependency injection rather than instantiated directly.*

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Data/SAIF.Data/Queries/Claims/ClaimPaymentQueryProvider.cs`
