---
title: "SQL-007: Create operation"
summary: SQL-007 documentation for SAIF.Business.Claim.Bill.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.Bill
reference_type: package
---

# SQL-007: Create operation

This document records the SQL used by `Criteria` in `SAIF.Business.Claim.Bill`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:BillID` | Input | Number | N/A | Binds BillID from active calling code or Oracle signature. |
| `:DiagnosisCode` | Input | String | N/A | Binds DiagnosisCode from active calling code or Oracle signature. |
| `:DiagnosisTypeCode` | Input | String | N/A | Binds DiagnosisTypeCode from active calling code or Oracle signature. |
| `:UpdateUser` | Input | Date | N/A | Binds UpdateUser from active calling code or Oracle signature. |
| `:UpdateDate` | Input | Date | N/A | Binds UpdateDate from active calling code or Oracle signature. |
| `:DiagnosisPointerCode` | Input | String | N/A | Binds DiagnosisPointerCode from active calling code or Oracle signature. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CBP_BILL_DIAGNOSIS](../database-tables.md#cbp_bill_diagnosis) | CREATE | B, BILL_ID, C, CBP_BILL_DIAGNOSIS, D, DIAGNOSIS_CODE, DIAGNOSIS_POINTER_CODE, DIAGNOSIS_TYPE_CODE, I, ID, P, T |

## Sample SQL

```sql
Insert into CBP_BILL_DIAGNOSIS ( BILL_ID, DIAGNOSIS_CODE, DIAGNOSIS_TYPE_CODE, UPDATE_USER, UPDATE_NUM, UPDATE_DATE, DIAGNOSIS_POINTER_CODE ) 
VALUES ( :BillID, :DiagnosisCode, :DiagnosisTypeCode, :UpdateUser, 0, :UpdateDate, :DiagnosisPointerCode)
```

> **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.Bill\Core\clsBillDiagnosis.vb`
