{
  "id": "de_passport",
  "kind": "pattern",
  "status": "draft",
  "name": "German passport number",
  "doc": "Serial number of a German passport (Reisepass): nine characters, a four-character code of the issuing authority and a five-character random number. Since November 2007 it is alphanumeric and avoids vowels and the letters B, D, Q and S; since November 2021 the digit 0 is no longer used. Microsoft Purview expects the first character of a passport number to be C, F, G, H, J or K, and also accepts the check digit and the D (Germany) that follow the number in the machine-readable zone. Temporary passports use a letter and seven digits instead.",
  "semantic_type": "passport",
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "DE"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[CFGHJK][0-9CFGHJKLMNPRTVWXYZ]{8}\\d?D?$",
  "examples": [
    {
      "value": "CJ383NJ2P",
      "description": "Synthetic number in the documented format",
      "valid": true
    },
    {
      "value": "CJ383NJ2P6",
      "description": "The same number with its machine-readable zone check digit",
      "valid": true
    },
    {
      "value": "F48TTP2PP",
      "description": "Synthetic number in the documented format",
      "valid": true
    },
    {
      "value": "BJ383NJ2P",
      "description": "B is not used",
      "valid": false
    },
    {
      "value": "CJ383NJ2",
      "description": "Eight characters",
      "valid": false
    }
  ],
  "mappings": {
    "fhir": "http://hl7.org/fhir/sid/passport-DEU",
    "google_dlp": "GERMANY_PASSPORT",
    "presidio": "DE_PASSPORT",
    "purview": [
      "German Passport Number",
      "Germany passport number",
      "EU passport number"
    ]
  },
  "links": [
    {
      "type": "doc",
      "url": "https://learn.microsoft.com/en-us/purview/sit-defn-germany-passport-number"
    },
    {
      "type": "wikipedia",
      "url": "https://de.wikipedia.org/wiki/Ausweisnummer"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/German_passport"
    }
  ],
  "translations": {
    "de": {
      "name": "Reisepassnummer"
    },
    "ru": {
      "name": "Номер паспорта Германии",
      "doc": "Серийный номер немецкого заграничного паспорта - девять букв и цифр - код выдавшего органа и случайный номер."
    }
  },
  "detected_by": {
    "tools": [
      "amazonmacie",
      "awsglue",
      "azureailanguage",
      "googledlp",
      "microsoftpurview",
      "nightfall",
      "presidio",
      "snowflake"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/DE/persons/de_passport.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/DE/persons/de_passport.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/DE/persons/de_passport.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/de_passport",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/de_passport.json"
  }
}