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

This section describes generic methods

lookUpPerson

Looks up the person in the system based on the input parameters passed.

Availability

This method is available in the dynamic logic (groovy script)

Parameters

In / Out Type Description

In

String

Code of the person

Out

person

Person

getSystemProperty

Returns the value of the property whose key is passed as input.

Availability

This method is available in the dynamic logic (groovy script).

Parameters

In / Out Type Description

In

String

Key of the property

Out

String

Value of the property

Please refer to the Claims Development Guide for the list of other available generic methods.

Search Methods

Please refer to the Claims Development Guide for the list of available search methods.

Object 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.

addMessage

Adds a message to an authorization.

Availability

This method is available for Authorization. Its purpose is to have the possibility to add a message through function dynamic logic:

Parameters

In / Out Type Description

In

String

Message code. Mandatory

In

Object[]

Message arguments. Optional

Example

def enrollmentResponseMessage = enrollmentResonseMessageList[0]authorization.addMessage(enrollmentResponseMessage.message.code, enrollmentResponseMessage.value0, enrollmentResponseMessage.value1)

addBasket

Adds a basket to an authorization.

Availability

This method is available for Authorization. Its purpose is to have the possibility to add a basket through function dynamic logic:

Parameters

In / Out Type Description

In

String

Basket code. Mandatory

In

Date

Authorization basket start date. Mandatory

In

Date

Authorization basket end date. Optional

Example

authorization.addBasket('NAPPI_BASKET', authorization.startDate)

getAttachedData

This method returns the data attached to the authorization in context; this is necessary because no relationship between attached authorization data and the authorization exists.

Availability

This method is available for object authorization.

Parameters

In / Out Type Description

Out

AttachedAuthorizationData

The data attached to the authorization