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

# SQL-067: clsMedicalCondition

This statement supports `clsMedicalCondition` by executing a Read operation through inline.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-067 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsMedicalCondition` |
| **Criteria property** | `RetrieveDiagnosisCodeCountSQL` |
| **Lifecycle method** | `DiagnosisCodeIsICD9` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:DiagnosisCode` | Input | Unknown | — | Passed from clsMedicalCondition via DiagnosisCodeIsICD9. |
| `:DiagnosisVersionCode` | Input | Unknown | — | Passed from clsMedicalCondition via DiagnosisCodeIsICD9. |

## Tables

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

## Sample SQL

```sql
Select Count (*)
From CBP_DIAGNOSIS
WHERE
    CBP_DIAGNOSIS.DIAGNOSIS_CODE = :DiagnosisCode AND
    CBP_DIAGNOSIS.ICD_VERSION_CODE = :DiagnosisVersionCode
```

## Operations and processes

- [clsMedicalCondition DiagnosisCodeIsICD9](../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/clsMedicalCondition.vb`
