{
  "id": "ca_eruid",
  "kind": "datatype",
  "status": "draft",
  "name": "Canadian economic region code (ERUID)",
  "doc": "Four-digit code of an economic region of Statistics Canada, a group of whole census divisions used for regional economic statistics such as the Labour Force Survey: the two-digit code of the province or territory and the two-digit code of the region within it (3530 Toronto, 1210 Cape Breton). A census division code (casgc) has the same four digits, so the field name (ERUID, ER, economic region) tells them apart.",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "CA"
  ],
  "langs": [
    "en",
    "fr"
  ],
  "classification": "identifier",
  "regexp": "^(?:1[0-3]|24|35|4[6-8]|59|6[0-2])\\d{2}$",
  "examples": [
    {
      "value": "3530",
      "description": "Toronto, Ontario",
      "valid": true
    },
    {
      "value": "1210",
      "description": "Cape Breton, Nova Scotia",
      "valid": true
    },
    {
      "value": "9930",
      "description": "99 is not a province code",
      "valid": false
    },
    {
      "value": "35300",
      "description": "five digits",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www150.statcan.gc.ca/n1/pub/92f0138m/92f0138m2019001-eng.htm"
    },
    {
      "type": "doc",
      "url": "https://www.statcan.gc.ca/en/subjects/standard/sgc/2021/index"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code de région économique du Canada (REIDU)"
    },
    "ru": {
      "name": "Код экономического региона Канады (ERUID)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "caeruidbyname",
        "type": "field",
        "match": "regex",
        "file": "ca/ca_stats.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/CA/geo/ca_eruid.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CA/geo/ca_eruid.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/geo/ca_eruid.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ca_eruid",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ca_eruid.json"
  }
}