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
- Metformin dm+d
-
This codelist aims to identify the prescribing of metformin, including in combination with other oral antidiabetic medications.Published by OpenSAFELY
- Metformin drug codes dm+d
-
Taken from the `METFORMIN_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
- Methotrexate (oral) dm+d
-
dm+d codelist for oral methotrexatePublished by OpenSAFELY
- Methotrexate - injectable dm+d
-
dm+d codelist for injectable methotrexatePublished by OpenSAFELY
- Methotrexate - oral BNF
-
[BNF codelist](https://www.thedatalab.org/blog/161/prescribing-data-bnf-codes/) for oral methotrexate.Published by OpenSAFELY
- Methotrexate 10mg BNF
-
Used by the following [OpenPrescribing](https://openprescribing.net) measures:
* [Methotrexate 10 mg tablets ](https://openprescribing.net/measure/methotrexate/)Published by OpenPrescribing - Methotrexate 2.5mg and 10mg BNF
-
Used by the following [OpenPrescribing](https://openprescribing.net) measures:
* [Methotrexate 10 mg tablets ](https://openprescribing.net/measure/methotrexate/)Published by OpenPrescribing - Methotrexate Rx dm+d
-
Taken from the `MET_COD` field in the National PINCER Data Specification, published by PRIMIS.
© PRIMIS - the University of Nottingham 2021Published by PINCER - Methotrexate medication codes dm+d
-
Taken from the `METHOTREXDRUG_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
- Methylphenidate BNF
-
pseudoBNF codelist for methylphenidatePublished by OpenSAFELY
- Methylphenidate - dmd dm+d
-
dm+d codelist for methylphenidatePublished by OpenSAFELY
- Metronidazole dm+d
-
MetronidazolePublished by Pharmacy First project
- Metronidazole, tinidazole and ornidazole (antibacterials) dm+d
-
Metronidazole, tinidazole and ornidazole codelist extracted from antibacterials codelist (https://www.opencodelists.org/codelist/opensafely/antibacterials/27089eaa/)Published by UKHSA
- Miconazole nitrate dm+d
-
Miconazole
Updated July 20, 2026Published by Pharmacy First project - Midazolam BNF
-
Midazolam that is generally prescribed at the end of life.Published by OpenSAFELY