{
  "id": "gb_community_safety_partnership_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Community safety partnership code (England and Wales, GSS)",
  "doc": "GSS code of a community safety partnership, the statutory partnership of councils, police and other bodies that reduces crime in an area (CSPyyCD): E22 in England, W14 in Wales.",
  "parent": "ukgsscode",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "country": [
    "GB"
  ],
  "langs": [
    "en"
  ],
  "classification": "categorical",
  "regexp": "^(?:E22|W14)\\d{6}$",
  "examples": [
    {
      "value": "E22000221",
      "description": "Community safety partnership",
      "valid": true
    },
    {
      "value": "W14000001",
      "description": "Community safety partnership in Wales",
      "valid": true
    },
    {
      "value": "E23000001",
      "description": "A police force area code (E23)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/ONS_coding_system"
    },
    {
      "type": "doc",
      "url": "https://www.ons.gov.uk/methodology/geography/geographicalproducts/namescodesandlookups/codehistorydatabasechd"
    }
  ],
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "gbcommunitysafetypartnershipcodevalue",
        "type": "data",
        "match": "regex",
        "file": "gb/gb_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 85,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/GB/geo/gb_community_safety_partnership_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/GB/geo/gb_community_safety_partnership_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/GB/geo/gb_community_safety_partnership_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/gb_community_safety_partnership_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/gb_community_safety_partnership_code.json"
  }
}