---
id: "espassport"
kind: "pattern"
status: "stable"
is_pii: true
categories: ["pii", "persons"]
country: ["ES"]
langs: ["es"]
quality: 65
url: "http://registry.apicrafter.io/datatype/espassport"
---

# Spanish passport number (`espassport`)

Number of Spanish passport

- Pattern of: `passport`
- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Spain (ES)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-z0-9]{2,3}[0-9]{6}$
```

## Mappings

- fhir: `http://hl7.org/fhir/sid/passport-ESP`
- google_dlp: `SPAIN_PASSPORT`
- presidio: `ES_PASSPORT`
- purview: `Spain passport number`, `EU passport number`

## Metacrafter rules

4 rules: 2 match the field name, 2 match values.

- `espassportfield` (field, `es/es_persons.yaml`)
- `espassportvalue` (data, `es/es_persons.yaml`)
- `es_pii_espassportfield` (field, `pii/es/es_pii.yaml`)
- `es_pii_espassportvalue` (data, `pii/es/es_pii.yaml`)

## Supported by tools

- `amazonmacie`
- `awsglue`
- `googledlp`
- `metacrafter`
- `microsoftpurview`
- `presidio`
- `snowflake`

## Sources

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

## Quality

Score 65/100. Missing: longer description, examples, negative example, translation.

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