Predefined Methods
This section describes the pre-defined methods available per object. These pre-defined methods can be divided into two categories: methods that are available on all or many objects, called generic methods, and methods that are only available on particular objects, called specific methods.
Generic Methods
test
Executes a dynamic logic function in "unit test" mode:
-
Runs under the security context for the dynamic logic to be tested
-
The database transaction is set to "rollback only". No data can be persisted permanently.
- Availability
-
This method is available in the Dynamic Logic (Groovy script).
- Parameters
In or Out |
Type |
Description |
In |
|
The code of the dynamic logic unit to be invoked (UUT, Unit Under Test) |
In |
|
A map holding the parameters of the UUT |
Out |
|
This object holds the results of the UUT and optionally the Exception class if an error was thrown from the UUT. Attributes of this object are: . "result" . "exception" |
- Example
def result = test( "SPECIAL_BENEFIT_SELECT", [ "claim" : claim ])
Please refer to the Claims Developer Guide for the complete list of available generic methods.
Specific Methods
In this section, the methods are described that are only available on specific objects. For each method, the following information is given:
-
The purpose of the method.
-
On which object(s) the method can be called.
-
Description of the parameters.
-
An example of the usage.
getParameterValue
Gets the parameter value of a product that is defined for a parameter alias at a given point in time. If a value is defined at the parameter alias value level, then it will also return that value.
- Availability
-
This method is available on product objects.
- Parameters
In or Out | Type | Description |
---|---|---|
In |
String |
The code of the parameter alias. Mandatory. |
In |
Date |
As of date for time validity. Optional. |
Out |
List |
The parameter value list defined for the parameter alias in context of the product. Null if no parameter value is defined. |
- Example
parameterValue = product.getParameterValue("PCP_COPAY","2014-01-21")
getProductLimitRenewalPeriod
Gets the product limit renewal period of a product that is defined for a limit at a given point in time.
- Availability
-
This method is available on product objects.
- Parameters
In or Out | Type | Description |
---|---|---|
In |
String |
The code of the limit. Mandatory. |
Out |
Product Limit Renewal Period |
The product limit renewal period defined for the limit in context of the product. Null if no product limit renewal period is defined. |
- Example
productLimitRenewalPeriod = product.getproductLimitRenewalPeriod("DEDUCTIBLE")
getProductProviderGroup
Gets the product provider group of a product that is defined for a provider group at a given point in time.
- Availability
-
This method is available on product objects.
- Parameters
In or Out | Type | Description |
---|---|---|
In |
String |
The code of the provider group. Mandatory. |
In |
Date |
As of date for time validity. Optional. |
Out |
Product Provider Group |
The product provider group defined for the provider group in context of the product. Null if no product provider group is defined. |
- Example
productProviderGroup = product.getProductProviderGroup("NY NETWORK","2014-01-21")
getProductServiceDefinition
Gets the product service definition of a product that is defined for a service definition at a given point in time.
- Availability
-
This method is available on product objects.
- Parameters
In or Out | Type | Description |
---|---|---|
In |
String |
The code of the service option. Mandatory. |
In |
String |
The code of the service. Mandatory. |
In |
String |
The code of the service definition. Mandatory. |
In |
String |
The type of the service definition ("A","C","R","W"). Mandatory |
In |
Date |
As of date for time validity. Mandatory. |
Out |
Product Service Definition |
The product service definition defined for the service definition in context of the product. Null if no product service definition is defined. |
- Example
productServiceDefinition = product.getproductServiceDefinition("PHYSICAL THERAPY","SERVICES","PROFESSIONAL","C","2014-01-21")
lookUpFlexCode
Returns the flex code object that matches the input character string.
- Availability
-
This method can be called without a base object.
- Parameters
In / Out | Type | Description |
---|---|---|
In |
String |
Key value of the flexCode |
In |
String |
Definition code of the flexCode |
Out |
flexCode |
Flex Code |
- Example
person.dynamicFieldYesNoIndicator = lookUpFlexCode("YES", "YES_NO")
setDynamicField
The method sets the dynamic field to an object.
- Availability
-
This method is available for all objects that support dynamic fields.
- Parameters
In or Out | Type | Description |
---|---|---|
In |
String |
A usage name |
In |
Object |
Structure of the dynamic field |
- Example
-
The following logic sets a time-valid field usage:
policy.setDynamicField("policyCoverage", new DynamicFieldPeriod(polCovRef.policyCoverage,polCovRef.startDate,polCovRef.endDate))
- NOTE
-
The recommended way to use the dynamic field is mentioned in the Writing section.