{
  "id": "br_cns",
  "kind": "datatype",
  "status": "draft",
  "name": "Brazilian national health card number (CNS)",
  "doc": "Number of the Cartão Nacional de Saúde, the 15-digit identifier of a patient of the Brazilian Unified Health System (SUS), issued by the Ministry of Health and DATASUS. According to the ANS, numbers start with 1 or 2 (derived from the PIS base), 7 (generated by DATASUS) or 8 or 9 (generated locally). The DATASUS FHIR profile only requires 15 digits, which the regexp follows.",
  "is_pii": true,
  "categories": [
    "medical",
    "pii",
    "persons"
  ],
  "country": [
    "BR"
  ],
  "langs": [
    "pt"
  ],
  "classification": "identifier",
  "regexp": "^\\d{15}$",
  "examples": [
    {
      "value": "764602784845945",
      "description": "Synthetic value in the documented format",
      "valid": true
    },
    {
      "value": "76460278484594",
      "description": "Fourteen digits",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "http://www.ans.gov.br/images/FAQ_CNS.pdf"
    }
  ],
  "translations": {
    "pt": {
      "name": "Cartão Nacional de Saúde (CNS)"
    }
  },
  "quality": {
    "score": 73,
    "missing": [
      "second example",
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/BR/medical/br_cns.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BR/medical/br_cns.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/medical/br_cns.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/br_cns",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/br_cns.json"
  }
}