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](https://github.com/opensafely/codelist-development/issues/266) 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.
Published by OpenSAFELY
Peak expiratory flow rate (PEFR) codes SNOMED CT
Taken from the `PEFR_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/).
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
Peak expiratory flow rate variability done codes SNOMED CT
Taken from the `PEFRVAR_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/).
Pemphigus codes SNOMED CT
Taken from the `PEMPHIGUS_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/).
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. Contains public sector information licensed under the UK Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
Peripheral arterial disease (PAD) diagnostic codes SNOMED CT
Taken from the `PAD_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/).
Peripheral arterial disease (PAD) exception codes SNOMED CT
Taken from the `PADEXC_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/).
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](/codelist/opensafely/permanent-immunosuppression/)
Published by OpenSAFELY