---
id: "es_centro_docente_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Spanish school code (código de centro docente)"
regexp: "^(?:0[1-9]|[1-4]\\d|5[0-2])\\d{6}$"
categories: ["education"]
country: ["ES"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/es_centro_docente_code"
---

# Spanish school code (código de centro docente) (`es_centro_docente_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.

Eight-digit code of a school or other teaching centre in the Spanish state register of non- university teaching centres (Registro Estatal de Centros Docentes no Universitarios). The order of 27 October 1977 that set it up gives the structure, two digits of the province, five digits of the order of assignment and a control digit; the rule of the control digit is not published. Regional education departments use the code as the key of their open data on schools, enrolment and staff (COD_CENTRO, codigo, cod_centro), and the register of universities, centres and degrees (RUCT) numbers university centres with eight digits that start with the province in the same way.

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Education (education)
- Countries: Spain (ES)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:0[1-9]|[1-4]\d|5[0-2])\d{6}$
```

## Examples

- `28051591` — Escuela de Ingeniería de Fuenlabrada, a centre of the Universidad Rey Juan Carlos in RUCT
- `28053897` — Centro de Educación Superior CEDEU in RUCT
- `03013698` — a school in the province of Alicante in the enrolment tables of the Generalitat Valenciana
- `99013698` (invalid example) — no province 99
- `2805159` (invalid example) — seven digits

## Metacrafter rules

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

- `escentrodocentecodebyname` (field, `es/es_codes.yaml`)

## Supported by tools

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

## Translations

- es: Código de centro docente
- ru: Код учебного заведения (Испания)

## Sources

- doc: <https://www.boe.es/buscar/doc.php?id=BOE-A-1977-26715>
- doc: <https://www.boe.es/buscar/act.php?id=BOE-A-2003-4927>

## Quality

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

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