{
  "id": "ch_ewid",
  "kind": "datatype",
  "status": "draft",
  "name": "Swiss federal dwelling identifier (EWID)",
  "doc": "Number of a dwelling inside its building in the Swiss Federal Register of Buildings and Dwellings (GWR). It is a whole number from 1 to 900 and identifies a dwelling only together with the EGID of the building, so tables carry both columns.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "realestate",
    "government"
  ],
  "country": [
    "CH"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:[1-9]\\d?|[1-8]\\d{2}|900)$",
  "examples": [
    {
      "value": "1",
      "description": "the first dwelling of a building",
      "valid": true
    },
    {
      "value": "12",
      "valid": true
    },
    {
      "value": "901",
      "description": "above the range of the register",
      "valid": false
    },
    {
      "value": "0",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://dam-api.bfs.admin.ch/hub/api/dam/assets/7008785/master"
    }
  ],
  "translations": {
    "de": {
      "name": "Eidgenössischer Wohnungsidentifikator (EWID)"
    },
    "fr": {
      "name": "Identificateur fédéral de logement (EWID)"
    },
    "ru": {
      "name": "Федеральный идентификатор жилища Швейцарии (EWID)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "chewidbyname",
        "type": "field",
        "match": "regex",
        "file": "ch/ch_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/CH/realestate/ch_ewid.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CH/realestate/ch_ewid.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CH/realestate/ch_ewid.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ch_ewid",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ch_ewid.json"
  }
}