---
title: "SQL-019: Pk82033_ThirdParty.companion_claim_insert"
summary: Create operation used by `Criteria`.
status: draft
owner: SAIF
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.ThirdParty
reference_type: package
---

# SQL-019: Pk82033_ThirdParty.companion_claim_insert

This SQL artifact supports ``Criteria`` by executing a create operation through StoredProc.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-019 |
| **Operation type** | Create |
| **Execution method** | StoredProc |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | ``Criteria`` |
| **Criteria property** | ``insertsql`` |
| **Lifecycle method** | ``Criteria create`` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:ClaimID` | Input | Number | N/A | Source value `m_CompanionClaimID` |
| `:CreateUser` | Input | String | 30 | Source value `CreateUser` |
| `:CaseSeqNum` | Input | Number | N/A | Source value `CaseSeqNum` |
| `:CompanionSeqNum` | Input | Number | N/A | Source value `CompanionSeqNum` |
| `:RowsAffected` | ReturnValue | Return value | N/A | Source value `m_RowsAffected` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [THRDPARTY_COMPANION_CLAIM](../database-tables.md#thrdparty_companion_claim) | CREATE | See sample SQL. |
| [THRDPARTY_ADJUSTER_CODE](../database-tables.md#thrdparty_adjuster_code) | CREATE | See sample SQL. |
| [v_emplid](../database-tables.md#v_emplid) | CREATE | See sample SQL. |

## Sample SQL

```sql
BEGIN Pk82033_ThirdParty.companion_claim_insert(:ClaimID, :CreateUser, :CaseSeqNum, :CompanionSeqNum, :RowsAffected); END;
-- Stored procedure body retrieved from Oracle package WCIS_DBA.Pk82033_ThirdParty.
```

> **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.ThirdParty\clsThrdpartyCompanionClaim.vb`
