---
title: "SQL-011: clsConditionDecision"
summary: Create statement for clsConditionDecision.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.Maintenance
reference_type: package
---

# SQL-011: clsConditionDecision

This statement supports `clsConditionDecision` by executing a Create operation through inline.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-011 |
| **Operation type** | Create |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsConditionDecision` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | `BeforeInsert` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:UpdateUser` | Input | Unknown | — | Passed from clsConditionDecision via BeforeInsert. |
| `:MedicalConditionID` | Input | Unknown | — | Passed from clsConditionDecision via BeforeInsert. |
| `:DenialStatusEffDate` | Input | Unknown | — | Passed from clsConditionDecision via BeforeInsert. |
| `:DenialStatusCode` | Input | Unknown | — | Passed from clsConditionDecision via BeforeInsert. |
| `:DenialReasonCode` | Input | Unknown | — | Passed from clsConditionDecision via BeforeInsert. |
| `:DenialFinalReasonCode` | Input | Unknown | — | Passed from clsConditionDecision via BeforeInsert. |
| `:DecisionDate` | Input | Unknown | — | Passed from clsConditionDecision via BeforeInsert. |
| `:DecisionCode` | Input | Unknown | — | Passed from clsConditionDecision via BeforeInsert. |
| `:ClaimID` | Input | Unknown | — | Passed from clsConditionDecision via BeforeInsert. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CL_COND_COMPENSABILITY_DECISN](../database-tables.md#cl_cond_compensability_decisn) | Create | Not enumerated directly in the stage findings.** |
| [CL_COND_COMPENSABILITY_DECISN](../database-tables.md#cl_cond_compensability_decisn) | Create | Not enumerated directly in the stage findings.** |

## Sample SQL

```sql
Insert into CL_COND_COMPENSABILITY_DECISN (
    UPDATE_USER,
    UPDATE_NUM,
    UPDATE_DATE,
    MEDICAL_CONDITION_ID,
    DENIAL_STATUS_EFF_DATE,
    DENIAL_STATUS_CODE,
    DENIAL_REASON_CODE,
    DENIAL_FINAL_REASON_CODE,
    COND_COMP_DECISION_ID,
    COND_COMP_DECISION_DATE,
    COND_COMP_DECISION_CODE,
    CLAIM_ID
) VALUES (
    :UpdateUser,
    0,
    SYSDATE,
    :MedicalConditionID,
    TRUNC(:DenialStatusEffDate),
    :DenialStatusCode,
    :DenialReasonCode,
    :DenialFinalReasonCode,
    (select nvl(MAX(COND_COMP_DECISION_ID),0) + 1 from cl_cond_compensability_decisn where claim_id = :ClaimID and medical_condition_id= :MedicalConditionID),
    TRUNC(:DecisionDate),
    :DecisionCode,
    :ClaimID
)
```

## Operations and processes

- [clsConditionDecision BeforeInsert](../operations/medical-condition-management.md)

> **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

- `Business/SAIF.Business.Claim.Maintenance/clsConditionDecision.vb`
