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
Patients in long-stay nursing and residential care SNOMED CT

Taken from the LONGRES_COD field in SARS-CoV2 COVID19 Vaccination Uptake Reporting Codes 20_21 v1, published by PRIMIS.

© PRIMIS - the University of Nottingham 2021

Paxlovid (nirmatrelvir/ritonavir) absolute contraindications - dmd dm+d

This codelist contains drugs which are likely to contraindicate the use of Paxlovid (nirmatrelvir/ritonavir). This list is a refinement of previous "do not co-administer" lists to filter out drugs where mitigation strategies may be employed - e.g. withholding the drug during Paxlovid therapy. See GitHub issue for full details.

Published by OpenSAFELY
Paxlovid - dmd dm+d

A codelist to identify all prescribing of Paxlovid (Nirmatrelvir with Ritonavir).

User requirements Codelist needed to return all recorded prescriptions of Paxlovid in primary care records. This will be used to plot the recorded prescribing in primary care of all COVID-19 therapeutics.

Sensitivity versus specificity Volumes expected to be low, and drugs specific, so sensitivity to be prioritised

Relevant definitions or links to important reference sources N/A

Coding system dm+d

Existing relevant codelists https://github.com/opensafely/Paxlovid-and-sotrovimab/blob/main/codelists/bangzheng-paxlovid-dmd-0964dee3.csv

Published by OpenSAFELY
Peak expiratory flow rate (PEFR) codes SNOMED CT

Taken from the PEFR_COD refset published by NHSD.

Peak expiratory flow rate (PEFR) codes SNOMED CT

The PEFR_COD cluster in the asthma reference set taken from the Primary Care Domain Reference Set Portal, published by NHS Digital on 2021-12-21.

Published by OpenSAFELY
Pemphigus codes SNOMED CT

Taken from the PEMPHIGUS_COD refset published by NHSD.

Penicillamine BNF
Published by OpenSAFELY
Penicillamine dmd dm+d

dm+d codelist for penicillamine

Published by OpenSAFELY
Penicillins (antibacterials) dm+d

Penicillins codelist extracted from antibacterials codelist (https://www.opencodelists.org/codelist/opensafely/antibacterials/27089eaa/)

Published by UKHSA
Peptic ulceration codes SNOMED CT

Taken from the PEPTICULCER_COD refset published by NHSD.

Peripheral arterial disease (PAD) diagnostic codes SNOMED CT

Taken from the PAD_COD refset published by NHSD.

Peripheral arterial disease (PAD) exception codes SNOMED CT

Taken from the PADEXC_COD refset published by NHSD.

Permanent Immunosuppression CTV3

Codes indicating a diagnosis of a permanent immunosuppression excluding HIV, and including genetic causes of immunosuppression

Published by OpenSAFELY
Permanent Immunosuppression (SNOMED) SNOMED CT

Automatically-generated equivalent of Permanent Immunosuppression

Published by OpenSAFELY
Permanent loss of childbearing potential (female patients) SNOMED CT

Identifies codes which indicate a definite loss of childbearing potential which cannot plausibly be restored. The scope of the codelist is limited to female patients.

Published by OpenSAFELY