Skip to content

SQL-017 Retrieve benefit payment for schedule (twin class)

Retrieves the benefit-payment row associated with a benefit schedule during payment-stop processing; identical logic to clsActiveBenefitSchedule.*

Classification

Field Value
SQL ID SQL-017
Operation type Read
Execution method Inline SQL
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsBenefitSchedule
Criteria property RetrieveSchedSQL
Lifecycle method RetrieveBenefitPayments

Parameters

Parameter Direction Type Max length Description
ClaimID Input Decimal — Claim identifier
BenefitPaymentSeqNum Input Decimal — Benefit payment sequence number

Tables

Table Access Columns used
CL_BENEFIT_PAYMENT SELECT CLAIM_ID, BENEFIT_PAYMENT_SEQ_NUM

Sample SQL

-- Retrieve benefit payment for schedule
Select CL_BENEFIT_PAYMENT.*
  From CL_BENEFIT_PAYMENT
 Where CLAIM_ID = :ClaimID
   And BENEFIT_PAYMENT_SEQ_NUM = :BenefitPaymentSeqNum

Business rules

Sources

  • SAIF.Business.Claim/clsBenefitSchedule.vb (not compiled)