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

# ServiceCodeMaintenanceQueryProvider

Query provider exposing 4 data-access operation(s) (`GetCptServices`, `GetDescriptions`, `GetFeeSchedules`, `GetServiceCode`) against 5 distinct table(s); see [sql/index.md](../../sql/index.md) for the full ORM operation catalog.

## Purpose
- Provides read/write access to 5 table(s) via NHibernate `IQueryable<T>`/`GetRepository<T>()` calls documented in [sql/index.md](../../sql/index.md).
- Exposes 4 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.Bills`
- Assembly/package: `SAIF.Data`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| GetCptServices | `IEnumerable<CbpCptService> GetCptServices(string code, string type)` | Executes an ORM query ([SQL-225](../../sql/SQL-225-service-code-maintenance-query-provider-get-cpt-services.md)) against [CBP_CPT_SERVICE](../../database-tables.md#cbp_cpt_service), [CBP_SERVICE_CODE](../../database-tables.md#cbp_service_code), [CBP_SERVICE_TYPE_CODE](../../database-tables.md#cbp_service_type_code). |
| GetDescriptions | `IEnumerable<CbpServiceDescription> GetDescriptions(string code, string type)` | Executes an ORM query ([SQL-226](../../sql/SQL-226-service-code-maintenance-query-provider-get-descriptions.md)) against [CBP_SERVICE_DESCRIPTION](../../database-tables.md#cbp_service_description), [CBP_SERVICE_CODE](../../database-tables.md#cbp_service_code), [CBP_SERVICE_TYPE_CODE](../../database-tables.md#cbp_service_type_code). |
| GetFeeSchedules | `IEnumerable<CbpServiceFee> GetFeeSchedules(string code, string type)` | Executes an ORM query ([SQL-227](../../sql/SQL-227-service-code-maintenance-query-provider-get-fee-schedules.md)) against [`CbpServiceFee` (map file not compiled; table unknown**)](../../database-tables.md#cbpservicefee). |
| GetServiceCode | `CbpServiceCode GetServiceCode(string code, string type)` | Executes an ORM query ([SQL-228](../../sql/SQL-228-service-code-maintenance-query-provider-get-service-code.md)) against [CBP_SERVICE_CODE](../../database-tables.md#cbp_service_code), [CBP_SERVICE_TYPE_CODE](../../database-tables.md#cbp_service_type_code). |
| ServiceCodeMaintenanceQueryProvider(IRepositoryFactory factory) | `ServiceCodeMaintenanceQueryProvider(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/Bills/ServiceCodeMaintenanceQueryProvider.cs`
