Displaying a Summary of Entitlement for a Coverage Period described how the Engine can summarize the entitlement for a coverage period within a determination.
To use this feature, you must configure your Product to specify a strategy implementation to use. You must either:
When choosing a strategy implementation to use, you can either:
The Engine includes these implementations which are suitable for most products:
Display/code | Implementation Class |
---|---|
blank | curam.core.sl.infrastructure.assessment.impl. BlankDeterminationIntervalSummarizerStrategy |
Total daily monetary entitlement | curam.core.sl.infrastructure.assessment.impl. TotalDailyMonetaryEntitlementDeterminationIntervalSummarizerStrategy |
Total weekly monetary entitlement | curam.core.sl.infrastructure.assessment.impl. TotalMonthlyMonetaryEntitlementDeterminationIntervalSummarizerStrategy |
Total monthly monetary entitlement | curam.core.sl.infrastructure.assessment.impl. TotalWeeklyMonetaryEntitlementDeterminationIntervalSummarizerStrategy |
See the JavaDoc for the above classes for more details on the behavior of each strategy implementation.
If you have custom requirements not met by the implementations, you may develop your own strategy implementation(s) for use in your products as follows:
{ // Register your custom determination interval summarizer strategies final MapBinder<DETERMINATIONINTERVALSUMMARIZERSTRATEGYEntry, DeterminationIntervalSummarizerStrategy> determinationIntervalSummarizerStrategies = MapBinder .newMapBinder(binder(), DETERMINATIONINTERVALSUMMARIZERSTRATEGYEntry.class, DeterminationIntervalSummarizerStrategy.class); determinationIntervalSummarizerStrategies.addBinding( DETERMINATIONINTERVALSUMMARIZERSTRATEGYEntry.YOUR_STRATEGY).to( YourDeterminationIntervalSummarizerStrategy.class); }
(replacing YOUR_STRATEGY with the constant for your new code table code and YourDeterminationIntervalSummarizerStrategy with your strategy implementation class as appropriate)