Optim Data Privacy Providers  11.3.0
 All Data Structures Files Functions Variables Macros Groups Pages
Modules
Canada National ID
Collaboration diagram for Canada National ID:

Modules

 Specific Parameters
 
 Example
 

Detailed Description

Service Identifier: NID

This Service Provider is used to generate a valid and unique Canadian Social Insurance Number (SIN). By default, the Canada National ID Service Provider algorithmically generates a consistently altered destination SIN that includes the first three digits (header) of the source SIN. This Service Provider can also generate a random SIN when the source data does not have an Insurance Number or when there is no need for transforming the source SIN in a consistent manner.




The following Common Parameters apply to Canada National ID:




The below validations will be part of basic validations for the Canada National ID:

  1. The input national ID is invalid in length.
  2. The conversion of source is not possible due to invalid source value.
  3. The input national ID has invalid separator.
  4. The input national ID is invalid.
  5. The invalid region in national ID.




The below validations will be done only when parameter ODPP_OPR_FLAGS is specified with value ODPP_FLAG_VALIDATE_INPUT during Provider_Init():

  1. The first digit must not be 8.
  2. There must not be three consecutive zeros ("000") at positions 1-3, 4-6 or 7-9.
  3. Additional validation is done using the Luhn algorithm.




The following Service Provider Information Requests are applicable to the National ID Service Provider:




Format of Canada National ID

The Canadian Social Insurance Number is a 9 digit number having the following format:

RSSSSSSSS

RRegion code
SSSSSSSSSerial number

A Social Insurance Number can be separated into three subfields of three digits each as shown below:




Data Types

The Canada National ID Service Provider supports the following data types for the source and destination columns: