---
id: "py_department_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Paraguayan department code"
regexp: "^(?:0?\\d|1[0-7])$"
categories: ["geo", "government"]
country: ["PY"]
langs: ["es"]
quality: 90
url: "https://registry.apicrafter.io/datatype/py_department_code"
---

# Paraguayan department code (`py_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.

Two-digit code of a department of Paraguay in the classification of the national statistics institute: 00 Asunción, 01 Concepción, 02 San Pedro, 03 Cordillera, 04 Guairá, 05 Caaguazú, 06 Caazapá, 07 Itapúa, 08 Misiones, 09 Paraguarí, 10 Alto Paraná, 11 Central, 12 Ñeembucú, 13 Amambay, 14 Canindeyú, 15 Presidente Hayes, 16 Boquerón, 17 Alto Paraguay. Tables drop the leading zero.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Paraguay (PY)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:0?\d|1[0-7])$
```

## Examples

- `11` — Central
- `00` — Asunción
- `7` — Itapúa without the leading zero
- `18` (invalid example) — Codes end at 17

## Metacrafter rules

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

- `pydepartmentcodebyname` (field, `py/py_geo.yaml`)

## Supported by tools

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

## Translations

- ru: Код департамента Парагвая

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Departments_of_Paraguay>

## Quality

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

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