{
  "id": "gb_upn",
  "kind": "datatype",
  "status": "draft",
  "name": "English unique pupil number (UPN)",
  "doc": "Unique Pupil Number, the 13-character code of a pupil in English state schools. It is a check letter, a 3-digit local authority number, a 4-digit school establishment number, two digits for the year of issue and a 3-digit serial number. Temporary numbers end with a letter.",
  "is_pii": true,
  "categories": [
    "pii",
    "persons",
    "education"
  ],
  "country": [
    "GB"
  ],
  "langs": [
    "en"
  ],
  "classification": "identifier",
  "regexp": "^[A-HJ-NP-RT-Z]\\d{11}[0-9A-HJ-NP-RT-Z]$",
  "examples": [
    {
      "value": "Q202066535762",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "Z208803304719",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "Q2020665357627",
      "description": "One character too many",
      "valid": false
    }
  ],
  "mappings": {
    "stdnum": "gb.upn"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://www.gov.uk/government/publications/unique-pupil-numbers"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.gb.upn.html"
    },
    {
      "type": "other",
      "url": "https://docs.dataprep.ai/user_guide/clean/clean_gb_upn.html"
    }
  ],
  "detected_by": {
    "tools": [
      "dataprep",
      "pythonstdnum"
    ]
  },
  "quality": {
    "score": 95,
    "missing": [
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/GB/education/gb_upn.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/GB/education/gb_upn.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/GB/education/gb_upn.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/gb_upn",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/gb_upn.json"
  }
}