{
  "id": "smoking_status",
  "kind": "datatype",
  "status": "draft",
  "name": "Smoking status",
  "doc": "Whether a person smokes tobacco, as health surveys and clinical records class it: never smoker, former smoker and current smoker, the current smokers often split into daily and occasional (every day, some days). Questionnaires word the options as sentences (I smoke regularly, I used to smoke but quit, I have never smoked; fumo habitualmente, antes fumaba pero lo dejé, nunca he fumado), and data files hold them as words, as codes of a form (nunca_he_fumado) or as numbers with a codebook. A yes or no answer to Do you smoke? is a boolean, and the number of cigarettes a day is a count.",
  "parent": "category",
  "is_pii": false,
  "categories": [
    "medical",
    "persons"
  ],
  "langs": [
    "en",
    "es"
  ],
  "classification": "categorical",
  "examples": [
    {
      "value": "Never smoker",
      "valid": true
    },
    {
      "value": "Former smoker",
      "valid": true
    },
    {
      "value": "Current smoker",
      "valid": true
    },
    {
      "value": "Ex-smoker",
      "valid": true
    },
    {
      "value": "nunca_he_fumado",
      "description": "Spanish option of a survey form: I have never smoked",
      "valid": true
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Tobacco_smoking"
    }
  ],
  "translations": {
    "es": {
      "name": "Hábito tabáquico"
    },
    "ru": {
      "name": "Статус курения"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "smokingstatusbyname",
        "type": "field",
        "match": "regex",
        "file": "common/survey.yaml"
      }
    ]
  },
  "quality": {
    "score": 65,
    "missing": [
      "regexp",
      "negative example",
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/medical/smoking_status.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/medical/smoking_status.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/medical/smoking_status.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/smoking_status",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/smoking_status.json"
  }
}