---
title: "SQL-062: ClaimQueryProvider.GetClaimRequestDecisions"
summary: Read operation for `ClaimQueryProvider.GetClaimRequestDecisions`
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# SQL-062: ClaimQueryProvider.GetClaimRequestDecisions

This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by `ClaimQueryProvider.GetClaimRequestDecisions`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-062 |
| **Operation type** | Read |
| **Execution method** | ORM (NHibernate LINQ) |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | N/A (ORM-generated) |
| **Business object** | `ClaimQueryProvider` |
| **Criteria property** | N/A — ORM |
| **Lifecycle method** | `GetClaimRequestDecisions` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `claimId` | Input | long | N/A | Method argument of `ClaimQueryProvider.GetClaimRequestDecisions` bound into the ORM expression; NHibernate generates the bind variable at runtime |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CL_CLAIM_REQUEST_DECISION](../database-tables.md#cl_claim_request_decision) | SELECT (never executed) | CLAIM_ID, PRIMARY_KEY_SEQ_NUM, REQUEST_DATE, REQUEST_DENIAL_REASON_CODE, REQUEST_DECISION_EFF_DATE, UPDATE_DATE, UPDATE_USER, UPDATE_NUM, REQUEST_DECISION_CODE, REQUEST_TYPE_CODE |

## LINQ statement

Source: `Data/SAIF.Data/Queries/Claims/ClaimQueryProvider.cs:283-284`, in `GetClaimRequestDecisions(long claimId)`, which is marked `[Obsolete]`.

```csharp
// Data/SAIF.Data/Queries/Claims/ClaimQueryProvider.cs:282
throw new Exception("Not Implemented yet for GW. Use GetWcdStatusHistory");
var repo = Factory.GetRepository<ClaimRequestDecision>();
return repo.Query().Where(x => x.ClaimId == claimId).OrderBy(x => x.SubId).ToList();
```

## Sample SQL

> **Inferred SQL:** This SQL was inferred from the LINQ statement above and the NHibernate mappings. It is not concrete SQL from source code; NHibernate generates the executed statement at runtime, so aliases, column order, join syntax, and bind-parameter names may differ.

```sql
-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
-- Unreachable: the method throws at ClaimQueryProvider.cs:282 before this statement
SELECT
  CCRD.CLAIM_ID,
  CCRD.PRIMARY_KEY_SEQ_NUM,
  CCRD.REQUEST_DATE,
  CCRD.REQUEST_DENIAL_REASON_CODE,
  CCRD.REQUEST_DECISION_EFF_DATE,
  CCRD.UPDATE_DATE,
  CCRD.UPDATE_USER,
  CCRD.UPDATE_NUM,
  CCRD.REQUEST_DECISION_CODE,
  CCRD.REQUEST_TYPE_CODE
FROM CL_CLAIM_REQUEST_DECISION CCRD
WHERE CCRD.CLAIM_ID = :claimId
ORDER BY CCRD.PRIMARY_KEY_SEQ_NUM
```

Translation notes:
- This is dead code: the unconditional `throw` at `ClaimQueryProvider.cs:282` means no SQL is ever issued. The replacement, `GetWcdStatusHistory`, calls the Guidewire API.

## Operations and processes

- [Claim status and compensability](../operations/claim-status-and-compensability.md)

## Business rules

- [SD-BR-041 Latest claim status falls back to WCD status when no history](../business-rules.md#sd-br-041-latest-claim-status-falls-back-to-wcd-status-when-no-history)
- [SD-BR-042 Compensability status mapping](../business-rules.md#sd-br-042-compensability-status-mapping)
- [SD-BR-043 Original acceptance requires request type I with decision A](../business-rules.md#sd-br-043-original-acceptance-requires-request-type-i-with-decision-a)

## Sources
- `Data/SAIF.Data/Queries/Claims/ClaimQueryProvider.cs:283`
