---
id: "ukpassport"
kind: "pattern"
status: "stable"
is_pii: true
categories: ["pii", "persons"]
country: ["GB"]
langs: ["en"]
quality: 55
url: "http://registry.apicrafter.io/datatype/ukpassport"
---

# British passport number (`ukpassport`)

Number of the passport issued by the United Kingdom

- Pattern of: `passport`
- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: United Kingdom (GB)
- Languages: English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
[0-9]{9}
```

## Mappings

- fhir: `http://hl7.org/fhir/sid/passport-GBR`
- google_dlp: `UK_PASSPORT`
- presidio: `UK_PASSPORT`
- purview: `U.S./U.K. passport number`, `EU passport number`

## Metacrafter rules

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

- `ukpassportfield` (field, `gb/gb_persons.yaml`)
- `ukpassportvalue` (data, `gb/gb_persons.yaml`)
- `gb_pii_ukpassportfield` (field, `pii/gb/gb_pii.yaml`)
- `gb_pii_ukpassportvalue` (data, `pii/gb/gb_pii.yaml`)

## Supported by tools

- `amazonmacie`
- `awsglue`
- `azureailanguage`
- `googledlp`
- `metacrafter`
- `microsoftpurview`
- `nightfall`
- `presidio`

## Sources

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

## Quality

Score 55/100. Missing: longer description, anchored regexp, examples, negative example, translation.

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