{
  "id": "lv_personal_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Latvian personal code",
  "doc": "Latvian personal code (personas kods), 11 digits. Codes issued before July 2017 start with the date of birth (DDMMYY), followed by a hyphen, a century digit and four digits. Newer codes start with 32 and carry no date of birth.",
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "LV"
  ],
  "langs": [
    "lv"
  ],
  "classification": "identifier",
  "regexp": "^(?:(?:0[1-9]|[12]\\d|3[01])(?:0[1-9]|1[0-2])\\d{2}-?[012]\\d{4}|32\\d{4}-?\\d{5})$",
  "mappings": {
    "dpv": "pd:OfficialID",
    "purview": [
      "Latvia personal code",
      "EU national identification number",
      "EU Tax Identification Number (TIN)",
      "EU Tax identification number"
    ]
  },
  "links": [
    {
      "type": "doc",
      "url": "https://learn.microsoft.com/en-us/purview/sit-defn-latvia-personal-code"
    }
  ],
  "detected_by": {
    "tools": [
      "awsglue",
      "azureailanguage",
      "microsoftpurview",
      "snowflake"
    ]
  },
  "quality": {
    "score": 75,
    "missing": [
      "examples",
      "negative example",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/LV/persons/lv_personal_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/LV/persons/lv_personal_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/LV/persons/lv_personal_code.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/lv_personal_code",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/lv_personal_code.json"
  }
}