National Identifier Mask - Belgium - National Number
The Belgian National Number is a person's national identity number that can be represented as:
YY is a two digit field that represents a person's birth year
MM is a two digit field that represents a person's birth month
DD is a two digit field that represents a person's birth day
NNN is a three digit field that represents an issuance sequence number where odd is for males and even is for females.
CC is a two digit field that represents a checksum of the other digits. It is calculated as follows:
CC = 97 - (YYMMDDNNN modulo 97)
For example, the National Number 72.08.14-066.15 shows CC=15. The calculation is: 720814066 modulo 97 produces 82, which is then subtracted from 97 to finally produce 15.
* All masked National Numbers shall preserve the year (YY) value.
* The format of every individual National Number shall be preserved. i.e. All non-numeric characters shall always be preserved. Therefore, the format shown in the mask is a general representation only.
* If an original National Number value is found that does not contain exactly 11 digits then the entire value shall be preserved.
* NULL values shall always be preserved.
If this option is selected then the month (MM) value shall be preserved.
If this option is selected then the gender property of the NNN value shall be preserved. i.e. Only the odd or even characteristic of the NNN number shall be preserved. The actual number shall always be randomized.
When this mask is used in deterministic mode then the same masked value shall always be generated for a given input value.
All mappings are 1-to-1 which means there are no collisions. i.e. Two different input values will always generate two distinct values.
Furthermore, this mask shall produce the same masked value of YYMMDD as the Randomize DateTime mask provided that:
1. Both masks are used in deterministic mode.
2. Both masks have the same Preserve/Randomize setting for Month.
When this mask is used in non-deterministic mode then different masked values are likely to be generated for each occurrence of a given input value, even during the course of a single Run.
Mappings are many-to-many which means that collisions are possible. i.e. Two different input values may generate the same masked value.