RolesExist
This business rule, when attached to a transaction, allows for configuration of multiple validations. Specifically, the ability to identify which roles cannot be assigned to the same person (i.e.Client) age validations, and identification of role fields that must be populated. This rule must be listed in TransactionBusinessRulePacket.
Element/Tag | Definition | Attribute | Element/Attribute Value and Description |
---|---|---|---|
<RolesExist> |
The opening and closing tag for the business rule. |
|
|
<Role> |
Required, repeatable: Opening tag of the role section.
|
|
|
<RoleCode> |
Required : |
|
Required value: |
<FieldsExist> |
Optional:
|
|
|
<Field> |
Required, repeatable: <FieldsExist> tag is used to ensure that certain required fields are filled in, at the time of running the transaction. |
|
Required value: |
GROUP |
Required attribute: Indicates the table/screen that stores the field being referenced. |
||
DISPLAY |
Required attribute: |
||
<FieldsDoNotExist> |
Optional:
|
|
|
<Field> |
Required, repeatable: |
|
Required value: |
GROUP |
Required attribute: |
||
DISPLAY |
Required attribute: |
||
<InterRoleRules> |
Optional: <InterRoleRules> applies dependencies between roles. |
||
<MustBeDifferent> |
Required, Repeatable::
|
||
|
ROLE1 |
Required: Code: RoleCode(As defined in AsCodetable=> AsCodeRole) |
|
|
ROLE2 |
Required: Code: RoleCode(As defined in AsCodetable=> AsCodeRole) |
|
<Validations> |
Optional: This element defines age related validations. |
||
<AgeValidation> |
Required, repeatable: Defines the age validation for each role. |
||
|
ROLE |
Required: Code: RoleCode (As defined in AsCode table=>AsCodeRole) |
|
|
DISPLAY |
Required: Provides a user friendly name that is inserted into the error message when the age does not pass validation. |
|
MINIMUM |
Required: Minimum age. Defines the minimum age for the role. |
||
MAXIMUM |
Required: Maximum age. Defines the maximum age for the role. |
||
<Events> |
See Actions/Events. |
||
<ScreenMath> |
See ScreenMath Element. |
||
<Actions> |
See Actions/Events. |
||
<Segments> |
Optional: |
||
<Segment>
|
Required, repeatable: Identifies the segment by its name on which roles are validated. Although the element is repeatable, the segment name cannot be repeated. |
||
|
SEGMENTNAME |
Required: SegmentName |
|
<Role> |
Required, Repeatable: Opening tag for the role section. |
||
<RoleCode> |
Required: Defines the role codes that must exist on the segment. |
||
<FieldsExist> |
Optional: The element lists fields that must exist on the role and have a value other than null. |
||
<Field> |
Required, repeatable: Defines a field name that must exist. |
||
|
GROUP |
Required: String: Client, Role Indicates the table/screen that stores the field being referenced. |
|
|
DISPLAY |
Required: String: Provides a user friendly name that is inserted into the error message when the field does not pass validation. |
|
<FieldsDoNotExist> |
Optional:
|
|
|
<Field> |
Required, repeatable: |
|
Required value: |
GROUP |
Required attribute: |
||
DISPLAY |
Required attribute: |
||
<InterRoleRules> |
Optional: Applies dependencies between roles. |
||
<MustBeDifferent> |
Required, Repeatable: This element lists the roles whose clients must not be the same. |
||
|
ROLE1 |
Code: RoleCode(As defined in AsCodetable=> AsCodeRole) |
|
|
ROLE2 |
Code: RoleCode(As defined in AsCodetable=> AsCodeRole) |
|
<Validations> |
<Validations> is used to perform certain age related validations. |
||
<AgeValidation> |
Required, repeatable: Defines the age validation for each role. |
||
|
ROLE |
Required: Code: RoleCode (As defined in AsCode table=>AsCodeRole) |
|
|
DISPLAY |
Required: Provides a user friendly name that is inserted into the error message when the age does not pass validation. |
|
<Minimum> |
Required |
Minimum age for the specified role. |
|
<Maximum> |
Required |
Maximum age for the specified role. |
XML Example
<RolesExist>
<Role>
<RoleCode>01</RoleCode>
<FieldsExist>
<Field GROUP="Client" DISPLAY="SSN/TIN">TaxID</Field>
<Field GROUP="Client" DISPLAY="DOB">DateOfBirth</Field>
<Field GROUP="Organization" DISPLAY="Organization Name">OrganizationName</Field>
<Field GROUP="Person" DISPLAY="FirstName">FirstName</Field>
</FieldsExist>
</Role>
<Role>
<RoleCode>23</RoleCode>
</Role>
<Role>
<RoleCode>37</RoleCode>
</Role>
<Role>
<RoleCode>82</RoleCode>
</Role>
<Segments>
<Segment SEGMENTNAME="RiderWithRoles">
<Role>
<RoleCode>37</RoleCode>
<FieldsExist>
<Field GROUP="RoleField" DISPLAY="Common Role Field">CommonRoleField</Field>
</FieldsExist>
<FieldsDoNotExist>
<Field GROUP="Client" DISPLAY="Date Of Death">DateOfDeath</Field>
</FieldsDoNotExist>
</Role>
<Role>
<RoleCode>49</RoleCode>
<FieldsExist>
<Field GROUP="RoleField" DISPLAY="Common Role Field">CommonRoleField</Field>
</FieldsExist>
</Role>
<InterRoleRules>
<MustBeDifferent ROLE1="37" ROLE2="49"></MustBeDifferent>
</InterRoleRules>
<Validations>
<AgeValidation ROLE="49" DISPLAY="Payer age less than 20 or greater than 60">
<Minimum>20</Minimum>
<Maximum>60</Maximum>
</AgeValidation>
</Validations>
</Segment>
<Segment SEGMENTNAME="RiderWithClientAssignmentII">
<Role>
<RoleCode>37</RoleCode>
<FieldsExist>
<Field GROUP="RoleField" DISPLAY="Common Role Field">CommonRoleField</Field>
</FieldsExist>
<FieldsDoNotExist>
<Field GROUP="Client" DISPLAY="Date Of Death">DateOfDeath</Field>
</FieldsDoNotExist>
</Role>
</Segment>
<Segment SEGMENTNAME="RiderWithoutClientAssignmentII">
<Role>
<RoleCode>37</RoleCode>
</Role>
</Segment>
</Segments>
</RolesExist>
XML Schema
<RolesExist>
<Role>
<RoleCode>role code</RoleCode>
<FieldsExist>
<Field GROUP="object name" DISPLAY="string">FieldName</Field>
<Field GROUP="Client"|"Organization"|"Person" DISPLAY="string">FieldName</Field>
</FieldsExist>
<FieldsDoNotExist>
<Field GROUP="object name" DISPLAY="string">FieldName</Field>
</FieldsDoNotExist>
</Role>
<Role>
<RoleCode>role code</RoleCode>
</Role>
<InterRoleRules>
<MustBeDifferent ROLE1="" ROLE2=""/>
</InterRoleRules>
<Validations>
<AgeValidation ROLE="" DISPLAY="" MINIMUM="" MAXIMUM="">
<Minimim></Minimum>
<Maximum></Maximum>
</AgeValidation>
</Validations>
<Segments>
<Segment SEGMENTNAME="">
<Role>
<RoleCode>role code</RoleCode>
<FieldsExist>
<Field GROUP="object name" DISPLAY="string">FieldName</Field>
</FieldsExist>
<FieldsDoNotExist>
<Field GROUP="object name" DISPLAY="string">FieldName</Field>
</FieldsDoNotExist>
</Role>
<InterRoleRules>
<MustBeDifferent ROLE1="" ROLE2=""/>
</InterRoleRules>
<Validations>
<AgeValidation ROLE="" DISPLAY="">
<Minimum></Minimum>
<Maximum></Maximum
</AgeValidation>
</Validations>
</Segment>
</Segments>
</RolesExist>