---
id: "bo_department_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Bolivian department code (INE)"
regexp: "^0?[1-9]$"
categories: ["geo", "government"]
country: ["BO"]
langs: ["es"]
quality: 90
url: "https://registry.apicrafter.io/datatype/bo_department_code"
---

# Bolivian department code (INE) (`bo_department_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

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 datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Bolivia (BO)
- Languages: Spanish (es)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^0?[1-9]$
```

## Examples

- `02` — La Paz
- `07` — Santa Cruz
- `9` — Pando, the zero dropped
- `10` (invalid example) — Bolivia has nine departments

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `bodepartmentcodebyname` (field, `bo/bo_geo.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- es: Código de departamento (INE)

## Sources

- doc: <https://www.ine.gob.bo/>
- wikipedia: <https://en.wikipedia.org/wiki/Departments_of_Bolivia>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/bo_department_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BO/geo/bo_department_code.yaml>
