OpenSAFELY codelists


Reset
ACE Inhibitor Medications dm+d

The codelist contains medicines that are ACE Inhibitors from the RAS section of BNF codes.

Absence of Appendix CTV3

Codes that indicate an absence of an appendix, either as a clinical finding or due to appendicectomy

Acute Appendicitis CTV3

Codes that indicate an episode of acute appendicitis

Adrenaline Pens dm+d

This list contains dm+d entries for adrenaline auto-injectors, commonly know as pens, which are used by people when they experience an emergency allergic reaction.

Adrenaline auto-injectors BNF
Alanine aminotransferase (ALT) tests SNOMED CT

This codelist was developed to identify patients receiving a alanine transferaminase test, as an indicator of a liver function test.

Alanine aminotransferase (ALT) tests (numerical value) SNOMED CT

This codelist was developed to identify patients receiving a alanine tranfseraminase test, as an indicator of a liver function test, where a numerical value is recorded.

Alpha-Adrenoceptor Blocking Drugs dm+d

This code list contains NHS dm+d codes for alpha-adrenoceptor blocking Drugs in the cardiovascular chapter of BNF codes.

Amputation CTV3

Codelist for defining the presence of a history of amputation

Amputation OPCS-4 procedure codes OPCS-4

OPCS-4 codes to identify amputations following orthopaedic surgery

Amputation of lower limb CTV3

This captures amputation of the lower limb for the risk prediction project. Other studies requiring amputation codes should refer to the full codelist, under 'Amputation'.

Angiotensin II Receptor Blockers (ARBs) dm+d

The following notebook contains medicines that are angiotensin II receptor antagonists from the RAS section of BNF codes. All combination products have been excluded and the list has been cross refereneced with the actual BNF for "Other drugs in the class ace inhibitors".

Ankylosing Spondylitis CTV3
Antibacterials dm+d
Antidiabetic drugs dm+d

This codelists contains all the NHS dictionary of medicines and devices codes for "antidiabetic drugs" as specified by the BNF coding system. This does not include insulin.

Antihistamines (oral) dm+d

This codelist contains NHS Dictionary of Medicines and Devices (dm+d) for oral antihistamines

Antiphospholipid syndrome CTV3

Codes that indicate incident or history of antiphospholipid syndrome

Antiplatelets dm+d

This codelist contains codes for antiplatelets.

Aplastic Anaemia CTV3

Codes indicating diagnosis of aplastic anaemia

Aplastic Anaemia (SNOMED) SNOMED CT

Automatically-generated equivalent of Aplastic Anaemia

Aspirin dm+d

A list of NHS dictionary of medicines and devices codes for Aspirin.

Asplenia CTV3

Codes indicating diagnosis of asplenia or dysplenia (acquired or congenital)

Asplenia (SNOMED) SNOMED CT

Automatically-generated equivalent of Asplenia

Assessment instruments and outcome measures for long covid SNOMED CT

This codelists contains codes for assessment instruments and outcome measures for "long COVID"

Asthma Diagnosis CTV3

Codes indicating an asthma diagnosis

Asthma Diagnosis (SNOMED) SNOMED CT

Automatically-generated equivalent of Asthma Diagnosis

Asthma Inhaler Salbutamol Medication dm+d

Medication codes of inhaled salbutamol medications used for asthma treatment

Asthma Inhaler Steroid Medication dm+d

Medication codes of inhaled corticosteroid medications used for asthma treatment

Asthma Oral Prednisolone Medication dm+d

Medication codes of oral prednisolone.

Asthma annual review QOF SNOMED CT

Asthma review code as listed in the QoF business rules

Atrial fibrillation - Clinical finding CTV3

The following codes are used to indicate a clinical finding of Atrial fibrillation.

Atrial fibrillation exception reporting CTV3

The following codes are used to indicate Atrial fibrillation exception reporting

Atrial fibrillation or flutter CTV3

Codes for a history of atrial fibrillation or atrial flutter

Atrial fibrillation quality indicator care unsuitable for patient CTV3

The following codes are used to indicate Atrial fibrillation quality indicator care unsuitable for patient

Atrial fibrillation resolved CTV3

The following codes are used to indicate Atrial fibrillation resolved

Atrial fibrillation: Patient has chosen not to receive atrial fibrillation quality indicator care CTV3

The following codes are used to indicate Atrial fibrillation: Patient has chosen not to receive atrial fibrillation quality indicator care

Azathioprine BNF

BNF codelists for azathioprine.

Azathioprine DM+D dm+d

This codelist contains NHS Dictionary of Medicines and Devices (dm+d) codes for all azathioprine preparations.

Azathiprine BNF
Azithromycin Medication dm+d

This codelists includes AMPs and VMPs from the NHS dictionary of medicines and devices for azithromycin.

Beta-blocker medications dm+d

This code list contains NHS dm+d codes for beta-adrenoceptor blocking drugs, which are better known as beta-blockers.

Bone Marrow Transplant CTV3

Codes indicating a bone marrow transplant has been carried out

Bone Marrow Transplant (SNOMED) SNOMED CT

Automatically-generated equivalent of Bone Marrow Transplant

Budesonide inhalers used in PRINCIPLE trial & CEM/CMO/2021/011 dm+d

This code list contains inhaled medicines containing Budesonide as recommended by this COVID-19 Therapeutic Alert.

COPD Infection CTV3

Codes indicating a diagnosis of COPD exacerbation or a LRTI infection

COPD Rescue Packs and Annual Reviews CTV3

Code indicating an annual review of COPD or the provision of a rescue pack for COPD exacerbations

COVID Identification ICD-10

The following two ICD-10 codes for COVID identification have been used

U07.1 virus identified Use this code when COVID-19 has been confirmed by laboratory testing irrespective of severity of clinical signs or symptoms. Use additional code, if desired, to identify pneumonia or other manifestations.

U07.2 COVID-19, virus not identified Use this code when COVID-19 is diagnosed clinically or epidemiologically but laboratory testing is inconclusive or not available. Use additional code, if desired, to identify pneumonia or other manifestations

COVID Identification in primary care (helper) - 111 suspected CTV3

Helper file for COVID identifcation in primary care - suspect case. Used to identify which of the suspect codes in the COVID identification in primary care file is used by 111 for recording a suspect case.

COVID Identification in primary care (helper) - Pillar 2 onwards CTV3

Helper file for COVID identifcation in primary care relating to the case, negative test, potential historic case and historic case codelists. Can be used to identify which of the codes in these codelists have been used by Pillar 2 testing (and later Pillars).

COVID Identification in primary care - exposure to disease CTV3

Codes indicating exposure to COVID-19 (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - antigen test negative CTV3

Codes indicating COVID-19 antigen test negative (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - historic case CTV3

Codes indicating COVID-19 historic case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - potential historic case CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - probable covid - clinical code CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - probable covid - positive test CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - probable covid - sequelae CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - suspected covid - advice CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - suspected covid - had test CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - suspected covid - isolation code CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - suspected covid - nonspecific clinical assessment CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - suspected covid - suspected codes CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID identification in primary care - unrelated to case status CTV3

Codes indicating COVID-19 case (1 of 13 possible types of CTV3 codes that contain information related to COVID-19)

COVID-19 Vaccination - Contraindication or Allergy SNOMED CT

Codes that explicitly indicate COVID-19 allergy, or that the vaccine is contraindicated or not indicated. Includes inactive codes.

COVID-19 Vaccination - Did not attend first appointment SNOMED CT

Codes to identify where someone did not attend an appointment also known as DNAs

COVID-19 Vaccination - Did not attend second appointment SNOMED CT

Codes to identify where someone did not attend a second COVID-19 vaccination appointment also known as DNAs

COVID-19 Vaccination - First dose declined SNOMED CT

First dose (or whole course) of coronavirus vaccination declined. Similar to PRIMIS codelist but also including inactive code.

COVID-19 Vaccination - First dose not given SNOMED CT
COVID-19 Vaccination - Second dose declined SNOMED CT

Second dose of coronavirus vaccination declined. Similar to PRIMIS codelist but also including inactive code. Note the codes are not all specific to the second dose so a previous first dose should be identified when using this codelist.

COVID-19 Vaccination - Second dose not given SNOMED CT
COVID-19 Vaccination Given SNOMED CT
COVID-19 Vaccination Unavailable SNOMED CT

A single code to denote when a vaccine is unavailable.

COX-2 Specific NSAIDs dm+d

This is a list of NHS dictionary of medicines and devices oral non-seroidal anti-inflammatory drugs (NSAIDs) that specifically targets cyclooxygenase / COX-2 enzyme.

CVD risk assessment score QOF SNOMED CT

Patients who have received a cardiovascular risk score as listed in the QoF business rules

Calcium Channel Blockers dm+d

The codelist contains medicines that are classed as calcium channel blockers in BNF codes.

Cancer excluding lung and haematological CTV3

Codes indicating a diagnosis of a cancer other than lung cancer or haematological cancer

Cancer excluding lung and haematological (SNOMED) SNOMED CT

Automatically-generated equivalent of Cancer excluding lung and haematological

Cardiovascular Secondary Care ICD-10

Chapter I of ICD-10 for cardiovascular mortality with variables separating out codes relating to myocardial infarction and heart failure. Previously used by Jeremy P. Brown and Krishnan Bhaskaran (see below).

Care planning medication review simple reference set - NHS Digital SNOMED CT

This contains Medication Review activities, in common with other subsets of this type it does not include procedures with context already declared, e.g. Medication review declined.

Cerebral palsy CTV3

Codelist for people with a diagnosis of cerebral palsy

Chemotherapy or Radiotherapy CTV3

Codes indicating chemotherapy or radiotherapy or both has been carried out

Chemotherapy or Radiotherapy (SNOMED) SNOMED CT

Automatically-generated equivalent of Chemotherapy or Radiotherapy

Chemotherapy or Radiotherapy (updated) CTV3

An updated version of https://codelists.opensafely.org/codelist/opensafely/chemotherapy-or-radiotherapy/, with truncated codes fixed.

Chloroquine dm+d

This notebook contains NHS dm+d codes medications chloroquine phosphate or chloroquine sulfate.

Cholesterol tests SNOMED CT

A SNOMED CT codelist describing primary care requests for total cholesterol.

Cholesterol tests (numerical value) SNOMED CT

A SNOMED CT codelist describing primary care requests for total cholesterol with a numerical value.

Chronic Cardiac Disease CTV3

Codes indicating a diagnosis of chronic heart disease, excluding simple VSD and AF

Chronic Cardiac Disease (SNOMED) SNOMED CT

Automatically-generated equivalent of Chronic Cardiac Disease

Chronic Kidney Disease CTV3

A codelist developed to support identification of people with chronic kidney disease using codes indicating end stage renal disease, dialysis or kidney transplant code.

Chronic Kidney Disease (SNOMED) SNOMED CT

Automatically-generated equivalent of Chronic Kidney Disease

Chronic Liver Disease CTV3

Code indicating diagnosis of chronic liver disease

Chronic Liver Disease (SNOMED) SNOMED CT

Automatically-generated equivalent of Chronic Liver Disease

Chronic Respiratory Disease CTV3

Codes indicating a diagnosis of a chronic respiratory disease excluding asthma

Chronic Respiratory Disease (SNOMED) SNOMED CT

Automatically-generated equivalent of Chronic Respiratory Disease

Chronic obstructive pulmonary disease (COPD) review QoF SNOMED CT

Chronic Obstructive Pulmonary Disease (COPD) review codes as listed in the QoF business rules

Ciclosporin BNF
Ciclosporin - oral dm+d

BNF codelist for oral ciclosporin.

Ciclosporin - oral - dmd dm+d

NHS Dictionary of medicines and devices (dm+d) codelist for ciclosporin

Co-amoxiclav, cephalosporins and quinolones dm+d
Combination blood pressure medication dm+d

The following codelist contains products with more than one ingredient for the treatment of blood pressure from the cardiovascular chapter of BNF codes.

Coronavirus Vaccination SNOMED CT
Covid-19 vaccine first dose - did not attend (DNA) SNOMED CT
Crohn's Disease CTV3
Current Asthma CTV3

Codes indicating current, adult asthma.

Current COPD CTV3

Codelist indicating current COPD.

Cystic Fibrosis CTV3

Codes indicating a diagnosis of cystic fibrosis or associated diseases such as primary ciliary dyskinesia

DMARDs dm+d

This codelist is a list of NHS dm+d codes for "disease modifying antirheumatic drugs" more commonly referred to as DMARDs.

Dabigatran DM+D dm+d

This is a codelist that identifies all preparations from the NHS dictionary of medicines and devices for dabigatran etexilate , one of the Directing Oral Anticoagulants which are often referred to as DOACs.

Dementia CTV3

Codes indicating dementia

Dementia (Complete) CTV3

This codelist captures Dementia and Alzheimers Disease. Discussion here: https://github.com/opensafely/codelist-development/issues/61

Dementia (SNOMED) SNOMED CT

Automatically-generated equivalent of Dementia

Depression CTV3

The following codes are used to indicate Depression

Diabetes CTV3

Codes indicating diagnosis of permanent diabetes

Diabetes (SNOMED) SNOMED CT

Automatically-generated equivalent of Diabetes

Diabetes Ketoacidosis - CTV3 (DKA - unspecific) CTV3

This lists contains CTV3 codes used to identify people who may have had diabetes ketoacidosis (DKA). It has been generated based on a DKA snomed list using internal mappings. The SNOMED codelistlist was conceived to identify DKA in a specific group of patients in a specific time period, therefore we have been permissive in including unspecific codes which may not be suitable for all studies.

Diabetes Ketoacidosis - SNOMED (DKA - unspecific) SNOMED CT

This lists contains codes used to identify people who may have had diabetes ketoacidosis (DKA). This list was conceived to identify DKA in a specific group of patients in a specific time period, therefore we have been permissive in including unspecific codes which may not be suitable for all studies.

Diabetes Unknown Type CTV3

Codes which likely indicate either Type 1 or Type 2 diabetes but are ambiguous.

Diabetic Ketoacidosis (Secondary Care) ICD-10

ICD-10 codes for Diabetic Ketoacidosis

Dialysis CTV3

Codes indicating dialysis treatment, or preparation for dialysis

Dipeptidyl peptidase-4 inhibitors (Gliptins) BNF
Direct Acting Oral Anticoagulants (DOAC) dm+d

This is a codelists that identifies all prepartaions from the NHS dictionary of medicines and devices for Directing Oral Anticoagulants better knows as DOACs. They have previously been know as NOACs.

Documented Influenza illness CTV3

Codes indicating a diagnosis of influenza or influenza-like illness

Down syndrome CTV3

Diagnoses of Down syndrome

Doxycycline medication BNF
Edoxaban DM+D dm+d

This is a codelist that identifies all preparations from the NHS dictionary of medicines and devices for edoxaban, one of the Directing Oral Anticoagulants which are often referred to as DOACs.

Ethnicity CTV3

A list of ethnicity codes in use in UK general practice including aggregate grouping at two levels.

Ethnicity (SNOMED) SNOMED CT

Automatically-generated equivalent of Ethnicity

Ethnicity - UK Categories SNOMED CT
Explicit contraindication to DOACs (direct acting anticoagulants) CTV3

This is a codelist that identifies SNOMED codes where a Directing Oral Anticoagulants (DOACs) is explicitly contraindicated. They have previously been know as NOACs.

Falls CTV3

The following codes are used to indicate Falls

Final Orthopaedic Surgery ELECTIVE Procedure OPCS codes SC OPCS-4

OPCS-4 codes for all ELECTIVE, or non-emergency, orthopaedic procedures.

Final Orthopaedic Surgery Emergency Procedure OPCS codes SC OPCS-4

OPCS-4 codes for all emergency orthopaedic procedures

First Generation Antipsychotics excluding long acting depots DM&D dm+d

This code list contains the DM&D list of medicines that are known as First Generation Antipsychotics. All formulations of these medicines have been included, except for long acting depot antipsychotics and all formulations of prochlorperazine which are included in separate code lists. All of these antipsychotics are dopamine antagonists and licensed in some form for the treatment of psychosis, although some (e.g. flupentixol) may be licensed and used for other indications such as depression. Droperidol, which is only used for post operative nausea, is not included. Also the injectable formulations of levomepromazine are not included because these are only licensed for use in palliative care.

See First generation antipsychotics codelist

Fracture potential emergency OPCS codes OPCS-4

These are general fracture fixation OPCS-4 procedural codes These OPCS-4 procedure codes need an additional ICD-10 diagnosis code to confirm that it was for an emergency rather than non-emergency procedure (defined as urgent or elective) Emergency surgery defined as P1a and P1b as per Royal College of Surgeons Surgical Prioritisation Guidelines

Fragility CTV3

Codelist for creating binary variable capturing fragilities/fractures

GI Bleed or Ulcer CTV3

Codes indicating diagnosis of either a GI bleed or a GI ulcer

GI Bleed or Ulcer (SNOMED) SNOMED CT

Automatically-generated equivalent of GI Bleed or Ulcer

Gastrointestinal bleeding ICD-10 ICD-10

Codes to define gastrointestinal bleeding in ONS death data.

Giant Cell Arteritis CTV3

Codes indicating a diagnosis of Temporal Arteritis or Giant Cell Arteritis

Glycated haemoglobin (HbA1c) tests SNOMED CT

A SNOMED CT codelist for patients receiving monitoring of glycated haemoglobin (HbA1c) tests.

Glycated haemoglobin (HbA1c) tests (numerical value) SNOMED CT

A SNOMED CT codelist for patients receiving monitoring of glycated haemoglobin (HbA1c) tests, which contains a numerical value using the newer IFCC units.

HIV CTV3

Codes indicating a diagnosis of HIV

HIV (SNOMED) SNOMED CT

Automatically-generated equivalent of HIV

HS CTV3

todo

Haematological Cancer CTV3

Codes indicating diagnosis of a haematological cancer including multiple myeloma

Haematological Cancer (SNOMED) SNOMED CT

Automatically-generated equivalent of Haematological Cancer

Haloperidol BNF

This code list includes all formulations of haloperidol, except for long acting depot formulations of haloperidol decanoate. Haloperidol is a first generation antipsychotic and a potent dopamine antagonist. It is licensed for a wide range of indications including the treatment of psychotic disorders, management of behavioral and psychiatric symptoms of dementia, acute delirium, chorea and tics, nausea and vomiting in post operative or palliative care and restlessness and confusion in palliative care.

Haloperidol DM&D dm+d

This code list includes all formulations of haloperidol, except for long acting depot formulations of haloperidol decanoate. Haloperidol is a first generation antipsychotic and a potent dopamine antagonist. It is licensed for a wide range of indications including the treatment of psychotic disorders, management of behavioral and psychiatric symptoms of dementia, acute delirium, chorea and tics, nausea and vomiting in post operative or palliative care and restlessness and confusion in palliative care.

Heart Failure CTV3

This indicates a diagnosis of heart failure (both left and right sided).

Hepatitis C CTV3

A codelist developed to support identification of people with hepatitis C, current or past.

Includes a history of flag: - 0 for not a history code; - 1 history code; - 2 possible history code

Hidradenitis Suppurativa CTV3

The following list contains codes for Hidradenitis Suppurativa.

High International normalised ratio (INR) CTV3

This codelist is used to identify INR blood tests that are explicitly considered to be high.

High cost drugs - Abatacept null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of abatacept.

High cost drugs - Adalimumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of Adalimumab.

High cost drugs - Aflibercept null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of aflibercept.

High cost drugs - Alemtuzumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of alemtuzumab.

High cost drugs - Anakinra null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of anakinra.

High cost drugs - Baricitinib null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of baricitinib.

High cost drugs - Belimumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of belimumab.

High cost drugs - Benralizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of benralizumab.

High cost drugs - Brodalumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of brodalumab.

High cost drugs - Certolizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of certolizumab.

High cost drugs - Dupilumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of dupilumab.

High cost drugs - Etanercept null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of etanercept.

High cost drugs - Golimumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of golimumab.

High cost drugs - Guselkumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of guselkumab.

High cost drugs - Infliximab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of infliximab.

High cost drugs - Ixekizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of ixekizumab.

High cost drugs - Mepolizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of mepolizumab.

High cost drugs - Methotrexate null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of methotrexate.

High cost drugs - Natalizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of natalizumab.

High cost drugs - Ocrelizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of ocrelizumab.

High cost drugs - Omalizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of omalizumab.

High cost drugs - Ranibizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of ranibizumab.

High cost drugs - Reslizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of reslizumab.

High cost drugs - Risankizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of risankizumab.

High cost drugs - Rituximab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of rituximab.

High cost drugs - Sarilumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of sarilumab.

High cost drugs - Secukinumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of secukinumab.

High cost drugs - Tildrakizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of tildrakizumab.

High cost drugs - Tocilizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of tocilizumab.

High cost drugs - Tofacitinib null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of tofacitinib.

High cost drugs - Upadacitinib null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of upadacitinib.

High cost drugs - Ustekinumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of ustekinumab.

High cost drugs - Vedolizumab null

This is a list of all the unique values from the Drug Name variable in the High Cost Drugs Dataset that relate to the prescribing of vedolizumab.

High dose ICS Inhalers dm+d

A list of high dose inhaled corticosteroid (ICS) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

High dose multiple ingredient ICS inhalers dm+d

A list of high dose inhaled corticosteroid (ICS) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

High dose single ingredient ICS Inhalers dm+d

A list of high dose single ingredient inhaled corticosteroid (ICS) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Hydroxychloroquine dm+d

This is a list of NHS dictionary of medicines and devices items for oral hydroxychloroquine.

Hypertension CTV3

Code indicative of a hypertension diagnosis

Hypertension (SNOMED) SNOMED CT

Automatically-generated equivalent of Hypertension

ICD-10 Chapter I ICD-10
ICD-10 Chapter II ICD-10
ICD-10 Chapter III ICD-10
ICD-10 Chapter IV ICD-10
ICD-10 Chapter IX ICD-10
ICD-10 Chapter V ICD-10
ICD-10 Chapter VI ICD-10
ICD-10 Chapter VII ICD-10
ICD-10 Chapter VIII ICD-10
ICD-10 Chapter X ICD-10
ICD-10 Chapter XI ICD-10
ICD-10 Chapter XII ICD-10
ICD-10 Chapter XIII ICD-10
ICD-10 Chapter XIV ICD-10
ICD-10 Chapter XIX ICD-10
ICD-10 Chapter XV ICD-10
ICD-10 Chapter XVI ICD-10
ICD-10 Chapter XVII ICD-10
ICD-10 Chapter XVIII ICD-10
ICD-10 Chapter XX ICD-10
ICD-10 Chapter XXI ICD-10
ICD-10 Chapter XXII ICD-10
Ibuprofen - oral dm+d

A list of NHS dictionary of medicines and devices codes for oral Ibuprofen.

Incident Stroke CTV3

Codes relating to incident stroke in primary care.

Incident heart failure CTV3

Incident heart failure codes

Incident non-traumatic stroke CTV3

Further adapted from https://codelists.opensafely.org/codelist/opensafely/incident-stroke/2020-10-05/, to remove codes associated with trauma, or perinatal events (thanks to Brian Nicholson for reviewing this!).

The list was previously from https://codelists.opensafely.org/codelist/opensafely/stroke-updated/2020-06-02/.

Indometacin dm+d

This is a list of NHS dictionary of medicines and devices codes for oral indometacin.

Inflammatory Bowel Disease CTV3

Codes indicating diagnosis of inflammatory bowel disease

Inflammatory Bowel Disease (SNOMED) SNOMED CT

Automatically-generated equivalent of Inflammatory Bowel Disease

Inflammatory Bowel Disease - Unclassified CTV3
Influenza Vaccination dm+d

This is a list of influenza vaccinations in the NHS dictionary of medicines and devices.

Influenza Vaccination Clinical Codes - All CTV3

tbc

Influenza Vaccination Clinical Codes - Given CTV3

TODO

Influenza Vaccination Clinical Codes - Not given CTV3

TODO

Influenza Vaccination Clinical Codes - Unclear CTV3

TODO

Inhaled or Systemic Corticosteroids dm+d

Inhaled or systemic corticosteroids, developed to support exclusion criteria within position statement following interim results of PRINCIPLE trial: "Patient currently prescribed inhaled or systemic corticosteroids."

Insulin Medication dm+d

A list of insulin preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Intellectual disability CTV3

Codes for a history of intellectual/learning disability

Intellectual disability including Down's Syndrome CTV3

Codelist for identifying a history of intellectual / learning disability (including Down's syndrome)

International normalised ratio (INR) CTV3

This codelist is used to identify INR blood tests.

Interstitial Lung Disease CTV3

These codes indicate a diagnosis of interstitial lung disease (ILD)

Invite for atrial fibrillation care review CTV3

The following codes are used to indicate Invite for atrial fibrillation care review

Kidney transplant CTV3

Codes indicating kidney transplant (recipient)

LABA + ICS Combination Inhaler dm+d

A list of combination inhalers including a long acting beta agonist (LABA) and an inhaled corticosteroid (ICS) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

LABA + LAMA + ICS Combination Inhaler dm+d

A list of combination inhalers including a long acting beta agonist (LABA) and long acting antimuscarininc (LAMA) and inhaled corticosteroids (ICS) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

LABA + LAMA Combination Inhaler dm+d

A list of combination inhalers including a long acting beta agonist (LABA) and long acting antimuscarininc (LAMA) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Learning disabilities CTV3

The following codes are used to indicate learning disability.

Leflunomide BNF
Leflunomide dmd dm+d

dm+d codelist for Leflunomide

Leukotriene receptor antagonist medication dm+d

A list of leukotriene receptor antagonists (LTRA) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Lithium - oral BNF

This code list includes all oral lithium products available in the UK, used for the treatment and prevention of mental illness.

Lithium - oral (dm+d) dm+d

This code list includes all oral lithium products available in the UK, used for the treatment and prevention of mental illness.

Lithium carbonate BNF

This code list includes all medicines containing lithium carbonate that are available in the UK.

Lithium carbonate (dm+d) dm+d

This code list includes all medicines containing lithium carbonate that are available in the UK.

Lithium citrate BNF

This code list includes all medicines containing lithium citrate available in the UK.

Lithium citrate (dm+d) dm+d

This code list includes all medicines containing lithium citrate available in the UK.

Long acting injectable and depot antipsychotics DM&D dm+d

This code list contains the DM&D list of all antipsychotics that are available in long acting injectable form. It includes first generation (depot) antipsychotics and second generation long acting injections. Zuclopenthixol acetate which is a short/medium acting depot injection is not included.

See Long Acting Inj & Depot Antipsychotics

Low and medium dose ICS inhalers dm+d

A list of low and medium dose inhaled corticosteroid (ICS) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Low and medium dose multiple ingredient ICS inhalers dm+d

A list of low and medium dose multpiple ingredient inhaled corticosteroid (ICS) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Low and medium dose single ingredient ICS inhalers dm+d

A list of low and medium dose single ingredient inhaled corticosteroid (ICS) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Low molecular weight heparins BNF

This codelist contains all preparations of low molecular weight heparins.

Low molecular weight heparins dm+d dm+d

This dm+d codelist contains all preparations of low molecular weight heparins.

Lower Respiratory Tract Infection CTV3

Codes indicating a diagnosis of a lower respiratory tract infection excluding pneumonia

Lung Cancer CTV3

Codes indicating a diagnosis of lung cancer

Lung Cancer (SNOMED) SNOMED CT

Automatically-generated equivalent of Lung Cancer

Mechanical or Artificial Valves SNOMED CT
Mercaptopurine BNF
Mercaptopurine dmd dm+d

dm+d codelist for mercaptopurine

Merhotrexate - injectable BNF
Mesalazine BNF
Methotrexate (oral) dm+d

dm+d codelist for oral methotrexate

Methotrexate - injectable dm+d

dm+d codelist for injectable methotrexate

Methotrexate - oral BNF

BNF codelist for oral methotrexate.

Midazolam BNF

Midazolam that is generally prescribed at the end of life.

Midazolam - end of life dm+d

dm+d codelist for midazolam injections used at the end of life.

Multiple Sclerosis CTV3

These codes indicate a diagnosis of multiple sclerosis (MS)

Mycophenolate dm+d

dm+d codelist for mycophenolate

Mycophenolate (BNF) BNF

BNF codelist for mycophenolate.

Myocardial infarction CTV3

This is a list of codes denoting a heart attack / myocardial infarction.

Myocardial infarction 2 CTV3

The following codes are used to indicate Myocardial infarction 2

NHS England Care Homes residential status SNOMED CT

This codelists supports analysis of records of people who may reside in a nursing or care home. NHS England requires primary care networks (PCNs) to maintain this list as part their contract.

NHS England Care Homes residential status - CTV3 CTV3

This codelist supports analysis of records of people who may reside in a nursing or care home. NHS England requires primary care networks (PCNs) to maintain this list as part their contract.

NICE managing the long-term effects of COVID-19 SNOMED CT

This codelist are the recommended snomed-ct codes from the NICE guidelines on managing the long-term effects of COVID-19 also known as "long COVID"

NSAIDs - oral dm+d

This is a list of NHS dictionary of medicines and devices oral non-seroidal anti-inflammatory drugs (NSAIDs) .

Naproxen - high dose dm+d

This is a list of NHS dictionary of medicines and devices codes for high dose naproxen.

Naproxen - low dose dm+d

This is a list of NHS dictionary of medicines and devices codes for low dose naproxen.

Naproxen - other doses dm+d

This is a list of NHS dictionary of medicines and devices codes for "other doses" of naproxen.

Nebulised asthma and COPD medications dm+d

A list of nebulised medications preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices that are used in asthma and COPD.

Newer aminosalicylates for IBD BNF
Newer aminosalicylates for IBD - dmd dm+d

dmd codelist for newer aminosalicylates for IBD; balsalazide, mesalazine, olsalazine.

Oestrogen and oestrogen-like drugs dm+d

This codelist contains codes for oestrogen and oestrogen-like drugs that potentially increase the risk of thrombotic events.

Orthopaedic Procedure Codes (OPCS-4) - Spinal Cord + roots SC OPCS-4
Orthopaedic Procedure OPCS Codes All Spines OPCS-4
Orthopaedic Surgery Elective OPCS codes OPCS-4
Orthopaedic Surgery Fasciotomy Procedure OPCS codes OPCS-4

Surgical fasciotomy codes - for limbs only

Orthopaedic Surgery Washout Procedure OPCS codes OPCS-4

Surgical post-operative washout + debridement codes

Osteoarthritis CTV3

A list of clinical codes related to osteoarthritis.

Other Chronic Respiratory Disease CTV3

Codes indicating a diagnosis of a chronic respiratory disease excluding asthma, cystic fibrosis and associated diseases such as primary ciliary dyskinesia

Other Heart Disease CTV3

Chronic heart conditions, excluding heart failure

Other Neurological Conditions CTV3

Codes indicating other neurological conditions not including stroke or dementia

Other Neurological Conditions (SNOMED) SNOMED CT

Automatically-generated equivalent of Other Neurological Conditions

Other Organ Transplant CTV3

Codes indicating other organ transplant (not kidney)

Other Respiratory Conditions CTV3

Patients who have any other chronic respiratory condition than COPD considered as a respiratory condition for the UK influenza surveillance programme. It covers: fibrosing lung disease, bronchiectasis or cystic fibrosis. Any code for either of these conditions will be taken to indicate presence of an 'other' chronic respiratory condition, absence of codes for either condition as absence of the disease.

Update 21-07-20: Removal of one CF screening code (Y2708 Cystic fibrosis screening test)

Penicillamine BNF
Penicillamine dmd dm+d

dm+d codelist for penicillamine

Permanent Immunosuppression CTV3

Codes indicating a diagnosis of a permanent immunosuppression excluding HIV, and including genetic causes of immunosuppression

Permanent Immunosuppression (SNOMED) SNOMED CT

Automatically-generated equivalent of Permanent Immunosuppression

Pneumococcal Vaccination dm+d

This is a list of pneumococcal vaccinations in the NHS dictionary of medicines and devices

Pneumococcal Vaccination Clinical Codes indicative of being administered CTV3

to do

Pneumococcal Vaccination Clinical Codes indicative of not being administered CTV3

tbc

Pneumococcal Vaccination Clinical Codes that it is unclear of intention CTV3

tbc

Pneumonia Secondary Care ICD-10

Pneumonia ICD-10 codes.

Prochlorperazine DM&D dm+d

This codelist contains the DM&D list of all formulations of prochlorperazine, which is an antipsychotic used for the treatment of psychosis and also nausea and vomiting. Due to its common use in diverse indications we have kept it separate from other antipsychotics.

See Prochlorperazine codelist

Proton Pump Inhibitors - PPI - oral dm+d

This is a list of snomed / NHS dictionary of medicines and devices for oral proton pump inhibtors (PPI).

Psoriasis CTV3
Psoriatic Arthritis SNOMED CT

This is a list of SNOMED-CT codes used to identify diagnosis of psoriatic arthritis.

Psychosis, schizophrenia + bipolar affective disease CTV3

The following codes are used to indicate Psychosis, schizophrenia + bipolar affective disease

Pulse Oximetry - NHS Digtial COVID at Home SNOMED CT

Codelist containing SNOMED codes relating to COVID Oximetry @home.

These should be used for prototyping and monitoring of the uptake of these codes.

RA / SLE / Psoriasis CTV3

Codes indicating diagnosis of rheumatoid arthritis or SLE or psoriasis

RA / SLE / Psoriasis (SNOMED) SNOMED CT

Automatically-generated equivalent of RA / SLE / Psoriasis

Red blood cell (RBC) tests SNOMED CT

A SNOMED CT codelist for patients receiving monitoring of red blood cell (RBC) tests.

Red blood cell (RBC) tests (numerical value) SNOMED CT

A SNOMED CT codelist for patients receiving monitoring of red blood cell (RBC) tests with a numerical value

Referral and signposting for long COVID SNOMED CT

This codelists contains referral and signposting codes for "long COVID".

Revision fixation or dislocation OPCS-4 codes OPCS-4

OPCS-4 codes to identify re-operations following surgery. Specifically this list focuses on remanipulation of fractures, secondary reductions of dislocations and revision operations.

Rheumatoid Arthritis CTV3

These codes indicate a diagnosis of rheumatoid arthritis (RA)

Rivaroxaban BNF

This is a codelist that identifies all preparations from the NHS dictionary of medicines and devices for rivaroxaban, one of the Directing Oral Anticoagulants which are often referred to as DOACs.

Rivaroxaban DM+D dm+d

This is a codelist that identifies all preparations from the NHS dictionary of medicines and devices for rivaroxaban, one of the Directing Oral Anticoagulants which are often referred to as DOACs.

SABA Inhaler Medications dm+d

A list of short acting beta agonist (SABA) inhaler preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

SAMA Medication dm+d

A list of single ingredient short acting antimuscarinic (SAMA) inhaler preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Second generation antipsychotics, excluding long acting injections dm+d

This code list contains the DM&D list of medicines known as Second Generation Antipsychotics. All formulations of these medicines have been included except for long acting injections, which are included in a separate code list. These antipsychotics are licensed to treat psychoses and related illnesses. although asenapine is only licensed to treat mania.

See Second generation antipsychotics Codelist

Selective serotonin reuptake inhibitors BNF

This codelist contains codes from the NHS dictionary of medicines and devices (dm+d) for SSRI medications, a common class of antidepressants.

Selective serotonin reuptake inhibitors - dmd dm+d

This codelist contains codes from the NHS dictionary of medicines and devices (dm+d) for SSRI medications, a common class of antidepressants.

Sickle Cell Disease CTV3

Codes indicating diagnosis of sickle cell disease

Sickle Cell Disease (SNOMED) SNOMED CT

Automatically-generated equivalent of Sickle Cell Disease

Single ingredient ICS dm+d

A list of single ingredient inhaled corticosteroid (ICS) preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Single ingredient LABA inhalers dm+d

A list of single ingredient long acting beta agonist (LABA) inhaler preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Single ingredient LAMA inhalers dm+d

A list of single ingredient long acting antimuscarinic (LAMA) inhaler preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Smoking - Clear CTV3

Smoking codes that are clear in the capturing of smoking status. To be contrasted against Smoking - Unclear where the codes are less certain.

Smoking - Clear (SNOMED) SNOMED CT

Automatically-generated equivalent of Smoking - Clear

Smoking - Unclear CTV3

Codes that indicate smoking status. These codes are less clear than codes captured in Smoking Clear, and there remains some ambiguity about the smoking status.

Smoking - Unclear (SNOMED) SNOMED CT

Automatically-generated equivalent of Smoking - Unclear

Sodium tests (numerical value) SNOMED CT

A SNOMED CT codelist for patients receiving monitoring of sodium levels, with a numerical value.

Solid Organ Transplantation CTV3

Codes indicating solid organ transplantion (receptient only) has been carried out

Solid Organ Transplantation (SNOMED) SNOMED CT

Automatically-generated equivalent of Solid Organ Transplantation

Spironolactone dm+d

This codelist contains spironolactone preparations.

Statin Medication dm+d

A list of statin preparations at VMP and AMP from the NHS Dictionary of Medicines and Devices.

Stroke (SNOMED) SNOMED CT

Automatically-generated equivalent of Stroke

Stroke (deprecated) CTV3

DEPRECATED due to presence of Read 2 codes, and missing CTV3 codes, the corrected version is: https://codelists.opensafely.org/codelist/opensafely/stroke-updated

Codes indicating stroke (both haemorrhagic and ischaemic).

Stroke (updated) CTV3

An updated version of https://codelists.opensafely.org/codelist/opensafely/stroke/, which contained some stray unmapped Read 2 codes.

The original codelist had 49 Read 2 codes. These are replaced by 127 CTV3 codes.

Stroke Secondary Care ICD-10

Stroke ICD-10 codes.

Structured Medication Review - NHS England SNOMED CT

SNOMED code to support NHS England Structured Medication Review Service.

Sulfasalazine (oral) BNF
Sulfasalazine-oral (dmd) dm+d

Oral sulfasalazine preparation in dm+d

Surgery Emergency OPCS-4 codes WITHOUT complication codes OPCS-4

This is a list of all the emergency OPCS-4 codes (as defined by RCS priority groups 1a and 1b), excluding the complication OPCS-4 codes for amputations, dislocations, compartment syndrome and washouts

Surgery emergency and immediate procedure OPCS-4 codes OPCS-4

OPCS-4 codes indicating an emergency or immediate procedure. Can be used in addition to primary procedure code

Surgery for peripheral artery disease CTV3

DEFINITION: Surgery for peripheral artery disease

Variables: (1) a binary variable denoting the presence of one of the codes at any point in the patient record. (2) the earliest date of such a code.

Surgery staged and revision procedure OPCS-4 codes OPCS-4

OPCS-4 codes indicating planned staged OR revision procedure. Can be used in addition to primary procedure code

Systemic Lupus Erythematosus (SLE) CTV3

These codes indicate a diagnosis of systemic lupus erythematosus (SLE)

Systolic blood pressure QoF SNOMED CT

A SNOMED CT codelist containing codes relating to systolic blood pressure (SBP) measurement.

Temporary Immunosuppression CTV3

Codes indicating a diagnosis of a temporary immunosuppression.

Temporary Immunosuppression (SNOMED) SNOMED CT

Automatically-generated equivalent of Temporary Immunosuppression

Thiazide type diuretic medication dm+d

The codelist contains medicines that are thiazide diuretics from the "thiazides and related diuretics" section of BNF codes.

Thyroid stimulating hormone (TSH) testing SNOMED CT

This codelist was developed to identify patients receiving a thyroid-stimulating hormone (TSH) test

Thyroid stimulating hormone (TSH) tests (numerical value) SNOMED CT

This codelist was developed to identify patients receiving a thyroid-stimulating hormone (TSH) test, with a numerical value.

Transient ischaemic attack CTV3

Codes that indicate incident or history of transient ischaemic attack. This codelist include definite and probable transient ischaemic attack. Future studies which require codes denoting definite transient ischaemic attack need to derive another codelist.

Transverse Myelitis CTV3

Codes that indicate an episode of transverse myelitis

Trimethoprim dm+d
Trimethoprim and nitrofurantoin dm+d
Type 1 Diabetes CTV3

Codes explicitly indicating Type 1 Diabetes

Type 1 diabetes (secondary care) ICD-10

Codes explicity indicating Type 1 Diabetes (secondary care)

Type 2 Diabetes CTV3

Codes explicitly indicating Type 2 Diabetes

Ulcerative colitis CTV3
VTE classified codes CTV3

VTE codes classified into cvt, dvt, pe, hepatic, smv, unspecified and other.

Valvular atrial fibrillation CTV3

Codes indicating incident/ history of valvular atrial fibrillation (codes indicating artificial valves and mitral stenosis).

Venous Thromboembolic Disease CTV3

DEFINITION: A history of venous thromboembolic disease

Variables: (1) a binary variable denoting the presence of one of the codes at any point in the patient record. (2) the earliest date of such a code.

Venous thromboembolism (current) by type - secondary care and mortality data ICD-10

ICD-10 codelist for any history of venous thromboembolism.

This differs from the existing OpenSAFELY codelist incident VTE by including codes that specify the event occured during pregnancy or post partum, and post thrombotic syndrome, and by further clarifying type (site) of VTE.

Venous thromboembolism (past) by type - secondary care and mortality data ICD-10

TODO

Warfarin dm+d

This is a codelist to identify all warfarin preparations in the NHS dictionary of medicines and devices.

Worms CTV3

CTV3 (READ V3) codelist for Worms

diabetes-exeter-group CTV3

Codes for type 1 and type 2 diabetes.

hazardous alcohol drinking CTV3

Codes that indicate hazardous alcohol drinking behavior. Future studies that require to specify ex-drinker and current-drinker need to revisit and review this codelist.

incident heart failure CTV3
incident-venous-thromboembolic-disease CTV3

Codes to define incident cases of venous thromboemolic disease.

peripheral arterial disease CTV3

Codes that indicate incident or history of peripheral arterial disease.

This is used for calculating the CHAD2S2-VASc score.

severe and profound learning disability flags CTV3

This is a list of generic codes which record the presence of a severe or profound learning disability, flagged as such in a patient's records separately to their underlying diagnosis.

t CTV3

f

test dm+d codes dm+d

test

ttt CTV3

t

venous thromboembolism ICD-10 ICD-10

Codes to define venous thromboembolism in ONS death data.

venous-thromboembolic-disease-hospital ICD-10

Codes to define venous thromboembolic disease in hospital.