---
id: "chpassport"
kind: "datatype"
status: "stable"
is_pii: true
categories: ["pii", "persons"]
country: ["CH"]
langs: ["de", "fr", "it"]
quality: 83
url: "http://registry.apicrafter.io/datatype/chpassport"
---

# Swiss Passport Number (`chpassport`)

Swiss passport number used for international travel identification

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Switzerland (CH)
- Languages: German (de), French (fr), Italian (it)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Z][0-9]{8}$
```

## Examples

- `A12345678` — Example Swiss passport number

## Mappings

- dpv: `pd:Passport`
- fhir: `http://hl7.org/fhir/sid/passport-CHE`

## Metacrafter rules

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

- `chpassportfield` (field, `ch/ch_persons.yaml`)
- `chpassportvalue` (data, `ch/ch_persons.yaml`)
- `ch_pii_chpassportfield` (field, `pii/ch/ch_pii.yaml`)
- `ch_pii_chpassportvalue` (data, `pii/ch/ch_pii.yaml`)

## Supported by tools

- `awsglue`
- `metacrafter`

## Sources

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

## Quality

Score 83/100. Missing: second example, negative example, translation.

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