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
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
Antipsychotic drugs codes used for psychosis dm+d
Taken from the `ANTIPSYONLYDRUG_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
Antituberculosis drugs (antibacterials) dm+d
Antituberculosis drugs codelist extracted from antibacterials codelist (https://www.opencodelists.org/codelist/opensafely/antibacterials/27089eaa/)
Published by UKHSA
Anxiety Disorders SNOMED CT
Codes that indicate the presence of an anxiety disorder.
Published by OpenSAFELY
Anxiety diagnostic codes SNOMED CT
Taken from the `ANX_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/).
Anxiety resolved codes SNOMED CT
Taken from the `ANXRES_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/).