Skip to content

SQL-077: Update Provider M C O Membership

Updates an existing provider m c o membership record in Oracle.

Classification

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

Parameters

Parameter Direction Type Max length Description
:NewPatientsFlag Input String 1 Value from NewPatientsFlag
:DirectoryFlag Input String 1 Value from DirectoryFlag
:AdminFeeFlag Input String 1 Value from AdminFeeFlag
:ExpDate Input clsSmartDate N/A Value from m_ExpDate
:AdminFeeRate Input clsSmartDecimal N/A Value from m_AdminFeeRate
:RatePtOtSt Input clsSmartDecimal N/A Value from m_RatePtOtSt
:RateRad Input clsSmartDecimal N/A Value from m_RateRad
:RateWcCtc Input clsSmartDecimal N/A Value from m_RateWcCtc
:RateAsc Input clsSmartDecimal N/A Value from m_RateAsc
:UpdateUser Input String 30 Value from UpdateUser
:UpdateNum Input Decimal N/A Value from UpdateNum
:UpdateDate Input Date N/A Value from UpdateDate
:ProviderLocationSeqNum Input Decimal N/A Value from ProviderLocationSeqNum
:MCOPlanID Input String 2 Value from MCOPlanID
:EffDate Input Date N/A Value from EffDate
:OriginalMCOPlanID Input String 2 Value from m_OriginalMCOPlanID
:OriginalEffDate Input Date N/A Value from m_OriginalEffDate

Tables

Table Access Columns used
MCO_PROVIDER UPDATE See business-object criteria for key columns.

Sample SQL

Update MCO_PROVIDER  Set MCO_PLAN_ID = :MCOPlanID, PROVIDER_LOCATION_SEQ_NUM = :ProviderLocationSeqNum, EFF_DATE = :EffDate, EXP_DATE = :ExpDate, NEW_PATIENTS_FLAG = :NewPatientsFlag, DIRECTORY_FLAG = :DirectoryFlag, ADMIN_FEE_RATE = :AdminFeeRate, ADMIN_FEE_FLAG = :AdminFeeFlag, UPDATE_USER = :UpdateUser, UPDATE_NUM = UPDATE_NUM + 1, UPDATE_DATE = :UpdateDate, RATE_PT_OT_ST = :RatePtOtSt, RATE_RAD = :RateRad, RATE_WC_CTC = :RateWcCtc, RATE_ASC = :RateAsc  Where MCO_PROVIDER.PROVIDER_LOCATION_SEQ_NUM = :ProviderLocationSeqNum and MCO_PROVIDER.MCO_PLAN_ID = :OriginalMCOPlanID  and MCO_PROVIDER.EFF_DATE = :OriginalEffDate and UPDATE_NUM = :UpdateNum

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

Sources

  • Business\SAIF.Business.Provider\clsProviderMCOMembership.vb