National Identification Number in Workflow (2)

Monday, June 22, 2015
"Mistyping" in registration of the Individual number... That could be... (Scary..)

From my experience, applications from employees contains 5 to 10% of "typo". (And always they were from veterans, instead of part-timers!) Despite you specially had your employees registering their Individual number to use for public procedures such as Income-tax or Social insurance, you will have to do it all over again, if the 'registered number' is wrong. (What a tragedy!)

In assumption of Individual Number Act, it is duties of company side which are 1) to obtain accurate 12-digit number, and 2) to confirm its identification. However, you cannot say "Don't screw it up!" to an employee who has many children, because he or she have to type 12-digit numbers as much as family members.

In the following Workflow, it performs "Check Digit Verification" upon entering Individual number.

That is, it will alert an input error if the 12-digit number is "impossible for an Individual number" upon entry. This scheme alone will reduce erroneous input significantly. By the way, this Workflow is an expansion of previous entry, so the basic flow and data item definitions are the same.

[Individual Number Application flow-2]

[Individual Number Application flow-2:'1. Application' screen]

First of all, what is the "Check Digit"?

I'll leave it to google about the general definition, but about the Individual number in Japan, the 12th digit of 12-digit number is the "Check Digit number". So the 12-digit number is consisted of "11-digit number that Institution generated by a method of randomly" and "single digit number for verification added at the end".

(Whereas, numbers of enterprises are 13-digits, which are consisted of "12-digits number..." and "single digit number for verification added at the top". Therefore, the position and the calculation formula of the Check digit is different.)

According to the document of "Related Act" by the Ministry of Internal Affairs and Communications,

Reminder of division of 11 - (n=1(Sigma)11 (Pn * Qn) by 11
* Pn is the number that the least significant of 11 digits as the first digit. Qn is (n + 1) when up to 6 digits, (n-5)when more than 7 digits.

The expression of this in Javascript is as follows.

<script type="text/javascript">
jQuery('input[name="data[4].input"]').on('keydown keyup keypress change',function(){
//If the Text form value of the data item number "● 4 ●" change,

var thisValueLength = jQuery(this).val().length;

//Calculating the Check Digit if the number of characters is 12 digits
if( thisValueLength == 12 ){
var mysum = 0;
var thisValue = jQuery(this).val();

for( i=0; i<5; i++){
mysum += (11 - i - 5) * parseInt( thisValue.charAt(i) );
for( i=5; i<11; i++){
mysum += (11 - i + 1) * parseInt( thisValue.charAt(i) );
var checkdigitnum = 11 - mysum % 11;
if( checkdigitnum > 9 ){ checkdigitnum = 0; }

var typedcd = parseInt( thisValue.charAt(11) );
//Overwrite HTML of ●#mymessage4●
if( typedcd == checkdigitnum ){
jQuery( '#mymessage4' ).html("OK");
} else {
jQuery( '#mymessage4' ).html("<font color=red>NG</font>");
} else {
jQuery( '#mymessage4' ).html("<font color=blue>Enter 12-digits number</font>");


However, even though it seems that "accurate 12-digits" is ensured, yet we would be able to improve about "confirmation of identity". (To be continued...)

[Data Items list]

[Free Download]
<Similar Models>

<<Related Articles>>

[Japanese Entry (ε’Œζ–‡θ¨˜δΊ‹)]