{
  "id": "bg_egn",
  "kind": "datatype",
  "status": "draft",
  "name": "Bulgarian unified civil number (EGN)",
  "doc": "Единен граждански номер, the 10-digit personal number of Bulgarian citizens. The first six digits encode the date of birth (the month is shifted for births outside the 20th century), the next three are a birth order number that also gives the sex, and the last digit is a check digit.",
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "BG"
  ],
  "langs": [
    "bg"
  ],
  "classification": "identifier",
  "regexp": "^\\d{10}$",
  "examples": [
    {
      "value": "2143258377",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "2631299974",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "21432583777",
      "description": "One character too many",
      "valid": false
    }
  ],
  "mappings": {
    "dpv": "pd:OfficialID",
    "purview": [
      "Bulgaria uniform civil number",
      "EU national identification number",
      "EU Tax Identification Number (TIN)",
      "EU Tax identification number"
    ],
    "stdnum": "bg.egn"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://bg.wikipedia.org/wiki/%D0%95%D0%B4%D0%B8%D0%BD%D0%B5%D0%BD_%D0%B3%D1%80%D0%B0%D0%B6%D0%B4%D0%B0%D0%BD%D1%81%D0%BA%D0%B8_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.bg.egn.html"
    },
    {
      "type": "other",
      "url": "https://docs.dataprep.ai/user_guide/clean/clean_bg_egn.html"
    }
  ],
  "translations": {
    "bg": {
      "name": "Единен граждански номер (ЕГН)"
    }
  },
  "detected_by": {
    "tools": [
      "awsglue",
      "azureailanguage",
      "dataprep",
      "microsoftpurview",
      "pythonstdnum",
      "snowflake"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/BG/persons/bg_egn.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BG/persons/bg_egn.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BG/persons/bg_egn.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/bg_egn",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/bg_egn.json"
  }
}