PESEL

Last updated

PESEL (Polish Powszechny Elektroniczny System Ewidencji Ludności, Universal Electronic System for Registration of the Population) is the national identification number used in Poland since 1979. It always has 11 digits, identifies just one person and cannot be changed to another one (except some specific situations such as gender reassignment).

Contents

The PESEL number is mandatory for all permanent residents of Poland and for temporary residents living in Poland for over 2 months. After 1 March 2015, applicants for Polish passport without a PESEL number will need to apply for PESEL prior to passport application. Otherwise, without a PESEL number, passport application and fingerprints cannot be taken. [1] [2]

The PESEL was the system designed by the communist government (during PRL) to trace personal information about every citizen. It is a direct offshoot from the previous system, MAGISTER (an acronym spelling out the word 'Master', like a master's degree), which was designed to trace and record data about everyone with a university degree. [3]

Format

PESEL number has the form of YYMMDDZZZXQ, where YYMMDD is the date of birth (with century encoded in month field), ZZZX is the personal identification number, where X codes sex (even number for females, odd number for males) and Q is a check digit, which is used to verify whether a given PESEL is correct or not.

Checksum calculation

Having a PESEL in the form of ABCDEFGHIJK, one can check the validity of the number by computing the following expression:

A×1 + B×3 + C×7 + D×9 + E×1 + F×3 + G×7 + H×9 + I×1 + J×3

The checksum is the last digit of result of the above expression subtracted from 10. If this last digit is 0 then the checksum is 0.

If the result of the last operation is not equal to the last digit (K) of a given PESEL, the PESEL is incorrect. This system works reliably well for catching one-digit mistakes and digit swaps.

Example: Checking validity of PESEL 12345678901

1×1 + 2×3 + 3×7 + 4×9 + 5×1 + 6×3 + 7×7 + 8×9 + 9×1 + 0×3 = 101

The last digit of the result (101 modulo 10): 1

The last digit is not 0 so, the checksum is 10 − 1 = 9

9 is not equal to the last digit of PESEL, which is 8, so the PESEL number contains errors.

How to code this in TypeScript

exportfunctionvalidatePesel(pesel: string):boolean{if(pesel===null||pesel.length!==11)returnfalse;constarr=pesel.split("");letsum: number=0;for(leti: number=0;i<arr.length-1;i++){sum+=+arr[i]*getMultiplier(i+1);}constmodulo=sum%10;constlastD=Number(pesel.substr(pesel.length-1));return(modulo===0)&&lastD===0||lastD===10-modulo;}functiongetMultiplier(index: number):number{switch(index%4){case1: return1;case2: return3;case3: return7;case0: return9;}throw"Something went wrong with the index calculation";}

Birthdates

The PESEL system has been designed to cover five centuries. To distinguish people born in different centuries, numbers are added to the MM field:

For example, a person born on December 24, 2002 would have a PESEL number starting with 023224 and person born on December 24, 1902 would have a PESEL number starting with 021224.

Changing the PESEL number

PESEL contains the date of birth and a sex, so the number is changed if the person changes their sex or corrects their date of birth (for example, the previous date of birth was wrong). The other situation when the number is changed is "if the previous number was produced in the violation of Law" or when a birth certificate of a person changes for any reason (eg. adoption). When the PESEL number is changed, the person is not allowed to use the previous number anymore. The previous number of a person cannot be given to anyone else.

Other identifiers

A similar system of identification numbers exists for businesses, called REGON (from Rejestr Gospodarki Narodowej – Register of the National Economy). Also all business taxpayers (prior to September 2011 – all taxpayers) have a tax identification number called NIP(Numer Identyfikacji Podatkowej).

Individuals in Poland are often asked to provide the number of their Polish identity card (dowód osobisty) as identification (foreign citizens give their passport number instead). Similarly, businesses and corporations are often required to state the number at which they appear in the register of businesses, KRS - National Judicial Register (Krajowy Rejestr Sądowy), or the Taxpayer Identification Number - NIP.

Related Research Articles

International Standard Book Number Unique numeric book identifier

The International Standard Book Number (ISBN) is a numeric commercial book identifier which is intended to be unique. Publishers purchase ISBNs from an affiliate of the International ISBN Agency.

A check digit is a form of redundancy check used for error detection on identification numbers, such as bank account numbers, which are used in an application where they will at least sometimes be input manually. It is analogous to a binary parity bit used to check for errors in computer-generated data. It consists of one or more digits computed by an algorithm from the other digits in the sequence input.

The INSEE code is a numerical indexing code used by the French National Institute for Statistics and Economic Studies (INSEE) to identify various entities, including communes and départements. They are also used as national identification numbers given to people.

The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, named after its creator, IBM scientist Hans Peter Luhn, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers in the United States, Canadian Social Insurance Numbers, Israeli ID Numbers, South African ID Numbers, Greek Social Security Numbers (ΑΜΚΑ), and survey codes appearing on McDonald's, Taco Bell, and Tractor Supply Co. receipts. It is described in U.S. Patent No. 2,950,048, filed on January 6, 1954, and granted on August 23, 1960.

SEDOL stands for Stock Exchange Daily Official List, a list of security identifiers used in the United Kingdom and Ireland for clearing purposes. The numbers are assigned by the London Stock Exchange, on request by the security issuer. SEDOLs serve as the National Securities Identifying Number for all securities issued in the United Kingdom and are therefore part of the security's ISIN as well. The SEDOL Masterfile (SMF) provides reference data on millions of global multi-asset securities each uniquely identified at the market level using a universal SEDOL code.

A tax file number (TFN) is a unique identifier issued by the Australian Taxation Office (ATO) to each taxpaying entity — an individual, company, superannuation fund, partnership, or trust. Not all individuals have a TFN, and a business has both a TFN and an Australian Business Number (ABN). If a business earns income as part of carrying on its business, it may quote its ABN instead of its TFN.

A CUSIP is a nine-digit numeric or nine-character alphanumeric code that identifies a North American financial security for the purposes of facilitating clearing and settlement of trades. The CUSIP was adopted as an American National Standard under Accredited Standards X9.6. The acronym, pronounced as "kyoo-sip," derives from Committee on Uniform Security Identification Procedures.

A national identification number, national identity number, or national insurance number is used by the governments of many countries as a means of tracking their citizens, permanent residents, and temporary residents for the purposes of work, taxation, government benefits, health care, and other governmentally-related functions.

National Registration Identity Card Singapore identity document

The National Registration Identity Card is the compulsory identity document issued to citizens and permanent residents of Singapore. People must register for an NRIC within one year of attaining the age of 15, or upon becoming a citizen or permanent resident. Re-registrations are required for persons attaining the ages of 30 and 55, unless the person has been issued with an NRIC within ten years prior to the re-registration ages.

The personal identity number is the Swedish national identification number. It is a ten or twelve digit number that is widely used in Sweden to identify individuals.

European Community number

The European Community number is a unique seven-digit identifier that was assigned to substances for regulatory purposes within the European Union by the European Commission. The EC Inventory comprises three individual inventories, EINECS, ELINCS and the NLP list.

International Article Number standard barcode system used in global trade

The International Article Number is a standard describing a barcode symbology and numbering system used in global trade to identify a specific retail product type, in a specific packaging configuration, from a specific manufacturer. The standard has been subsumed in the Global Trade Item Number standard from the GS1 organization; the same numbers can be referred to as GTINs and can be encoded in other barcode symbologies defined by GS1. EAN barcodes are used worldwide for lookup at retail point of sale, but can also be used as numbers for other purposes such as wholesale ordering or accounting. These barcodes only represent the digits 0–9, unlike some other barcode symbologies which can represent additional characters.

The UPU S10 standard defines a system for assigning 13-character identifiers to international postal items for the purpose of tracking and tracing them during shipping.

"Bookland" is the informal name for the Unique Country Code (UCC) prefix allocated in the 1980s for European Article Number (EAN) identifiers of published books, regardless of country of origin, so that the EAN namespace can catalogue books by ISBN rather than maintaining a redundant parallel numbering system. In other words, Bookland is a fictitious country that exists solely in EAN for the purposes of non-geographically cataloguing books in the otherwise geographically keyed EAN coding system.

The uniform civil number is a 10-digit unique string assigned to each Bulgarian citizen or resident foreign national. It serves as a national identification number. An EGN is assigned to Bulgarians at birth, or when a birth certificate is issued. The uniform system for civil registration and administrative service of population regulates the EGN system.

In the Republic of Korea, a resident registration number (RRN) is a 13-digit number issued to all residents of South Korea regardless of nationality. Similar to national identification numbers in other countries, it was used to identify people in various private transactions such as banking and employment. It was also used extensively for online identification purposes, but after 2013 resident registration number cannot be used for identification unless other laws require processing resident registration numbers. Foreigners receive an alien registration number upon registration with a city office, which serves as a substitute for the "resident" registration number on their alien registration card.

NHS numbers are the unique numbers allocated to registered users of the three public health services in England, Wales and the Isle of Man; the three health systems use a shared numbering scheme. It is the key to the implementation of the electronic health record, and is to be incorporated in all new software deployed within the National Health Service (NHS).

Polish identity card

Every Polish citizen 18 years of age or older residing permanently in Poland is required to have an Identity Card issued by the local Office of Civic Affairs. Children as well as Polish citizens living permanently abroad are entitled, but not required, to have one. Identity cards are valid for a period of 10 years.

The Italian fiscal code, officially known in Italy as Codice fiscale, is the tax code in Italy, similar to a Social Security Number (SSN) in the United States or the National Insurance Number issued in the United Kingdom. It is an alphanumeric code of 16 characters. The code serves to unambiguously identify individuals residing in Italy irrespective of residency status. Designed by and for the Italian tax office, it is now used for several other purposes, e.g. uniquely identifying individuals in the health system, or natural persons who act as parties in private contracts. The code is issued by the Italian tax office, the Agenzia delle Entrate.

Resident Identity Card Identity document of China

The Resident Identity Card is an official identity document for personal identification in the People's Republic of China. According to the second chapter, tenth clause of the Resident Identity Card Law, residents are required to apply for resident identity cards from the local Public Security Bureau, sub-bureaus or local executive police stations.

References

  1. "Passport information". Telawiw.msz.gov.pl. Retrieved 20 March 2017.
  2. "Ważna informacja dla osób ubiegających się o wydanie paszportu". Sydney.MSZ.gov.pl. 16 March 2015. Archived from the original on 14 April 2015. Retrieved 14 April 2015.
  3. "Permanentna inwigilacja: telefon – twój osobisty szpieg" [Permanent surveillance: phone – your personal spy]. TechTrendy.pl (in Polish). 24 July 2012. Archived from the original on 27 July 2012. Retrieved 25 July 2012.