---
id: "cr_cr"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "persons"]
country: ["CR"]
langs: ["es"]
quality: 88
url: "http://registry.apicrafter.io/datatype/cr_cr"
---

# Costa Rican foreigner residence ID number (DIMEX) (`cr_cr`)

> **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.

Cédula de Residencia, also called DIMEX (Documento de Identificación Migratorio para Extranjeros), the identifier of foreigners in Costa Rica. It has 11 or 12 digits: 1, a 3-digit code of the country of origin, then a sequence over all issued numbers and a sequence per country.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Costa Rica (CR)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^1\d{3}-?\d{1,8}-?\d{1,8}$
```

## Examples

- `165997848390` — Synthetic number in the documented format
- `12516350370` — Synthetic number in the documented format

## Mappings

- dpv: `pd:OfficialID`
- stdnum: `cr.cr`

## Supported by tools

- `dataprep`
- `pythonstdnum`

## Translations

- es: Cédula de Residencia (DIMEX)

## Sources

- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.cr.cr.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_cr_cr.html>

## Quality

Score 88/100. Missing: negative example, authoritative source link.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/cr_cr.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CR/persons/cr_cr.yaml>
