Retrieves the service-contract records for a provider location, ordered by effective date
descending, optionally filtered to contracts still active or expired within a caller-specified
day offset from the current date.
-- Provider service contractsSELECTPROV_SERVICE_CONTRACT_SEQ_NUMASContractID,PROVIDER_LOCATION_SEQ_NUMASProviderLocationID,MCO_PLAN_IDASMcoPlanID,EFF_DATEASEffectiveDate,EXP_DATEASExpirationDate,PURCHASE_CODEASPurchaseCode,DISCOUNT_RATEASDiscountRate,ADDITIONAL_FEE_DISCOUNT_RATEASAdditionalFeeDiscountRate,MAX_CHARGE_AMTASMaxChargeAmount,CBP_SERVICE_CODEASCBPServiceCode,SERVICE_CODEASServiceCode,SERVICE_TYPE_CODEASServiceTypeCode,CONTACT_NAMEASContactName,SERVICE_MODIFIER_CODEASServiceModifierCodeFROMPROVIDER_SERVICE_CONTRACTWHEREPROVIDER_LOCATION_SEQ_NUM=:ProviderLocationIDAND(exp_dateISNULLORexp_date>(sysdate-:Offset))ORDERBYeff_dateDESC
The exp_date predicate is appended only when the caller requests the date-window filter;
inOffset defaults to 721 days.