Eligibility Manager
The eligibility manager verifies if a beneficiary is eligible for a given program. The eligibility determination can be based on data stored in OpenG2P-ng or on an external system using API calls.
g2p_programs.models.managers.eligibility_manager
provides the class BaseEligibilityManager
define
the interface for this manager. DefaultEligibilityManager
is the default implementation of this class
that should be used in most of the cases.
- class g2p_programs.models.managers.eligibility_manager.BaseEligibilityManager(*args: Any, **kwargs: Any)[source]
- enroll_eligible_registrants(program_memberships)[source]
This method is used to validate if a user match the criteria needed to be enrolled in a program. Args:
program_membership:
- Returns:
bool: True if the user match the criterias, False otherwise.