---
id: "mn_soum_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Mongolian district code (soum code)"
regexp: "^0(?:11|2[123]|4[1-68]|6[1-57]|8[1-5])\\d{2}$"
categories: ["geo", "government"]
country: ["MN"]
langs: ["common"]
quality: 83
url: "https://registry.apicrafter.io/datatype/mn_soum_code"
---

# Mongolian district code (soum code) (`mn_soum_code`)

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

Five-digit code of a Mongolian soum or of a district of Ulaanbaatar in the classification of administrative units of the National Statistics Office, the code of its province (mn_aimag_code) and two digits, such as 01122 for Khan-Uul in Ulaanbaatar or 02101 for Kherlen in Dornod.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Mongolia (MN)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^0(?:11|2[123]|4[1-68]|6[1-57]|8[1-5])\d{2}$
```

## Examples

- `01122` — Khan-Uul district of Ulaanbaatar
- `02101` — Kherlen soum of Dornod
- `06401`
- `01201` (invalid example) — 012 is not a province code

## Metacrafter rules

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

- `mnsoumcodebyname` (field, `mn/mn_geo.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- mn: Сумын код
- ru: Код сомона Монголии

## Sources

- other: <https://rdrr.io/cran/mongolmaps/man/mn_codes.html>

## Quality

Score 83/100. Missing: authoritative source link, mapping (Wikidata, Schema.org, ...).

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