Is your feature request related to a problem? Please describe.
Currently, the enrollment flagging logic uses a one-size-fits-all approach for determining member eligibility based on claim dates. However, different payer types have different rules for when eligibility should be evaluated. Specifically, traditional Medicare (from CCLF data) requires eligibility to be based on the claim end date, while Commercial and Medicare Advantage populations should use the claim start date. This difference is critical for MSSP and ACO REACH programs where financial risk and member attribution depend on accurate eligibility determination.
Describe the solution you'd like
Enhance the enrollment flagging logic to use payer_type column values to determine which date to use for eligibility checks:
- Medicare (traditional/CCLF): Use claim end date (
claim_end_date) for eligibility determination
- Commercial: Use claim start date (
claim_start_date) for eligibility determination
- Medicare Advantage: Use claim start date (
claim_start_date) for eligibility determination
- Medicaid: (I'm not sure which of the two is used here, might not be standard)
- Self-insured: Use claim start date (
claim_start_date) for eligibility determination
For example, a claim running from Jan 14, 2025 to Feb 15, 2025 where a member has eligibility only in January would:
- Traditional Medicare: No eligibility/accrual (based on Feb end date)
- Commercial/MA: Has eligibility/accrual (based on Jan start date)
Describe alternatives you've considered
- Adding a separate configuration variable to control date logic instead of using payer_type
- Creating separate models for each payer type
- Adding the logic as a post-processing step rather than in the core enrollment flagging
Additional context
This is essential for accurate financial reporting in value-based care contracts, particularly MSSP and ACO REACH programs where CMS has specific rules about member eligibility timing that differ from commercial contracts.
Is your feature request related to a problem? Please describe.
Currently, the enrollment flagging logic uses a one-size-fits-all approach for determining member eligibility based on claim dates. However, different payer types have different rules for when eligibility should be evaluated. Specifically, traditional Medicare (from CCLF data) requires eligibility to be based on the claim end date, while Commercial and Medicare Advantage populations should use the claim start date. This difference is critical for MSSP and ACO REACH programs where financial risk and member attribution depend on accurate eligibility determination.
Describe the solution you'd like
Enhance the enrollment flagging logic to use
payer_typecolumn values to determine which date to use for eligibility checks:claim_end_date) for eligibility determinationclaim_start_date) for eligibility determinationclaim_start_date) for eligibility determinationclaim_start_date) for eligibility determinationFor example, a claim running from Jan 14, 2025 to Feb 15, 2025 where a member has eligibility only in January would:
Describe alternatives you've considered
Additional context
This is essential for accurate financial reporting in value-based care contracts, particularly MSSP and ACO REACH programs where CMS has specific rules about member eligibility timing that differ from commercial contracts.