{
  "id": "cn_passport",
  "kind": "pattern",
  "status": "draft",
  "name": "Chinese ordinary passport number",
  "doc": "Number of an ordinary passport issued by the National Immigration Administration of the People's Republic of China: nine characters. E-passports used E and eight digits until that range ran out in 2017, then E, a letter other than I and O, and seven digits, starting with EA0000001. Older ordinary passports, and now border tourism passports, use G and eight digits. Diplomatic, service and Hong Kong and Macao documents are not covered.",
  "semantic_type": "passport",
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "CN"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:E\\d{8}|E[A-HJ-NP-Z]\\d{7}|G\\d{8})$",
  "examples": [
    {
      "value": "EA0000001",
      "description": "First number of the E-letter range, published by the immigration administration",
      "valid": true
    },
    {
      "value": "E68984978",
      "description": "Synthetic e-passport number of the first series",
      "valid": true
    },
    {
      "value": "EI2345678",
      "description": "The second letter is never I",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Chinese_passport"
    },
    {
      "type": "doc",
      "url": "https://www.thepaper.cn/newsDetail_forward_4186634"
    }
  ],
  "translations": {
    "zh": {
      "name": "普通护照号码"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/CN/persons/cn_passport.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CN/persons/cn_passport.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CN/persons/cn_passport.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/cn_passport",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/cn_passport.json"
  }
}