{
  "id": "mn_soum_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Mongolian district code (soum code)",
  "doc": "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.",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "MN"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^0(?:11|2[123]|4[1-68]|6[1-57]|8[1-5])\\d{2}$",
  "examples": [
    {
      "value": "01122",
      "description": "Khan-Uul district of Ulaanbaatar",
      "valid": true
    },
    {
      "value": "02101",
      "description": "Kherlen soum of Dornod",
      "valid": true
    },
    {
      "value": "06401",
      "valid": true
    },
    {
      "value": "01201",
      "description": "012 is not a province code",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "other",
      "url": "https://rdrr.io/cran/mongolmaps/man/mn_codes.html"
    }
  ],
  "translations": {
    "mn": {
      "name": "Сумын код"
    },
    "ru": {
      "name": "Код сомона Монголии"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "mnsoumcodebyname",
        "type": "field",
        "match": "regex",
        "file": "mn/mn_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 83,
    "missing": [
      "authoritative source link",
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/MN/geo/mn_soum_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/MN/geo/mn_soum_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/MN/geo/mn_soum_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/mn_soum_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/mn_soum_code.json"
  }
}