---
id: "hdx_pcode"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
langs: ["common"]
quality: 70
url: "https://registry.apicrafter.io/datatype/hdx_pcode"
---

# OCHA place code (p-code) (`hdx_pcode`)

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

Place code of an administrative area in the Common Operational Datasets of OCHA, published on HDX: the ISO 3166-1 alpha-2 code of the country and digits for each level below it, as in GE11. Level 0 uses the alpha-2 or alpha-3 code alone.

- Parent datatype: `id`
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Z]{2}\d{1,12}$
```

## Examples

- `GE11` — Region of Georgia
- `GE44` — Region of Georgia
- `GE-11` (invalid example) — With a hyphen

## Metacrafter rules

1 rules: 0 match the field name, 1 match values.

- `hdxpcodevalue` (data, `common/geo.yaml`)

## Supported by tools

- `metacrafter`

## Quality

Score 70/100. Missing: source link, mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/hdx_pcode.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/hdx_pcode.yaml>
