{
  "id": "mn_aimag_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Mongolian province code (aimag code)",
  "doc": "Three-digit code of a Mongolian province (aimag) or of Ulaanbaatar in the classification of administrative units of the National Statistics Office: a zero and the two-digit statistical code of the province, 011 for Ulaanbaatar, 021 for Dornod, 084 for Khovd. The tens digit groups the provinces by region. The codes of soums (mn_soum_code) and bags (mn_bag_code) start with it, and the humanitarian P-code adds MN to the two digits (MN84).",
  "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])$",
  "examples": [
    {
      "value": "011",
      "description": "Ulaanbaatar",
      "valid": true
    },
    {
      "value": "021",
      "description": "Dornod",
      "valid": true
    },
    {
      "value": "084",
      "description": "Khovd",
      "valid": true
    },
    {
      "value": "012",
      "description": "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": "mnaimagcodebyname",
        "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_aimag_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/MN/geo/mn_aimag_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/MN/geo/mn_aimag_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/mn_aimag_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/mn_aimag_code.json"
  }
}