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
Anticoagulants BNF BNF
Anticoagulants BNF CODE
Antidepressant drugs (LDO) dm+d
Taken from the `ANTIDEPDRUG_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
Antidepressants SNOMED CT
Prescription codes for antidepressants.
Antidepressants for pain indication - dm+d dm+d
This codelist will be used to identify prescribing of antidepressants with an indication for pain to people waiting on procedure waiting lists.
Published by OpenSAFELY
Antidepressants-BNF BNF
Anti-dperessants BNF codes
Antidiabetic drugs dm+d
This codelists contains all the NHS dictionary of medicines and devices codes for "antidiabetic drugs" as specified by the BNF coding system. This does not include insulin.
Published by OpenSAFELY
Antihistamines (oral) dm+d
This codelist contains [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 oral antihistamines
Published by OpenSAFELY
Antihypertensive drugs SNOMED CT
DO NOT USE - these are antihypertensive SNOMED codes not dmd codes. See here for another codelist: https://www.opencodelists.org/codelist/nhs-drug-refsets/antihyp_cod/20250912/

Antihypertensive drugs
Published by REDUCEHF
Antihypertensive medication codes dm+d
Taken from the `ANTIHYP_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
Antileprotic drugs (antibacterials) dm+d
Antileprotic drugs codelist extracted from antibacterials codelist (https://www.opencodelists.org/codelist/opensafely/antibacterials/27089eaa/)
Published by UKHSA
Antiphospholipid syndrome CTV3
Codes that indicate incident or history of antiphospholipid syndrome
Published by OpenSAFELY
Antiphospholipid syndrome codes SNOMED CT
Taken from the `ANTIPHOSYND_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/).
Antiplatelet Rx without aspirin Rx dm+d
Taken from the `NON_ASP_ANTIPLATE_COD` field in the National PINCER Data Specification, published by PRIMIS.

© PRIMIS - the University of Nottingham 2021
Published by PINCER
Antiplatelets dm+d
This codelist contains codes for antiplatelets.
Published by OpenSAFELY
Antipsychotic drug codes dm+d
Taken from the `ANTIPSYDRUG_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