[
  {
    "phenotype_id": "PH621",
    "phenotype_version_id": 1242,
    "name": "Smoking Status",
    "definition": "Data:\n\nCPRD and THIN obtain their data from practices using the Vision electronic record system, while QResearch obtains data from practices using EMIS software. We felt that comparisons would be most informative between databases drawing data from different capture systems. Across the time-period studied, two versions of EMIS were in use, the more common being the text-based EMIS LV system with navigation and data entry mainly via the keyboard; EMIS PCS, which is Windows-based with mouse control and drop-down menus, was introduced from 1999. Vision was Windows-based throughout the study period. A small-scale direct comparison of EMIS LV and Vision indicated that coded data entry, excepting prescribing information, was faster with Vision and that more items were likely to be coded. Practices running Vision have slightly higher achievement rates for most Quality and Outcomes Framework (QOF) indicators than practices running either version of EMIS, even after controlling for differences in practice and area characteristics. We had access to CPRD, and therefore chose to replicate a study previously conducted using QResearch. CPRD and QResearch both draw data from general practices spread throughout the UK—currently more than 600 practices each—and comparisons to the national age-gender structure and prevalence rates for common conditions mostly show good correspondence for both datasets. For practical reasons, we focused on studies of the effectiveness of medicinal interventions and, after assessing the available studies, chose to replicate an investigation into the effects of statins on the mortality of patients with ischaemic heart disease (IHD) by Hippisley-Cox and Coupland (H-C&C). The methodological details provided in the published paper were insufficient on their own to allow a close replication to be conducted, and we therefore obtained additional details from the authors. We requested purely factual information about the methods used and did not share any of our analyses or results. We replicated the methods of H-C&C as closely as possible, given the differences between the two databases. All of the methods described below, including the study period, variable specifications and analytical procedures, are exact replications of those used in the original study, unless indicated otherwise. We selected all practices in CPRD that provided up to standard (UTS) data (UTS is CPRD’s designation for data meeting their internal quality standards) for the whole of the period from 1 January 1996 to 17 December 2003. We next identified all patients with a first diagnosis of IHD within this period, based on the QOF business rules for 2004. We excluded patients whose IHD diagnosis fell within the first 3 months of registration with their general practice or was on or subsequent to their recorded date of death, or who were prescribed statins prior to first diagnosis. We extracted data for these patients from the date of IHD diagnosis up until 17 December 2003, or until the date of death or exit from the practice, or the last recorded date for practices that stopped providing data before 17 December 2003, giving a maximum possible length of follow-up postdiagnosis of just under 8 years.\n\n\nAnalysis:\n\nThe main outcome was all-cause mortality, identified through a record of death in the CPRD. Following H-C&C, we conducted two main analyses: (1) a cohort analysis and (2) a case-control analysis nested within the full cohort. All analyses were conducted using R. Following H-C&C, statistical significance was assessed using p<0.01 (two tailed), but 95% CIs are reported in tables and figures. We made an a priori decision not to attempt to ‘improve’ on the analysis conducted by H-C&C, as our specific aim was to determine whether the same results and conclusions would emerge from using identical methods on a different underlying dataset targeting the same population.\n\n\nCohort analysis:\n\nThe cohort analysis used a Cox proportional hazards model to examine the effect of statin use on patient survival, with survival time determined by the time (in days) between the date of first diagnosis and date of death. Patients who transferred out of their practice before death or who were still alive at the end of the study period were treated as censored observations. Statin exposure was used as a time-varying covariate, with the period of exposure from the date of first prescription to when the statin was stopped (estimated as the date of last prescription plus 90 days; intervening breaks in the use of statins were ignored), or if not stopped until the end of the study period, date of death or date of transfer out of practice. Covariates adjusted for in the analysis were year of diagnosis, gender, comorbidities (diabetes, hypertension, myocardial infarction, congestive cardiac failure and cancer), and age (coded as 0–44, 45–54, 55–64, 65–74, 75–84, 85–94 or ≥95), smoking (ever smoked, never smoked, not recorded) and body mass index (BMI; coded as <25, 25–30, >30 kg/m2) all at the date of diagnosis. The presence of each comorbidity was indicated by a diagnosis in the patient record (using the 2004 QOF business rules) and coded as present/not present at the date of IHD diagnosis. If smoking status or BMI was not recorded within 4 years prior to diagnosis of IHD, we coded it as missing. The analysis was undertaken using the R survival analysis package accounting for the clustering of patients by practice and using the Huber-White robust estimate of SE. The proportional hazards assumption was checked graphically and with a test for proportional hazards.\n\n\nNested case-control study:\n\nThe nested case-control analysis compared all patients from the cohort who died during the follow-up period (the cases) with a group of matched control patients (also with IHD) who did not die. For each case, we defined an ‘index date’ as the date of death. We then used an incidence density sampling procedure (as per the original study; personal correspondence) to randomly select four control patients for each case matched on gender, year of IHD diagnosis and age (coded in 5-year age-bands). General practice was not used as a matching variable. Controls were patients with IHD alive at the time their matched case died (including patients who themselves became cases at a later time-point). The incidence sampling procedure allowed the same patient to be selected as a control for more than one case, thus providing a full set of four controls for each case, while still producing unbiased estimates of risk. Statin exposure was based on the first and last prescription dates prior to the index date and coded into: (1) currently taking statins (last prescription was within 90 days of the index date); (2) previously took statins (last prescription more than 90 days prior to the index date) and (3) has never taken statins. We did this for all statins as a group and also separately for five different types of statin (atorvastatin, cerivastatin, fluvastatin, pravastatin and simvastatin). For ‘all statins’, the last prescription could be for a different statin type than the first; for individual statins, it had to be the same type. One further formulation, rosuvastatin, was in use that did not appear in the QResearch study. We included this in the ‘all statins’ group but did not analyse it individually as only 22 patients had received the statin. Analysis of the case-control study used conditional logistic regression accounting for the matching of cases with controls, to obtain ORs for the risk of death in relation to use of statins. We allowed for clustering by general practice and used a robust estimate of SE, in line with the cohort analysis. Covariates in the analysis were smoking status, BMI and comorbidities, specified as in the Cohort analysis but based on the index date rather than the date of diagnosis. Additional covariates in this analysis were the Townsend deprivation score for the practice postcode (in national quintiles; H-C&C used quintiles of patient-level Townsend scores) and use of β-blockers, aspirin, ACE inhibitors and calcium channel blockers, identified through the British National Formulary chapter codes in the patient record. Each medication was coded as either used or not used prior to the index date but after the date of IHD diagnosis. Interactions between use of statins and each of gender, age (less than 75 vs 75 and over) and diabetes were tested by adding interaction terms into the model.\n\n\n\n\n\n\n\n\n",
    "implementation": "",
    "publications": [
      {
        "doi": null,
        "details": "David Reeves, David A Springate, Darren M Ashcroft, Ronan Ryan, Tim Doran, Richard Morris, Ivan Olier, Evangelos Kontopantelis, Can analyses of electronic patient records be independently and externally validated? The effect of statins on the mortality of patients with ischaemic heart disease: a cohort study with nested case–control analysis. BMJ Open, 4:e004952 2014."
      }
    ],
    "validation": "",
    "citation_requirements": "",
    "created": "2021-10-06T16:27:14.124615Z",
    "author": "David Reeves, David A Springate, Darren M Ashcroft, Ronan Ryan, Tim Doran, Richard Morris, Ivan Olier, Evangelos Kontopantelis",
    "collections": [
      {
        "name": "ClinicalCodes Repository",
        "value": 25
      },
      {
        "name": "Phenotype Library",
        "value": 18
      }
    ],
    "tags": null,
    "organisation": null,
    "world_access": 1,
    "updated": "2021-10-06T16:27:14.124642Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Lifestyle risk factor",
        "value": "4"
      }
    ],
    "ontology": null,
    "phenoflowid": "",
    "data_sources": [
      {
        "name": "CPRD GOLD",
        "value": 5,
        "uid": "a29feafa-7bdd-44e9-b977-c9d26425e67f",
        "url": "https://healthdatagateway.org/en/dataset/694",
        "datasource_id": 694
      }
    ],
    "coding_system": [
      {
        "name": "Read codes v2",
        "value": 5
      },
      {
        "name": "OXMIS codes",
        "value": 15
      }
    ],
    "event_date_range": "01/01/1996 - 17/12/20003",
    "concept_information": [
      {
        "concept_id": 2028,
        "concept_version_id": 5194,
        "concept_name": "Smoking Status - Primary Care",
        "coding_system": {
          "id": 5,
          "name": "Read codes v2",
          "description": "Read codes v2"
        },
        "phenotype_id": "PH621",
        "phenotype_version_id": 1242,
        "phenotype_name": "Smoking Status",
        "code_attribute_header": [
          "Entity type",
          "Coding System (OXMIS Read)",
          "Category"
        ],
        "codes": [
          {
            "code": "137..00",
            "description": "Tobacco consumption",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1371.00",
            "description": "Never smoked tobacco",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137..11",
            "description": "Smoker - amount smoked",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1371.11",
            "description": "Non-smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1372.00",
            "description": "Trivial smoker - < 1 cig/day",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1372.11",
            "description": "Occasional smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1373.00",
            "description": "Light smoker - 1-9 cigs/day",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1374.00",
            "description": "Moderate smoker - 10-19 cigs/d",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1375.00",
            "description": "Heavy smoker - 20-39 cigs/day",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1376.00",
            "description": "Very heavy smoker - 40+cigs/d",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1377.00",
            "description": "Ex-trivial smoker (<1/day)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1378.00",
            "description": "Ex-light smoker (1-9/day)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "1379.00",
            "description": "Ex-moderate smoker (10-19/day)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137a.00",
            "description": "Pipe tobacco consumption",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137A.00",
            "description": "Ex-heavy smoker (20-39/day)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137b.00",
            "description": "Ready to stop smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137B.00",
            "description": "Ex-very heavy smoker (40+/day)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137c.00",
            "description": "Thinking about stopping smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137C.00",
            "description": "Keeps trying to stop smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137d.00",
            "description": "Not interested in stopping smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137D.00",
            "description": "Admitted tobacco cons untrue ?",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137e.00",
            "description": "Smoking restarted",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137E.00",
            "description": "Tobacco consumption unknown",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137f.00",
            "description": "Reason for restarting smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137F.00",
            "description": "Ex-smoker - amount unknown",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137g.00",
            "description": "Cigarette pack-years",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137G.00",
            "description": "Trying to give up smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137h.00",
            "description": "Minutes from waking to first tobacco consumption",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137H.00",
            "description": "Pipe smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137I.00",
            "description": "Passive smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137J.00",
            "description": "Cigar smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137K.00",
            "description": "Stopped smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137L.00",
            "description": "Current non-smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137M.00",
            "description": "Rolls own cigarettes",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137N.00",
            "description": "Ex pipe smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137O.00",
            "description": "Ex cigar smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137P.00",
            "description": "Cigarette smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137P.11",
            "description": "Smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137Q.00",
            "description": "Smoking started",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137Q.11",
            "description": "Smoking restarted",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137R.00",
            "description": "Current smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137S.00",
            "description": "Ex smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137T.00",
            "description": "Date ceased smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137U.00",
            "description": "Not a passive smoker",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137V.00",
            "description": "Smoking reduced",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137W.00",
            "description": "Chews tobacco",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137X.00",
            "description": "Cigarette consumption",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137Y.00",
            "description": "Cigar consumption",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "137Z.00",
            "description": "Tobacco consumption NOS",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13cA.00",
            "description": "Smokes drugs",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13p..00",
            "description": "Smoking cessation milestones",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13p0.00",
            "description": "Negotiated date for cessation of smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13p1.00",
            "description": "Smoking status at 4 weeks",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13p2.00",
            "description": "Smoking status between 4 and 52 weeks",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13p3.00",
            "description": "Smoking status at 52 weeks",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13p4.00",
            "description": "Smoking free weeks",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13p5.00",
            "description": "Smoking cessation programme start date",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13WF.00",
            "description": "Family smoking history",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13WF100",
            "description": "Father smokes",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13WF.11",
            "description": "Smoker in the family",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13WF200",
            "description": "Mother smokes",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13WF300",
            "description": "Both parents smoke",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13WF400",
            "description": "Passive smoking risk",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13WI.00",
            "description": "Parents do not smoke",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "13WK.00",
            "description": "No smokers in the household",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "177..00",
            "description": "Smoke inhalation",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "6791.00",
            "description": "Health ed. - smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "67A3.00",
            "description": "Pregnancy smoking advice",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "67H1.00",
            "description": "Lifestyle advice regarding smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "745H.00",
            "description": "Smoking cessation therapy",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "745H000",
            "description": "Nicotine replacement therapy using nicotine patches",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "745H100",
            "description": "Nicotine replacement therapy using nicotine gum",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "745H200",
            "description": "Nicotine replacement therapy using nicotine inhalator",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "745H300",
            "description": "Nicotine replacement therapy using nicotine lozenges",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8B2B.00",
            "description": "Nicotine replacement therapy",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8B3f.00",
            "description": "Nicotine replacement therapy provided free",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8B3Y.00",
            "description": "Over the counter nicotine replacement therapy",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8BP3.00",
            "description": "Nicotine replacement therapy provided by community pharmacis",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8CAg.00",
            "description": "Smoking cessation advice provided by community pharmacist",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8CAL.00",
            "description": "Smoking cessation advice",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8H7i.00",
            "description": "Referral to smoking cessation advisor",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8HTK.00",
            "description": "Referral to stop-smoking clinic",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8I2I.00",
            "description": "Nicotine replacement therapy contraindicated",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8I39.00",
            "description": "Nicotine replacement therapy refused",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "8I6H.00",
            "description": "Smoking review not indicated",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9hG..00",
            "description": "Exception reporting: smoking quality indicators",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9hG0.00",
            "description": "Excepted from smoking quality indicators: Patient unsuitable",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9hG1.00",
            "description": "Excepted from smoking quality indicators: Informed dissent",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9N2k.00",
            "description": "Seen by smoking cessation advisor",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9N4M.00",
            "description": "DNA - Did not attend smoking cessation clinic",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO..00",
            "description": "Anti-smoking monitoring admin.",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO1.00",
            "description": "Attends stop smoking monitor.",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO..11",
            "description": "Stop smoking clinic admin.",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO..12",
            "description": "Stop smoking monitoring admin.",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO2.00",
            "description": "Refuses stop smoking monitor",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO3.00",
            "description": "Stop smoking monitor default",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO4.00",
            "description": "Stop smoking monitor 1st lettr",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO5.00",
            "description": "Stop smoking monitor 2nd lettr",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO6.00",
            "description": "Stop smoking monitor 3rd lettr",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO7.00",
            "description": "Stop smoking monitor verb.inv.",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO8.00",
            "description": "Stop smoking monitor phone inv",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OO9.00",
            "description": "Stop smoking monitoring delete",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OOA.00",
            "description": "Stop smoking monitor.chck done",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "9OOZ.00",
            "description": "Stop smoking monitor admin.NOS",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "H310100",
            "description": "Smokers' cough",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "SM7y200",
            "description": "Smoke inhalation",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "SM7z.11",
            "description": "Smoke inhalation",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "ZG23300",
            "description": "Advice on smoking",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "ZRaM.00",
            "description": "Motives for smoking scale",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "ZRh4.00",
            "description": "Reasons for smoking scale",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          },
          {
            "code": "ZRh4.11",
            "description": "RFS - Reasons for smoking scale",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "Read",
              "Category": "observation"
            }
          }
        ]
      },
      {
        "concept_id": 2029,
        "concept_version_id": 5196,
        "concept_name": "Smoking Status - Primary Care",
        "coding_system": {
          "id": 15,
          "name": "OXMIS codes",
          "description": "OXMIS codes"
        },
        "phenotype_id": "PH621",
        "phenotype_version_id": 1242,
        "phenotype_name": "Smoking Status",
        "code_attribute_header": [
          "Entity type",
          "Coding System (OXMIS Read)",
          "Category"
        ],
        "codes": [
          {
            "code": "5020M",
            "description": "SMOKERS' THROAT",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "5287MK",
            "description": "SMOKERS' MOUTH PATCHES",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "9879MK",
            "description": "SMOKE INHALATION",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "L5090B",
            "description": "PARENTS BOTH SMOKE",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "L5091S",
            "description": "SMOKING STARTED",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T509",
            "description": "SMOKER",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5090OR",
            "description": "SMOKER OWN ROLLED",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5090XC",
            "description": "SMOKER CIGARETTES",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5091",
            "description": "STOPPED SMOKING",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5091ES",
            "description": "FORMER SMOKER",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5091HS",
            "description": "EX HEAVY SMOKER",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5092",
            "description": "SMOKING ADVISED TO STOP",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5092S",
            "description": "SMOKING WISHES TO STOP",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5092SA",
            "description": "SMOKING WANTS TO STOP",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5093",
            "description": "SMOKER NON",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5093N",
            "description": "SMOKED NEVER",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5094F",
            "description": "SMOKER IN FAMILY",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5094FS",
            "description": "FATHER SMOKES",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5094MS",
            "description": "MOTHER SMOKES",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5094PR",
            "description": "PASSIVE SMOKING RISK",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T509 SR",
            "description": "SMOKING RESTARTED",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T510",
            "description": "EXCESSIVE SMOKING",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T510 HS",
            "description": "HEAVY SMOKER  (20-PLUS PER DAY)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T510 SE",
            "description": "SMOKING EXCESSIVE",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T510 SH",
            "description": "SMOKER HEAVY (20-PLUS PER DAY)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T511",
            "description": "SMOKER MODERATE (LESS THAN 20 PER DAY)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5112",
            "description": "SMOKER (20 PER DAY)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5113",
            "description": "SMOKER (15 PER DAY)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5114",
            "description": "SMOKER (10 PER DAY)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5115",
            "description": "SMOKER (LESS THAN 10 PER DAY)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5115M",
            "description": "SMOKER MILD (5 OR LESS PER DAY)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5116",
            "description": "SMOKER(OCCASIONAL)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T5117",
            "description": "SMOKER (30 PER DAY)",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T512",
            "description": "SMOKER PIPE",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "T513",
            "description": "SMOKER CIGARS",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "Y0601JJ",
            "description": "CLINIC ANTI-SMOKING ATTENDANCE",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "Y0601KA",
            "description": "SMOKING CLINIC ATTENDANCE",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "Y060 J1",
            "description": "STOP SMOKING GROUP",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "Y060 JJ",
            "description": "CLINIC ANTI-SMOKING",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          },
          {
            "code": "Y060 KA",
            "description": "SMOKING CLINIC",
            "attributes": {
              "Entity type": "smoking_status",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "observation"
            }
          }
        ]
      }
    ],
    "status": 2,
    "doi": "https://doi.org/10.48533/az69-cf82",
    "is_deleted": null,
    "publish_status": 2,
    "owner": "ieuan.scanlon",
    "template": {
      "id": 1,
      "name": "Clinical-Coded Phenotype",
      "description": "Phenotype definitions that are based on lists of clinical codes, or algorithms using clinical codes.",
      "version_id": 1
    },
    "versions": [
      {
        "version_id": 1242,
        "version_name": "Smoking Status",
        "version_date": "2021-10-06T16:27:14.153619Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]