{
  "id": "mn_bag_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Mongolian subdistrict code (bag or khoroo code)",
  "doc": "Seven-digit code of a Mongolian bag or of a khoroo of Ulaanbaatar in the classification of administrative units of the National Statistics Office, the code of its soum or district (mn_soum_code) and two digits, such as 0211353 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{4}$",
  "examples": [
    {
      "value": "0211353",
      "valid": true
    },
    {
      "value": "0640151",
      "valid": true
    },
    {
      "value": "0830175",
      "valid": true
    },
    {
      "value": "02113",
      "description": "A soum code (mn_soum_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": "mnbagcodebyname",
        "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_bag_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/MN/geo/mn_bag_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/MN/geo/mn_bag_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/mn_bag_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/mn_bag_code.json"
  }
}