CER Editor reference

The Legislation Change element provides a graphical representation of the legislation Change expression. It is accessed from the Business Logic pallet.

The steps below describe how to implement the logic described in Example. For brevity, some steps (such as the best practice of creating description rule attributes) are omitted.

Note: For brevity and clarity, the cut-off rates are "hard-coded" into this example.

A production-quality rule set would instead externalize these rates using Cúram rate tables. See rate for further details.

Create a Person rule class

Create a rule class named Person, and add the following attributes:

Note: No derivations will be given for the preTaxIncomeTimeline and postTaxIncomeTimeline attributes in this example. These attributes are assumed to be populated from an outside source (such as evidence).

Implement legislation change logic

Implement the derivation of isEligibleTimeline to take into account the three eras of legislation: