Unique Master Citizen Number
Unique Master Citizen Number (Bosnian: Jedinstveni matični broj građana, JMBG, Croatian: Jedinstveni matični broj građana, JMBG, Macedonian: Единствен матичен број на граѓанинот, ЕМБГ, Serbian: Jedinstveni matični broj građana, JMBG, Slovene: Enotna matična številka občana, EMŠO) was a unique identification number that was assigned to every citizen of former Yugoslav republics of the SFR Yugoslavia. Today it continues to be used in all of the countries that were created after the dissolution of Yugoslavia – Bosnia and Herzegovina, Macedonia, Montenegro, Serbia and Slovenia use it in its original form, while Croatia has started switching to a different scheme.
Contents
History
The JMBG was introduced on January 8, 1977[1] and applied to all citizens born before then and alive at the time. All six republics passed a law on the Unique Master Citizen Number.
Although the Republic of Croatia continued to use the JMBG after the independence[2] in 2002 the official name of the number there was changed to Matični broj građana (Master Citizen Number), acronym MBG.[3][4] Advocates of the right to privacy argued that JMBG was a piece of personally identifiable information that needed to be protected by information privacy law, mostly because it was unique and it included the person's date of birth. When the law to that effect was passed in 2003[5] it was no longer possible to use JMBG on identity cards, driver's licenses and similar documents. Even though law hid MBG from personal documents, various institutions (e.g. banks, schools, insurance companies ...) continued to demand citizens to give their MBG while signing various contracts, since MBG was natural unique identifier of each citizen. Seeing flaw of hiding MBG, on January 1, 2009 Croatia passed a new law[6] that introduced a different unique identifier called the Personal Identification Number (Croatian: Osobni identifikacijski broj, acronym OIB). The OIB consists of 11 randomly chosen digits and has been assigned to all Croatian citizens, companies registered in Croatia and foreign nationals residing in Croatia.[7] Although the OIB is in use, the MBG law remains in effect, and the MBG number is still issued. It is used for data coordination among government registries. MBG no longer appears on Croatian identity cards since 2003, instead OIB does, since 2013.
Composition
The number is made up of 13 digits in a form "DD MM YYY RR BBB K" (whitespaces are for convenience; digits are written without separation) where:
- DD – day of birth
- MM – month of birth
- YYY – last three digits of the year of birth
- RR – political region [8] of birth (for persons born before 1976, political region where they were first registered)
- 01-08 – foreign citizens [9] without citizenship of former Yugoslavia or succeeding countries (foreign citizens that receive citizenship also receive a 'regular' JMBG, not this 'foreigners only' one)
- 01 - foreigners in Bosnia and Herzegovina
- 02 - foreigners in Montenegro
- 03 - foreigners in Croatia
- 04 - foreigners in Macedonia
- 05 - foreigners in Slovenia
- 06 - foreigners in Central Serbia
- 07 - foreigners in Vojvodina
- 08 - foreigners in Kosovo
- 00 and 09 – naturalized citizens which had no republican citizenship[10]
- 10-19 – Bosnia and Herzegovina
- 01-08 – foreign citizens [9] without citizenship of former Yugoslavia or succeeding countries (foreign citizens that receive citizenship also receive a 'regular' JMBG, not this 'foreigners only' one)
-
- 20-29 – Montenegro
-
- 30-39 – Croatia (no longer exclusively used)
- 30 - Osijek, Slavonia region
- 31 - Bjelovar, Virovitica, Koprivnica, Pakrac, Podravina region
- 32 - Varaždin, Međimurje region
- 33 - Zagreb
- 34 - Karlovac, Kordun region
- 35 - Gospić, Lika region
- 36 - Rijeka, Pula, Gorski kotar, Istria and Croatian Littoral regions
- 37 - Sisak, Banovina region
- 38 - Split, Zadar, Šibenik, Dubrovnik, Dalmatia region
- 39 - Hrvatsko Zagorje and mixed
- 41-49 – Macedonia
- 30-39 – Croatia (no longer exclusively used)
-
- 50-59 – Slovenia (only 50 is used)
- 60-69 – (reserved)
-
- 70-79 – Central Serbia
- 70 - Serbian citizens registered abroad at a Serbian diplomatic/consular post (section 4 of the JMBG Law)
- 71 - Belgrade region (City of Belgrade)
- 72 - Šumadija and Pomoravlje regions (Šumadija District and Pomoravlje District)
- 73 - Niš region (Nišava District, Pirot District and Toplica District)
- 74 - Southern Morava region (Jablanica District and Pčinja District)
- 75 - Zaječar region (Zaječar District and Bor District)
- 76 - Podunavlje region (Podunavlje District and Braničevo District)
- 77 - Podrinje and Kolubara regions (Mačva District and Kolubara District)
- 78 - Kraljevo region (Raška District, Moravica District and Rasina District)
- 79 - Užice region (Zlatibor District)
- 70-79 – Central Serbia
-
- 80-89 – Serbian province of Vojvodina
- 80 - Novi Sad region (South Bačka District)
- 81 - Sombor region (West Bačka District)
- 82 - Subotica region (North Bačka District)
- 84 - Kikinda region (North Banat District)
- 85 - Zrenjanin region (Central Banat District)
- 86 - Pančevo region (South Banat District)
- 87 - Vršac region (South Banat District)
- 88 - Ruma region (part of Syrmia District)
- 89 - Sremska Mitrovica region (part of Syrmia District)
- 80-89 – Serbian province of Vojvodina
-
- 90-99 – Serbian province of Kosovo
- 91 - Priština region (Kosovo District)
- 92 - Kosovska Mitrovica region (Kosovska Mitrovica District)
- 93 - Peć region (part of Peć District)
- 94 - Đakovica region (part of Peć District)
- 95 - Prizren region (Prizren District)
- 96 - Gnjilane region (Kosovo-Pomoravlje District)
- 90-99 – Serbian province of Kosovo
- BBB – unique number of the particular RR (represents a person within the DDMMYYYRR section in the particular municipality)
- K - checksum
Checksum calculation
The checksum is calculated from the mapping DDMMYYYRRBBBK = abcdefghijklm, using the formula:
- m = 11 − (( 7*(a+g) + 6*(b+h) + 5*(c+i) + 4*(d+j) + 3*(e+k) + 2*(f+l) ) mod 11)
- If m is between 1 and 9, the number K is the same as the number m
- If m is 10 or 11 K becomes 0 (zero)
Note: there has been a small number of JMBGs that were assigned by valid authorities but which had an invalid checksum. Also, there are a few duplicate JMBGs in existence. The common anecdotal explanation for these is simple operator error. Reportedly these mistakes happened more often in the early 1990s. The chances of running into exceptions are reportedly low, and whether such exceptions justify questioning the use of JMBG as a unique identifier has not been scientifically analyzed.[citation needed]
Microsoft Excel formula
- A1 - data (first 12 digits stored as text)
- B1 - checksum calculation
- C1 - full number with checksum
B1 =11-(MOD(((7*(MID(A1;1;1)+MID(A1;7;1))) +(6*(MID(A1;2;1)+MID(A1;8;1))) +(5*(MID(A1;3;1)+MID(A1;9;1))) +(4*(MID(A1;4;1)+MID(A1;10;1))) +(3*(MID(A1;5;1)+MID(A1;11;1))) +(2*(MID(A1;6;1)+MID(A1;12;1))));11))
C1 =CONCATENATE(A1;IF(B1<10;B1;0))[dubious ]
Ruby code for validation
def validjmbg jmbg
len = jmbg.scan(/[0-9]/).size
valid_chars = (jmbg =~ /^[0-9]+$/)
if len!=13 or !valid_chars
return false
else
j = jmbg.split(//).map(&:to_i)
v = 11-((7*(j[0]+j[6])+
6*(j[1]+j[7])+
5*(j[2]+j[8])+
4*(j[3]+j[9])+
3*(j[4]+j[10])+
2*(j[5]+j[11]))%11)
v = 0 if v>9
return v==j[12]
end
end
Example
As an example, a valid identification number is 0101006500006; it is the number of the first male baby registered in Slovenia on January 1, 2006.
See also
References
- ↑ Law on the introduction of the Unique Master Citizen Number (»Official Gazette of SFRY«, No. 58/76., reg. 840., pp 1823. & 1824.) was published on 1976-12-31. The Law reached validity on 1977-01-08. Also the Article 12 of the Law gave a five years deadline for the introduction of the Unique Master Citizen Number
- ↑ Croatian Law on JMBG from 1992 - Zakon o matičnom broju - Narodne novine 1992-9 [1] (Croatian)
- ↑ Changes in the Croatian Law on MBG from 2002 - Zakon o izmjenama i dopunama Zakona o matičnom broju - Narodne novine 2002-66 [2] (Croatian)
- ↑ Full text of the Croatian master citizen number law at the Croatian Ministry of Interior Affairs (Croatian)
- ↑ Croatian: Zakon o zaštiti osobnih podataka, Narodne novine 2003-103 [3] (Croatian)
- ↑ Croatian: Zakon o osobnom identifikacijskom broju, Narodne novine 2008-60 [4] (Croatian)
- ↑ OIB - Croatia
- ↑ Agreement on allocation of registry numbers for the Unique Master Citizen Number (»Official Gazette of SFRY«, No. 13/78., reg. 240.)
- ↑ Bylaw on the means for determining the Unique Master Foreigner Number (»Official Gazette of SFRY«, No. 43/80., reg. 705., pp 1431. & 1431.) published on 1980-08-01 and reached legal validity on 1980-08-09. This bylaw determined by its Article 5 the registry numbers for the Unique Master Foreigner Number.
- ↑ Registry numbers 00 and 09 were allocated to the Federal Secretariat for Internal Affairs and were used for naturalized citizens of the SFRY who had no republican citizenship. In Croatia, registry numbers 00 were to be used in case of filling out the quota of the registry number 03.
Еxternal links
- Pages with syntax highlighting errors
- Articles with Croatian-language external links
- Articles containing Croatian-language text
- Articles containing Bosnian-language text
- Articles containing Macedonian-language text
- Articles containing Serbian-language text
- Articles containing Slovene-language text
- Articles with unsourced statements from December 2010
- All accuracy disputes
- Articles with disputed statements from August 2014
- 1977 introductions
- Second Yugoslavia
- National identification numbers
- Serbian law
- Slovenian law
- Bosnian law
- Montenegrin law
- Republic of Macedonia law
- Croatian law