{
  "id": "br_nup",
  "kind": "datatype",
  "status": "draft",
  "name": "Brazilian NUP protocol number (Número Único de Protocolo)",
  "doc": "The single protocol number of documents and processes of the Brazilian federal administration: the five-digit code of the unit that registered it, a six-digit sequence number, the four-digit year and two check digits computed modulo 11 (99903.000615/2016-03). Requests under the access to information law (Fala.BR) carry it, often as 17 digits. Some tables leave out the code of the unit (029358/2019-39).",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "government"
  ],
  "country": [
    "BR"
  ],
  "langs": [
    "pt"
  ],
  "classification": "identifier",
  "regexp": "^\\d{5}\\.?\\d{6}/?\\d{4}-?\\d{2}$",
  "examples": [
    {
      "value": "99903.000615/2016-03",
      "description": "a request to the BNDES under the access to information law",
      "valid": true
    },
    {
      "value": "99903000615201603",
      "description": "the same number as digits",
      "valid": true
    },
    {
      "value": "99903.000615/16-03",
      "description": "a two-digit year",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.gov.br/economia/pt-br/assuntos/processo-eletronico-nacional/conteudo/numero-unico-de-protocolo-nup"
    }
  ],
  "translations": {
    "pt": {
      "name": "Número Único de Protocolo (NUP)"
    },
    "ru": {
      "name": "Единый номер протокола (NUP, Бразилия)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "brnupbyname",
        "type": "field",
        "match": "regex",
        "file": "br/br_government.yaml"
      },
      {
        "rule": "brnupdigitsvalue",
        "type": "data",
        "match": "func",
        "file": "br/br_government.yaml"
      },
      {
        "rule": "brnupvalue",
        "type": "data",
        "match": "func",
        "file": "br/br_government.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/BR/government/br_nup.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BR/government/br_nup.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/government/br_nup.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/br_nup",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/br_nup.json"
  }
}