---
id: "thpassport"
kind: "datatype"
status: "stable"
is_pii: true
categories: ["pii", "persons"]
country: ["TH"]
langs: ["th"]
quality: 65
url: "http://registry.apicrafter.io/datatype/thpassport"
---

# Thai passport by field name (`thpassport`)

Thai passport by field name identifier

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Thailand (TH)
- Languages: Thai (th)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Z0-9]{6,10}$
```

## Mappings

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

## Metacrafter rules

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

- `thpassportfield` (field, `pii/th/th_pii.yaml`)
- `thpassportvalue` (data, `pii/th/th_pii.yaml`)
- `th_persons_thpassportfield` (field, `th/th_persons.yaml`)
- `th_persons_thpassportvalue` (data, `th/th_persons.yaml`)

## Supported by tools

- `awsglue`
- `metacrafter`
- `nightfall`

## Sources

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

## Quality

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

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