OpenCodelists

Welcome to OpenCodelists, created by OpenSAFELY for creating and sharing codelists.

Anybody can also use this tool to create and share codelists. To get started, take a look at the documentation or watch the videos.

If you would like to publish codelists on behalf of an organisation, please get in touch.

Below, you'll find all the codelists that have been used in OpenSAFELY research to date.


All codelists


Reset
Soluble Tumour Necrosis Factor (TNF) receptors systemic medication codes dm+d
Taken from the `STNFDRUG_COD` NHS drug refset. Contains public sector information licensed under the UK Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
Published by NHS Drug Refsets
Soluble paracetamol and co-codamol BNF
Used by the following [OpenPrescribing](https://openprescribing.net) measures:

* [Soluble/effervescent forms of paracetamol and co-codamol](https://openprescribing.net/measure/solublepara/)
Published by OpenPrescribing
Some other antibacterials (antibacterials) dm+d
Some other antibacterials codelist extracted from antibacterials codelist (https://www.opencodelists.org/codelist/opensafely/antibacterials/27089eaa/)
Published by UKHSA
Sore-throat-and-related-conditions-for-pharmacy-first SNOMED CT
Codes that a GP could use to record that a patient has presented with sore throat, or a condition that might cause a sore throat. This keeps conditions that can end-up with antibiotic prescribing in GP practices.

Updated with new codes May 7,2026
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.
Published by OpenSAFELY
South and West Devon Red Drugs BNF
Test red drugs list created by importing data from NHS Devon lists
Published by NHS Devon
SpO2 (sats, saturations) SNOMED CT
...
Published by Ardens
Specific immunosuppressant systemic medication codes dm+d
Taken from the `EPPMISCIMMDRUG_COD` NHS drug refset. Contains public sector information licensed under the UK Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
Published by NHS Drug Refsets
Sphingosine-1-phosphate receptor modulator systemic medication codes dm+d
Taken from the `S1PRMDRUG_COD` NHS drug refset. Contains public sector information licensed under the UK Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
Published by NHS Drug Refsets
Spirometry codes for asthma SNOMED CT
Taken from the `ASTSPIR_COD` refset published by NHSD. Contains public sector information licensed under the UK Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
Spirometry codes for chronic obstructive pulmonary disease (COPD) SNOMED CT
Taken from the `COPDSPIR_COD` refset published by NHSD. Contains public sector information licensed under the UK Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
Spironolactone dm+d
This codelist contains [spironolactone preparations](https://openprescribing.net/chemical/0202030S0/).
Published by OpenSAFELY
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/).
Published by OpenSAFELY
Statin codes dm+d
Taken from the `STAT_COD` NHS drug refset. Contains public sector information licensed under the UK Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
Published by NHS Drug Refsets
Statin contraindications (expiring) codes SNOMED CT
Taken from the `TXSTAT_COD` refset published by NHSD. Contains public sector information licensed under the UK Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).