{
  "id": "de_kvnr",
  "kind": "datatype",
  "status": "draft",
  "name": "German health insurance number (Krankenversichertennummer, KVNR)",
  "doc": "Krankenversichertennummer (KVNR), the lifelong number of a person in the German statutory health insurance (§ 290 SGB V), printed on the electronic health card. The fixed part has ten characters: a random capital letter, eight random digits and a check digit. For the check, the letter becomes its position in the alphabet as two digits (A=01 ... Z=26), the ten digits are weighted 1 2 1 2 ..., and the digit sums of the products are added modulo 10. It is derived from the pension insurance number in a way that cannot be reversed. In data exchange the insurer code (IK) and further check digits follow, which gives 20 or 30 characters.",
  "is_pii": true,
  "categories": [
    "pii",
    "persons",
    "medical"
  ],
  "country": [
    "DE"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[A-Z]\\d{9}$",
  "checksum": "de_kvnr",
  "examples": [
    {
      "value": "B512615085",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "Z187843209",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "B512615086",
      "description": "Check digit does not match",
      "valid": false
    },
    {
      "value": "1512615085",
      "description": "The first character is a letter",
      "valid": false
    }
  ],
  "mappings": {
    "dpv": "pd:OfficialID",
    "fhir": "http://fhir.de/sid/gkv/kvid-10",
    "presidio": "DE_HEALTH_INSURANCE"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://de.wikipedia.org/wiki/Krankenversichertennummer"
    }
  ],
  "translations": {
    "de": {
      "name": "Krankenversichertennummer (KVNR)"
    },
    "ru": {
      "name": "Номер застрахованного в обязательном медицинском страховании Германии (KVNR)",
      "doc": "Пожизненный номер застрахованного на электронной карте медицинского страхования - буква, восемь случайных цифр и контрольная цифра."
    }
  },
  "detected_by": {
    "tools": [
      "presidio"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/DE/persons/de_kvnr.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/DE/persons/de_kvnr.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/DE/persons/de_kvnr.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/de_kvnr",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/de_kvnr.json"
  }
}