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
Methotrexate - oral BNF
[BNF codelist](https://www.thedatalab.org/blog/161/prescribing-data-bnf-codes/) for oral methotrexate.
Published by OpenSAFELY
Methylphenidate BNF
pseudoBNF codelist for methylphenidate
Published by OpenSAFELY
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
OpenPrescribing Measure: Antibiotic stewardship: volume of antibiotic prescribing (numerator) dm+d
Antibacterial drugs contained with BNF section 5.1, as used by OpenPrescribing "Antibiotic stewardship: volume of antibiotic prescribing (KTT9)" measure.
Published by OpenSAFELY
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