OpenCodelists

OpenSAFELY codelists

Published codelists

All of the codelists published by OpenSAFELY

Name Coding system Description Last updated
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](https://www.thedatalab.org/blog/161/prescribing-data-bnf-codes/) for azathioprine.
Azathioprine DM+D dm+d This codelist contains NHS Dictionary of Medicines and Devices (dm+d) codes for all azathioprine preparations.
Azithromycin (oral) dm+d This codelist contains azithromycin formulations which may be given orally.
Azithromycin Medication dm+d This codelists includes AMPs and VMPs from the [NHS dictionary of medicines and devices](https://ebmdatalab.net/what-is-the-dmd-the-nhs-dictionary-of-medicines-and-devices/) for azithromycin.
Bell's palsy CTV3 CTV3 codelist for incident Bell's palsy

Included unspecified facial nerve disorders following Leite et al.
Bell's palsy - ECDS restricted reference set SNOMED CT Bell's palsy - relevant code from ECDS restricted reference set of SNOMED codes
Bell's palsy ICD-10 ICD-10 ICD-10 code for Bell's palsy, for use in hospital admissions and mortality data
Beta-blocker medications dm+d This code list contains [NHS dm+d codes](https://ebmdatalab.net/what-is-the-dmd-the-nhs-dictionary-of-medicines-and-devices/) for [beta-adrenoceptor blocking drugs](https://openprescribing.net/bnf/0204/), which are better known as beta-blockers.
Bone Density Scan SNOMED CT Codes which relate to the arrangement, completion, or result of a bone density scan.
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](/codelist/opensafely/bone-marrow-transplant/)
Born in the UK or Crown Dependencies SNOMED CT This codelist aims to indicate if an individual was born in one of the UK countries (England, Wales, Scotland or Northern Ireland) or the Crown Dependencies (Isle of Man, Jersey and Guernsey). This codelist will be used in conjunction with other migration codelists in order to create a migration status variable in a short data report describing the quality of migration recording in primary care data within the OpenSAFELY platform.
Born outside the UK SNOMED CT This is a codelist of all SNOMED CT codes indicating a country of birth that is not the UK or its devolved nations (Scotland, Wales or Northern Ireland) or Crown Dependencies (Isle of Man, Jersey or Guernsey), which will be used to create a cohort of potential migrants within the OpenSAFELY platform.
British ethnicities SNOMED CT A codelist to identify British nationalities.
COPD - secondary care ICD-10 Identifies COPD hospital admissions.
COPD Infection CTV3 Codes indicating a diagnosis of COPD exacerbation or a LRTI infection
COPD Medications (New) BNF Codelist created from existing list, https://www.opencodelists.org/codelist/bristol/copd-medications-bnf/4b00637c/#full-list, to solve issue with dm+d conversion
COPD Medications (New) - dmd dm+d Codelist created from existing list, https://www.opencodelists.org/codelist/bristol/copd-medications-bnf/4b00637c/#full-list, to solve issue with dm+d conversion
COPD Rescue Packs and Annual Reviews CTV3 Code indicating an annual review of COPD or the provision of a rescue pack for COPD exacerbations
COPD exacerbation secondary care ICD-10 Identifies COPD exacerbation hospital admissions.
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.
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 - positive test SNOMED SNOMED CT Codes indicating COVID-19 case (SNOMED mapping of 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 A&E diagnosis codes SNOMED CT SNOMED diagnosis codes for identifying people presenting to A&E with COVID-19. These codes are intended for use with NHS Emergency Care Data Set (ECDS) data only. Note that 1240751000000100 is deprecated as of 31 March 2022. The other three codes (1325171000000109, 1325181000000106, 1325161000000102) were introduced on 1 July 2021.
COVID-19 Exclusion (Primary Care) - Maximal Sensitivity SNOMED CT Exclusion criteria for identifying COVID-19 in primary care when using a maximally sensitive codelist. This codelist has been created to be used in research where you are aiming to identify cases of COVID-19 in primary care using a maximally sensitive codelist (see references) and must then use an exclusion criteria to ensure you are not identifying patients incorrectly.
COVID-19 Exclusion (Secondary Care) - Maximal Sensitivity ICD-10
COVID-19 Identification (Prescriptions) - Maximal Sensitivity - dmd dm+d
COVID-19 Identification (Prescriptions) - Maximal Sensitivity BNF Codelist created to identify Covid-19 in primary care without testing, medications provided by NHS England
COVID-19 Identification (Primary Care) SNOMED CT Codelist created to identify COVID-19 in primary care with as much specificity as possible
COVID-19 Identification (Primary Care) - Maximal Sensitivity SNOMED CT Codelist created to identify COVID-19 in primary care with as much sensitivity as possible
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