---
title: SQL-024: Insert Provider Identity
summary: Inserts a new provider identity record into Oracle.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Provider
reference_type: package
---

# SQL-024: Insert Provider Identity

Inserts a new provider identity record into Oracle.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :ProviderLocationSeqNum | Input | DECIMAL | N/A | Value from `ProviderLocationSeqNum` |
| :ProviderIdentityCode | Input | STRING | 5 | Value from `ProviderIdentityCode` |
| :IdentityValue | Input | Unspecified | 16 | Value from `IdentityValue.ToUpper` |
| :IdentityName | Input | clsSmartSTRING | 20 | Value from `m_IdentityName` |
| :ProviderIdentitySeqNum | Input | DECIMAL | N/A | Value from `ProviderIdentitySeqNum` |
| :UpdateUser | Input | STRING | 30 | Value from `UpdateUser` |
| :UpdateNum | Input | DECIMAL | N/A | Value from `UpdateNum` |
| :UpdateDate | Input | DATE | N/A | Value from `UpdateDate` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PROVIDER_IDENTITY](../database-tables.md#provider_identity) | INSERT | See business-object criteria for key columns. |

## Sample SQL

```sql
Insert into PROVIDER_IDENTITY ( PROVIDER_IDENTITY_SEQ_NUM, PROVIDER_LOCATION_SEQ_NUM, PROVIDER_IDENTITY_CODE, IDENTITY_VALUE, IDENTITY_NAME, UPDATE_USER, UPDATE_NUM, UPDATE_DATE ) Values ( :ProviderIdentitySeqNum, :ProviderLocationSeqNum, :ProviderIdentityCode, :IdentityValue, :IdentityName, :UpdateUser, :UpdateNum, :UpdateDate)
```


## Business rules
- [BR-010: National Provider ID values must be 10 digits](../business-rules.md#br-010-national-provider-id-values-must-be-10-digits)

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Provider\clsProviderIdentity.vb`
