Business rule legal entity tpc0038 national identifier type_type should correspond to national identifier type_country

Card of business rule legal entity tpc0038 national identifier type_type should correspond to national identifier type_country

Name

legal entity tpc0038 national identifier type_type should correspond to national identifier type_country

Code

tpc0038

Comment

Make sure that the value of attribute ‘national identifier type_type’ corresponds to the value of the attribute national identifier type_country. In case ‘national identifier type_type’ contains a value starting with "GEN_", then national identifier type_country must contain the ISO country code of the country to which the “GEN_” relates. This cannot be a country for which “GEN_” is not allowed. At the moment “GEN_” is only allowed for those countries not mentioned in the column “Country ISO code” in the list of national identifier on the ECB website, unless the column “Notes” explicitly mentions that for a specific country in the list a “GEN_” is allowed.

Rule Type

Constraint


Server expression of the business rule legal entity tpc0038 national identifier type_type should correspond to national identifier type_country

(if ( 'legal entity'.'national identifier type_type' = 'national identifier type'.'type'
and 'national identifier type'.'country' not is null)
then 'legal entity'.'national identifier type_country' = 'national identifier type'.'country')


List of extended attributes of the business rule legal entity tpc0038 national identifier type_type should correspond to national identifier type_country

Name

Data Type

Value

Target Name

business rule classification

(String)

tuple constraint

Local Extensions

business rule scope

(String)

Checked within the data delivery

Local Extensions

severity

(String)

blocking

Local Extensions


List of attached objects of the business rule legal entity tpc0038 national identifier type_type should correspond to national identifier type_country

Short Description

Entity 'legal entity'

Entity Attribute 'legal entity.national identifier type_type'