{
  "id": "idcard",
  "kind": "datatype",
  "status": "stable",
  "name": "Chinese ID card (身份证) by known name",
  "doc": "Citizen identification number of the People's Republic of China, printed on the Resident Identity Card (居民身份证). Since 1999 it has 18 characters, a six-digit address code, the date of birth as YYYYMMDD, a three-digit sequence code and a check digit computed with ISO 7064 MOD 11-2, where X stands for 10. Older numbers have 15 digits, with a two-digit year and no check digit.",
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "CN"
  ],
  "langs": [
    "zh"
  ],
  "classification": "identifier",
  "regexp": "^(?:\\d{17}[\\dX]|\\d{15})$",
  "mappings": {
    "autotype": "cin",
    "dpv": "pd:OfficialID",
    "purview": "China resident identity card (PRC) number",
    "stdnum": "cn.ric"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Resident_Identity_Card"
    }
  ],
  "detected_by": {
    "tools": [
      "autotype",
      "awsglue",
      "azureailanguage",
      "databricks",
      "dataprep",
      "metacrafter",
      "microsoftpurview",
      "pythonstdnum"
    ],
    "metacrafter_rules": [
      {
        "rule": "cnidcardknown",
        "type": "field",
        "match": "text",
        "file": "cn/cn_persons.yaml"
      },
      {
        "rule": "cn_pii_cnidcardknown",
        "type": "field",
        "match": "text",
        "file": "pii/cn/cn_pii.yaml"
      },
      {
        "rule": "zhidcardknown",
        "type": "field",
        "match": "text",
        "file": "pii/zh/zh_pii.yaml"
      }
    ]
  },
  "quality": {
    "score": 75,
    "missing": [
      "examples",
      "negative example",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/CN/persons/idcard.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CN/persons/idcard.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CN/persons/idcard.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/idcard",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/idcard.json"
  }
}