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 | 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].
// 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.
-- 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¶
Business rules¶
- SD-BR-041 Latest claim status falls back to WCD status when no history
- SD-BR-042 Compensability status mapping
- SD-BR-043 Original acceptance requires request type I with decision A
Sources¶
Data/SAIF.Data/Queries/Claims/ClaimQueryProvider.cs:283