{
  "id": "bo_department_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Bolivian department code (INE)",
  "doc": "Code of a Bolivian department in the geographic coding of the national statistics institute INE: 01 Chuquisaca, 02 La Paz, 03 Cochabamba, 04 Oruro, 05 Potosí, 06 Tarija, 07 Santa Cruz, 08 Beni and 09 Pando. It is the first two digits of the province, municipality and community codes (bo_province_code, bo_municipality_code, bo_community_code). Spreadsheets drop the zero (1 to 9), and a digit alone fits many other codings, so use the field name (COD_DEPTO, cod_depto, CODDEPTO).",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "BO"
  ],
  "langs": [
    "es"
  ],
  "classification": "categorical",
  "regexp": "^0?[1-9]$",
  "examples": [
    {
      "value": "02",
      "description": "La Paz",
      "valid": true
    },
    {
      "value": "07",
      "description": "Santa Cruz",
      "valid": true
    },
    {
      "value": "9",
      "description": "Pando, the zero dropped",
      "valid": true
    },
    {
      "value": "10",
      "description": "Bolivia has nine departments",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.ine.gob.bo/"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Departments_of_Bolivia"
    }
  ],
  "translations": {
    "es": {
      "name": "Código de departamento (INE)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "bodepartmentcodebyname",
        "type": "field",
        "match": "regex",
        "file": "bo/bo_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/BO/geo/bo_department_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BO/geo/bo_department_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BO/geo/bo_department_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/bo_department_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/bo_department_code.json"
  }
}