{
  "id": "br_siafi_municipality_code",
  "kind": "pattern",
  "status": "draft",
  "name": "Brazilian municipality code (SIAFI)",
  "doc": "Four-digit code of a Brazilian municipality in SIAFI, the financial administration system of the federal government, which federal transfer data uses (for example FUNDEB transfers). It differs from the seven-digit IBGE code (br_municipality_code). Leading zeros are part of the code.",
  "semantic_type": "br_municipality",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "BR"
  ],
  "langs": [
    "pt"
  ],
  "classification": "identifier",
  "regexp": "^\\d{4}$",
  "examples": [
    {
      "value": "0643",
      "description": "Municipality in FUNDEB transfer data",
      "valid": true
    },
    {
      "value": "0157",
      "description": "Municipality in FUNDEB transfer data",
      "valid": true
    },
    {
      "value": "643",
      "description": "Leading zero dropped",
      "valid": false
    },
    {
      "value": "3550308",
      "description": "IBGE code",
      "valid": false
    }
  ],
  "translations": {
    "pt": {
      "name": "Código SIAFI do município"
    }
  },
  "quality": {
    "score": 65,
    "missing": [
      "source link",
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/BR/geo/br_siafi_municipality_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BR/geo/br_siafi_municipality_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/geo/br_siafi_municipality_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/br_siafi_municipality_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/br_siafi_municipality_code.json"
  }
}