RATE

Retrieves a rate based on parameter criteria.

Note: The rule can list more criteria than needed for a specific instance. The system will only use those criteria that are valid for the RateDescription given. Using more criteria than needed can be used to create a reusable function that calls RATE. Make sure to include in the RateCriteria list all or the criteria for all RateTables that will be using the RATE call.

 

RATE: Elements and Attributes
TYPE=RATE
Element Attributes Parent Element Description Element/Attribute Value

<MathVariable>

 

 

 

 

     

VARIABLENAME

 

Required

Literal string

TYPE

 

Required:  

Identifies the type of the MathVariable.

RATE

DATATYPE

 

Required

DECIMAL

ROUND  

Optional when DATATYPE="DECIMAL"

Integer

DEFAULT  

Optional

String

LOG  

Optional

YES

CLEARVALUE

 

Optional Element

.

Value: Yes / No

Default Value: No

Yes: The value of the math variable will be deleted after the execution of all the Attached Rules at the end of activity processing and will not be visible on the Math tab in the Activity details screen.

No: The value of the math variable will be retained after activity processing and will be displayed in the Math tab in the Activity details screen

<Parameters>

 

   

<RateDescription>

 

 

String

This is the RATEDESCRIPTION from AsRate, for the table to use to retrieve rates.

 

<EffectiveDate>

 

 

Activity:EffectiveDate

Effective date (like Activity effective date), for which the rate retrieval is to take place.

 

<ActiveDate>

 

 

Date

Rate effective date for the table being retrieved.

 

<RateCriteria>

 

 

 

String

The MathVariable previously defined that holds the value of the Criteria (Like 01 for Gender, or 03 for Risk).

 

NAME

 

Required, repeatable

The specific instance of Criteria given in AsRateGroup (the actual instance such as Gender, Tobacco, Risk, etc. It is not the heading of Criteria1, Criteria2, etc.)

String

XML Schema

<!-- TYPE="RATE" -->
<!-- ROUND="[Integer]" is an optional attribute to be used when DATATYPE="DECIMAL" -->
<!-- DEFAULT="[String]" is an optional attribute -->
<!-- LOG="YES" is an optional attribute -->
<!-- -->
<MathVariable VARIABLENAME="[String]" TYPE="RATE" DATATYPE="DECIMAL" ROUND="[Integer]" DEFAULT="[String]" LOG="Yes">
<Parameters>
<RateDescription>[String]</RateDescription>
<ActiveDate>[Date]</ActiveDate>
<EffectiveDate>[Date]</EffectiveDate>
<!-- there can be 1-to-n occurrences of the "RateCriteria" tag -->
<RateCriteria>[String]</RateCriteria>
</Parameters>
</MathVariable>

XML Example

<MathVariable VARIABLENAME="RateMV" TYPE="RATE" DATATYPE="DECIMAL">
<Parameters>
<RateDescription>RateDescriptionMV</RateDescription>
<EffectiveDate>Activity:EffectiveDate</EffectiveDate>
<ActiveDate>Activity:EffectiveDate</ActiveDate>
<RateCriteria NAME="Duration">DurationMV</RateCriteria>
<RateCriteria NAME="Gender">GenderMV</RateCriteria>
<RateCriteria NAME="Risk">RiskMV</RateCriteria>
<RateCriteria NAME="Tobacco">TobaccoMV</RateCriteria>
<RateCriteria NAME="IssueAge">IssueAgeMV</RateCriteria>
<RateCriteria NAME="Band">BandMV</RateCriteria>
</Parameters>
</MathVariable>