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
- OpenPrescribing Measure: Antibiotic stewardship: volume of antibiotic prescribing (numerator) BNF
-
Antibacterial drugs contained with BNF section 5.1, as used by OpenPrescribing "Antibiotic stewardship: volume of antibiotic prescribing (KTT9)" measure.Published by OpenPrescribing
- Opioid-containing medicines (buccal, nasal and oromucosal- excluding drugs for substance misuse) - dm+d dm+d
-
All opioid-containing products which are given via buccal, nasal, or oromuscosal route of administration, EXCLUDING products listed in section 4.10 (substance misuse) of the legacy BNF code structure. Drugs outside of this, but not included in "opioid analgesics" in the BNF ARE included (e.g. co-codamol, alfentanil)Published by OpenSAFELY
- Opioid-containing medicines (inhalation- excluding drugs for substance misuse) - dm+d dm+d
-
All opioid-containing products which are given via inhaled route of administration, EXCLUDING products listed in section 4.10 (substance misuse) of the legacy BNF code structure. Drugs outside of this, but not included in "opioid analgesics" in the BNF ARE included (e.g. co-codamol, alfentanil)Published by OpenSAFELY
- Opioid-containing medicines (oral - excluding drugs for substance misuse) - dm+d dm+d
-
All opioid-containing products which are given via oral route of administration, EXCLUDING products listed in section 4.10 (substance misuse) of the legacy BNF code structure. Drugs outside of this, but not included in "opioid analgesics" in the BNF ARE included (e.g. co-codamol, alfentanil)Published by OpenSAFELY
- Opioid-containing medicines (parenteral- excluding drugs for substance misuse) - dm+d dm+d
-
All opioid-containing products which are given via parenteral route of administration, EXCLUDING products listed in section 4.10 (substance misuse) of the legacy BNF code structure. Drugs outside of this, but not included in "opioid analgesics" in the BNF ARE included (e.g. co-codamol, alfentanil)Published by OpenSAFELY
- Opioid-containing medicines (rectal - excluding drugs for substance misuse) - dm+d dm+d
-
All opioid-containing products which are given via rectal route of administration, EXCLUDING products listed in section 4.10 (substance misuse) of the legacy BNF code structure. Drugs outside of this, but not included in "opioid analgesics" in the BNF ARE included (e.g. co-codamol, alfentanil)Published by OpenSAFELY
- Opioid-containing medicines (transdermal- excluding drugs for substance misuse) - dm+d dm+d
-
All opioid-containing products which are given via transdermal route of administration, EXCLUDING products listed in section 4.10 (substance misuse) of the legacy BNF code structure. Drugs outside of this, but not included in "opioid analgesics" in the BNF ARE included (e.g. co-codamol, alfentanil)Published by OpenSAFELY
- Other Antidepressants DM&D dm+d
-
This code list contains codes from the NHS dictionary of medicines and devices (dm+d) for a collection of antidepressants from the BNF Chapter 040304 known as Other Antidepressants. These medicines are all licensed for the treatment of depression. The following antidepressants from this chapter have been excluded: Flupenthixol, Levomilnacripan, Oxitriptan. See github discussion for further details. Trazodone and Mianserin (both from BNF Chapter 040301) have also been included in this codelist. …Published by OpenSAFELY
- Phenoxymethylpenicillin (oral preparations only) dm+d
-
This codelist contains phenoxymethylpenicillin formulations which may be given orally.
The dm+d codelist is derived from this pseudo BNF codelist: https://www.opencodelists.org/codelist/user/speed-vm/medication-phenoxymethylpenicillin/10e57827/Published by OpenSAFELY - Phenoxymethylpenicillin (oral) dm+d
-
This codelist contains phenoxymethylpenicillin formulations which may be given orally.
The dm+d codelist is derived from this pseudo BNF codelist: https://www.opencodelists.org/codelist/user/speed-vm/medication-phenoxymethylpenicillin/10e57827/Published by OpenSAFELY - 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/
Published by OpenSAFELY - 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/
Published by OpenSAFELY - Thiazide type diuretic medication dm+d
-
The codelist contains medicines that are thiazide diuretics from the ["thiazides and related diuretics" section of BNF codes](https://openprescribing.net/bnf/020201/).Published by OpenSAFELY
- Vitamin D Prescription BNF
-
Codelist created by Liang-Yu Lin using the SNOMED - BNF mapping tool provided by NHS for publication '"The Association between Vitamin D and Incident Herpes Zoster: A UK Biobank Study"
https://github.com/liang-yu12/ukb_vd_hz_publish/blob/376501dfbb670fe351337480024539fb0dd06877/code_lists/exposure_vitd_drug/vitd_drug_dmd.csvPublished by OpenSAFELY