---
id: "hk_hkid"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "persons"]
country: ["HK"]
langs: ["zh", "en"]
quality: 75
url: "http://registry.apicrafter.io/datatype/hk_hkid"
---

# Hong Kong identity card number (HKID) (`hk_hkid`)

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

Number of the Hong Kong identity card: one or two letters, six digits and a check character (a digit or A), which is often written in parentheses.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Hong Kong (HK)
- Languages: Chinese (zh), English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Z]{1,2}\d{6} ?(?:[0-9A]|\([0-9A]\))$
```

## Mappings

- dpv: `pd:OfficialID`
- purview: `Hong Kong identity card (HKID) number`

## Supported by tools

- `awsglue`
- `azureailanguage`
- `databricks`
- `microsoftpurview`
- `nightfall`

## Sources

- doc: <https://learn.microsoft.com/en-us/purview/sit-defn-hong-kong-identity-card-number>
- wikipedia: <https://en.wikipedia.org/wiki/Hong_Kong_identity_card>

## Quality

Score 75/100. Missing: examples, negative example, translation.

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