OpenSAFELY codelists
Published codelists
All of the codelists published by OpenSAFELY
| Name | Coding system | Description | Last updated |
|---|---|---|---|
| Respiratory Virus (Unspecified) Identification (Secondary Care) | ICD-10 | Codelist for identifying repsiratory infections in secondary care which have no identified pathogen. For additional case identification in older adults, COPD and Asthma exacerbations can be recorded as cases (see references). | |
| Restoration of childbearing potential (female patients) | SNOMED CT | Identifies codes which may indicate the restoration of childbearing potential following a previous sterilisation procedure. The scope of the codelist is limited to female patients. | |
| Restricted termination codes | SNOMED CT |
"General practice summary data sharing exclusion for termination of pregnancy simple reference set" Codes relating to termination of pregnancy which are restricted from inclusion in OpenSAFELY |
|
| Reversible loss of childbearing potential (female patients) | SNOMED CT | Identifies codes which indicate a definite loss of childbearing potential, but where childbearing potential could possibly be restored following a successful reparative procedure. The scope of the codelist is limited to female patients. | |
| 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) | |
| Rickets | SNOMED CT | Codes which indicate that rickets exists. | |
| Risedronate | dm+d | All products containing risedronate. | |
| 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](https://ebmdatalab.net/what-is-the-dmd-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](https://ebmdatalab.net/what-is-the-dmd-the-nhs-dictionary-of-medicines-and-devices/). | |
| SGLT2 Inhibitors | dm+d | This codelist aims to identify the prescribing of an SGLT2 inhibitor, including in combination with other oral antidiabetic medications. | |
| SNOMED Ethnicity | SNOMED CT |
This is a codelist of all ethnicity codes which ever appear in TPP. SNOMED codes with a zero count are excluded from the codelist. We are aware that some of the individual codes contained in this codelist are offensive and upsetting. Although these terms are outdated and no longer in routine use, it is necessary to include them in codelists due to the historic nature of the data that is being analysed. |
|
| SPS - Paxlovid Interactions - do not use | BNF |
Description Drugs with a recommendation of 'do not use' in the Specialist Pharmacy Services publication on interactions with the drug Nirmatrelvir, published 2022-02-02. |
|
| Scarlet fever | SNOMED CT | Following an increase in cases of [Scarlet Fever and invasive Group A Strep in the UK](https://ukhsa.blog.gov.uk/2022/12/05/group-a-strep-what-you-need-to-know/) this codelist aims to identify patients who have had a diagnosis of or a suspected diagnosis of Scarlet Fever. | |
| 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](https://codelists.opensafely.org/codelist/user/orlamac/second-generation-antipsychotics-exc… |
|
| Selective serotonin reuptake inhibitors | BNF | This codelist contains codes from the [NHS dictionary of medicines and devices (dm+d)](https://www.thedatalab.org/blog/2019/08/81/what-is-the-dmd-the-nhs-dictionary-of-medicines-and-devices/) 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)](https://www.thedatalab.org/blog/2019/08/81/what-is-the-dmd-the-nhs-dictionary-of-medicines-and-devices/) for SSRI medications, a common class of antidepressants. | |
| Semaglutide for diabetes | dm+d | This codelist aims to identify the prescribing of semaglutide products which are licenced for the treatment of diabetes. | |
| Semaglutide for obesity | dm+d | This codelist aims to identify the prescribing of semaglutide products which are licenced for the treatment of obesity. | |
| Severe Liver Disease | SNOMED CT | This codelist aims to identify patients with severe liver disease. | |
| Sickle Cell Disease | CTV3 | Codes indicating diagnosis of sickle cell disease | |
| Sickle Cell Disease (SNOMED) | SNOMED CT | Automatically-generated equivalent of [Sickle Cell Disease](/codelist/opensafely/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](https://ebmdatalab.net/what-is-the-dmd-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](https://ebmdatalab.net/what-is-the-dmd-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](/codelist/opensafely/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](/codelist/opensafely/smoking-unclear/) | |
| Sodium tests | SNOMED CT | A SNOMED CT codelist for patients receiving tests for sodium level | |
| 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 ](/codelist/opensafely/solid-organ-transplantation/) | |
| Sotrovimab - dmd | dm+d |
A codelist to identify prescriptions of sotrovimab. ##### User requirements I need a codelist to return all recorded prescriptions of sotrovimab primary care records. This will be used to plot the recorded prescribing in primary care of all COVID-19 therapeutics. |
|
| Spironolactone | dm+d | This codelist contains [spironolactone preparations](https://openprescribing.net/chemical/0202030S0/). | |
| Statin Medication | dm+d | A list of statin preparations at VMP and AMP from the [NHS Dictionary of Medicines and Devices](https://ebmdatalab.net/what-is-the-dmd-the-nhs-dictionary-of-medicines-and-devices/). | |
| Stroke (SNOMED) | SNOMED CT | Automatically-generated equivalent of [Stroke](/codelist/opensafely/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. | |
| Strong Opioids | BNF |
##### User requirements A codelist is needed of all strong opioids used for analgesia (any route) excluding cough suppression, motility, general anaesthesia, opiate use disorder - this is for a project looking at opioid prescribing for patients on hospital waiting lists. This will use the BNF definition of strong opioids https://bnf.nice.org.uk/treatment-summaries/analgesics/ |
|
| Strong Opioids - dmd | dm+d |
##### User requirements A codelist is needed of all strong opioids used for analgesia (any route) excluding cough suppression, motility, general anaesthesia, opiate use disorder - this is for a project looking at opioid prescribing for patients on hospital waiting lists. This will use the BNF definition of strong opioids https://bnf.nice.org.uk/treatment-summaries/analgesics/ |
|
| 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 | |
| Sulfonylureas | dm+d | This codelist aims to identify sulfonylureas. | |
| 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 |