{
  "id": "chahv",
  "kind": "datatype",
  "status": "stable",
  "name": "Swiss AHV Number",
  "doc": "Swiss AHV (Alters- und Hinterlassenenversicherung) social security number",
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "CH"
  ],
  "langs": [
    "de",
    "fr",
    "it"
  ],
  "classification": "identifier",
  "regexp": "^756\\.?\\d{4}\\.?\\d{4}\\.?\\d{2}$",
  "examples": [
    {
      "value": "756.9217.0769.85",
      "description": "AHV/AVS number format (EAN-13 check digit)",
      "valid": true
    }
  ],
  "mappings": {
    "dpv": "pd:OfficialID",
    "fta": "IDENTITY.SSN_CH",
    "purview": [
      "Swiss Social Security Number AHV",
      "Switzerland SSN AHV number"
    ],
    "stdnum": "ch.ssn"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Swiss_social_security_number"
    }
  ],
  "detected_by": {
    "tools": [
      "awsglue",
      "azureailanguage",
      "databricks",
      "dataprep",
      "fta",
      "metacrafter",
      "microsoftpurview",
      "pythonstdnum"
    ],
    "metacrafter_rules": [
      {
        "rule": "chahvfield",
        "type": "field",
        "match": "text",
        "file": "ch/ch_persons.yaml"
      },
      {
        "rule": "chahvvalue",
        "type": "data",
        "match": "ppr",
        "file": "ch/ch_persons.yaml"
      },
      {
        "rule": "ch_pii_chahvfield",
        "type": "field",
        "match": "text",
        "file": "pii/ch/ch_pii.yaml"
      },
      {
        "rule": "ch_pii_chahvvalue",
        "type": "data",
        "match": "ppr",
        "file": "pii/ch/ch_pii.yaml"
      }
    ]
  },
  "quality": {
    "score": 83,
    "missing": [
      "second example",
      "negative example",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/CH/persons/chahv.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CH/persons/chahv.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CH/persons/chahv.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/chahv",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/chahv.json"
  }
}