{
  "id": "fi_hetu",
  "kind": "datatype",
  "status": "draft",
  "name": "Finnish personal identity code (HETU)",
  "doc": "Henkilötunnus, the personal identity code of people registered in Finland. It is the date of birth (DDMMYY), a century sign (+ for the 1800s, - or one of Y, X, W, V, U for the 1900s, A to F for the 2000s), a 3-digit individual number (odd for men, even for women; 900 to 999 for temporary codes) and a check character - the nine-digit number DDMMYYZZZ modulo 31, looked up in 0123456789ABCDEFHJKLMNPRSTUVWXY.",
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "FI"
  ],
  "langs": [
    "fi",
    "sv"
  ],
  "classification": "identifier",
  "regexp": "^(?:0[1-9]|[12]\\d|3[01])(?:0[1-9]|1[0-2])\\d{2}[-+A-FU-Y]\\d{3}[0-9A-FHJ-NPR-Y]$",
  "checksum": "fi_hetu",
  "examples": [
    {
      "value": "241060-268N",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "271117A736D",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "131052-308T",
      "description": "Worked example from Wikipedia",
      "valid": true
    },
    {
      "value": "131052-308U",
      "description": "Check character does not match",
      "valid": false
    },
    {
      "value": "241060-268N7",
      "description": "One character too many",
      "valid": false
    }
  ],
  "mappings": {
    "dpv": "pd:OfficialID",
    "google_dlp": "FINLAND_NATIONAL_ID_NUMBER",
    "purview": [
      "Finland national ID",
      "EU Social Security Number (SSN) or Equivalent ID",
      "EU social security number or equivalent identification",
      "EU national identification number",
      "EU Tax Identification Number (TIN)",
      "EU Tax identification number"
    ],
    "stdnum": "fi.hetu"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://fi.wikipedia.org/wiki/Henkil%C3%B6tunnus"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/National_identification_number#Finland"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.fi.hetu.html"
    },
    {
      "type": "other",
      "url": "https://docs.dataprep.ai/user_guide/clean/clean_fi_hetu.html"
    }
  ],
  "translations": {
    "fi": {
      "name": "Henkilötunnus (HETU)"
    },
    "sv": {
      "name": "Personbeteckning"
    }
  },
  "detected_by": {
    "tools": [
      "awsglue",
      "azureailanguage",
      "dataprep",
      "googledlp",
      "ibmguardium",
      "microsoftpurview",
      "openmetadata",
      "pythonstdnum"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/FI/persons/fi_hetu.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FI/persons/fi_hetu.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FI/persons/fi_hetu.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/fi_hetu",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/fi_hetu.json"
  }
}