{
  "id": "ar_indec_department_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Argentine department code (INDEC)",
  "doc": "Five-digit code of an Argentine department (a partido in Buenos Aires Province, a comuna in the City of Buenos Aires) in the INDEC geographic coding: the two-digit province code and three digits for the department, as in 06014 Adolfo Gonzales Chaves (Buenos Aires) and 30015 Concordia (Entre Ríos). Data of the Ministries of Production and Health and of the crime statistics drop the leading zero (6014, 2007), and older sources number the comunas of the City of Buenos Aires 02001 to 02015 where georef uses 02007 to 02105. Census radius lists and provincial tables give the three-digit department part alone in a column next to the province code (CODDEPTO 098 for Río Cuarto in Córdoba, DEPTO 7 without the zeros); the department parts are mostly multiples of seven.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "AR"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "regexp": "^(?:(?:0[26]|1[048]|2[26]|3[048]|4[26]|5[048]|6[26]|7[048]|8[26]|9[04]))?\\d{3}$",
  "examples": [
    {
      "value": "06014",
      "description": "Adolfo Gonzales Chaves, Buenos Aires",
      "valid": true
    },
    {
      "value": "30015",
      "description": "Concordia, Entre Ríos",
      "valid": true
    },
    {
      "value": "02007",
      "description": "Comuna 1, Ciudad Autónoma de Buenos Aires",
      "valid": true
    },
    {
      "value": "58035",
      "description": "Confluencia, Neuquén",
      "valid": true
    },
    {
      "value": "098",
      "description": "Río Cuarto, the department part alone in a Córdoba radius list (CODDEPTO)",
      "valid": true
    },
    {
      "value": "6014",
      "description": "leading zero dropped",
      "valid": false
    },
    {
      "value": "03014",
      "description": "no province has the code 03",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://datosgobar.github.io/paquete-apertura-datos/guia-interoperables/"
    },
    {
      "type": "doc",
      "url": "https://datos.gob.ar/dataset/servicio-de-normalizacion-de-direcciones-y-unidades-territoriales-de-argentina"
    }
  ],
  "translations": {
    "es": {
      "name": "Código de departamento (INDEC)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "arindecdepartmentpartbyname",
        "type": "field",
        "match": "regex",
        "file": "ar_country/ar_census.yaml"
      },
      {
        "rule": "arbahradepartmentpartbyname",
        "type": "field",
        "match": "regex",
        "file": "ar_country/ar_geo.yaml"
      },
      {
        "rule": "arindecdepartmentcodebyname",
        "type": "field",
        "match": "regex",
        "file": "ar_country/ar_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/AR/geo/ar_indec_department_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/AR/geo/ar_indec_department_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/AR/geo/ar_indec_department_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ar_indec_department_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ar_indec_department_code.json"
  }
}