Skip to content

SQL-032: Criteria

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

Classification

Field Value
SQL ID SQL-032
Operation type Update
Execution method Inline
Database Oracle
Schema [unqualified]**
Command type Text
Business object Criteria
Criteria property UpdateSQL
Lifecycle method BeforeUpdate

Parameters

Parameter Direction Type Max length Description
:AuditReceiptDate Input Date N/A Binds AuditReceiptDate from active calling code or Oracle signature.
:ChargeableCostFlag Input String N/A Binds ChargeableCostFlag from active calling code or Oracle signature.
:SpecialHandlingCode Input String N/A Binds SpecialHandlingCode from active calling code or Oracle signature.
:TotalChargedAmount Input Number N/A Binds TotalChargedAmount from active calling code or Oracle signature.
:TotalAllowedAmount Input Number N/A Binds TotalAllowedAmount from active calling code or Oracle signature.
:TotalMcoAdminFeeAmount Input Number N/A Binds TotalMcoAdminFeeAmount 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.
:PrintEobFlag Input String N/A Binds PrintEobFlag from active calling code or Oracle signature.
:BillID Input Number N/A Binds BillID from active calling code or Oracle signature.
:UpdateNumber Input Date N/A Binds UpdateNumber from active calling code or Oracle signature.

Tables

Table Access Columns used
CBP_AUDIT UPDATE A, AUDIT_RECEIPT_DATE, B, BILL_ID, C, CBP_AUDIT, CHARGEABLE_COST_FLAG, D, E, F, H, ID

Sample SQL

Update CBP_AUDIT 
SET AUDIT_RECEIPT_DATE = :AuditReceiptDate, CHARGEABLE_COST_FLAG = :ChargeableCostFlag, SPECIAL_HANDLING_CODE = :SpecialHandlingCode, TOTAL_CHARGED_AMT = :TotalChargedAmount, TOTAL_ALLOWED_AMT = :TotalAllowedAmount, TOTAL_MCO_ADMIN_FEE_AMT = :TotalMcoAdminFeeAmount, UPDATE_USER = :UpdateUser, UPDATE_NUM = UPDATE_NUM + 1, UPDATE_DATE = :UpdateDate, PRINT_EOB_FLAG = :PrintEobFlag 
WHERE CBP_AUDIT.BILL_ID = :BillID 
  AND UPDATE_NUM = :UpdateNumber

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\clsAudit.vb