{
  "id": "gb_mpan",
  "name": "UK electricity Meter Point Administration Number (MPAN core)",
  "status": "draft",
  "doc": "Meter Point Administration Number, also called the supply number, which identifies an exit point of the electricity network in Great Britain. The 13-digit core has a 2-digit distributor id, 10 digits for the meter point and a check digit: the first twelve digits are multiplied by the primes 3, 5, 7, 13, 17, 19, 23, 29, 31, 37, 41 and 43, and the sum modulo 11 modulo 10 is the check digit. On bills the core is preceded by a top line with the profile class, the meter time switch code and the line loss factor class, which together make the full 21-character number.",
  "categories": [
    {
      "id": "energy",
      "name": "Energy (electricity, gas, metering)"
    }
  ],
  "country": [
    {
      "id": "GB",
      "name": "United Kingdom"
    }
  ],
  "langs": [
    {
      "id": "common",
      "name": "Common to most languages"
    }
  ],
  "is_pii": false,
  "classification": "identifier",
  "regexp": "^\\d{13}$",
  "examples": [
    {
      "value": "1022916926424",
      "description": "Synthetic core with a valid check digit"
    },
    {
      "value": "2371792728614",
      "description": "Synthetic core with a valid check digit"
    },
    {
      "value": "102291692642",
      "valid": false,
      "description": "Twelve digits instead of thirteen"
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Meter_Point_Administration_Number"
    }
  ],
  "type": "datatype",
  "translations": {},
  "patterns": [
    {
      "id": "gb_mpan_full",
      "name": "UK electricity MPAN, full 21-character form",
      "status": "draft",
      "doc": "Full Meter Point Administration Number as printed on electricity bills in Great Britain, without the separating spaces: a 2-digit profile class (00 to 08), a 3-digit meter time switch code, a 3-character line loss factor class and the 13-digit MPAN core.",
      "semantic_type": "gb_mpan",
      "country": [
        {
          "id": "GB",
          "name": "United Kingdom"
        }
      ],
      "langs": [
        {
          "id": "common",
          "name": "Common to most languages"
        }
      ],
      "regexp": "^0[0-8]\\d{3}[0-9A-Z]{3}\\d{13}$",
      "examples": [
        {
          "value": "018018121022916926424",
          "description": "Synthetic full number with profile class 01"
        },
        {
          "value": "098018121022916926424",
          "valid": false,
          "description": "Profile class 09 does not exist"
        }
      ],
      "links": [
        {
          "type": "wikipedia",
          "url": "https://en.wikipedia.org/wiki/Meter_Point_Administration_Number"
        }
      ],
      "type": "pattern",
      "is_pii": false,
      "categories": [
        {
          "id": "energy",
          "name": "Energy (electricity, gas, metering)"
        }
      ],
      "classification": "identifier",
      "translations": {}
    }
  ]
}