SQL-012: US_CLAIM_UNIT active row by claim
This SQL statement implements the US_CLAIM_UNIT active row by claim data-access path for clsClaimUnit in SAIF.Business.UnitStat. It participates in the read lifecycle handled by BeforeRetrieve / RetrieveType.ClaimID.
Classification
Field
Value
SQL ID
SQL-012
Operation type
Read
Execution method
Inline
Database
Oracle
Schema
[unqualified]**
Command type
Text
Business object
clsClaimUnit
Criteria property
RetrieveSQL
Lifecycle method
BeforeRetrieve / RetrieveType.ClaimID
Parameters
Parameter
Direction
Type
Max length
Description
:ClaimID
Input
Decimal/SmartDecimal
N/A
Claim identifier bound from the business object or criteria.
Tables
Sample SQL
Select US_CLAIM_UNIT . US_POLICY_UNIT_SEQ_NUM as PolicyUnitSeqNum ,
US_CLAIM_UNIT . CLAIM_ID as ClaimID ,
US_CLAIM_UNIT . ACTIVE_UNIT_FLAG as ActiveUnitFlag ,
US_CLAIM_UNIT . VALUE_CODE as ValueCode ,
US_CLAIM_UNIT . UPDATE_USER as UpdateUser ,
US_CLAIM_UNIT . UPDATE_DATE as UpdateDate ,
US_CLAIM_UNIT . UPDATE_NUM as UpdateNumber ,
US_CLAIM_UNIT . REPORTED_FATAL_FLAG as ReportedFatalFlag ,
US_CLAIM_UNIT . REPORTED_CLOSED_FLAG as ReportedClosedFlag ,
US_CLAIM_UNIT . FINAL_DENIAL_DATE as FinalDenialDate ,
US_CLAIM_UNIT . PREFERRED_WORKER_FLAG as PreferredWorkerFlag
From US_CLAIM_UNIT
Where US_CLAIM_UNIT . CLAIM_ID = : ClaimID
and US_CLAIM_UNIT . ACTIVE_UNIT_FLAG = 'Y'
Operations and processes
Business rules
Note: Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources
Business\SAIF.Business.UnitStat\clsClaimUnit.vb