Venous thromboembolism (current) by type - secondary care and mortality data

PH3798 / 8951

OpenSAFELY

Jan 26, 2026

REGISTERING DOI...

OpenCodelists Phenotype
  1. Overview

    Codelist ID
    opensafely/venous-thromboembolism-current-by-type-secondary-care-and-mortality-data
    Version ID
    4402fca7
    Coding System
    ICD10 codes
    Collections
    OpenCodelistPhenotype Library
    Tags
    No data
  2. Definition

    This codelist was taken from OpenCodelists, created by OpenSAFELY. We recommend viewing this Phenotype on the OpenCodelist website to view the most recent version.

    ICD-10 codelist for any history of venous thromboembolism.

    This differs from the existing OpenSAFELY codelist incident VTE by including codes that specify the event occured during pregnancy or post partum, and post thrombotic syndrome, and by further clarifying type (site) of VTE.

    © University of Oxford for the Bennett Institute for Applied Data Science 2025. This work may be copied freely for non-commercial research and study.

  3. Methodology

    Aim

    Codelist to identify people with a history of VTE (in any context including while pregnant).

    Search

    (1) Identified existing ICD-10 codelists in the OpenSAFELY database for VTE (a) https://codelists.opensafely.org/codelist/opensafely/venous-thromboembolism-icd-10/6e25de26/#full-list (b) https://codelists.opensafely.org/codelist/opensafely/venous-thromboembolic-disease-hospital/2020-10-01/#full-list The second (b) includes all codes in (a) and additionally codes for VTE in unspecified sites, which we'd want to include here. Neither includes any codes relating to pregnancy or postpartum, which we would want to include for a full capture of 'a history of VTE' (c) There's also a codelist specifically for cerebral venous thrombosis which includes CVT from all causes (inc pregnancy, post partum and in the context of sepsis https://codelists.opensafely.org/codelist/opensafely/cerebral-venous-thrombosis-secondary-care-or-mortality/43b72958/ and has been discussed with MHRA and PHE

    (2) Searched for existing validated codelists and found list by Sultan et al (reference below).

    (3) New search in WHO browser (2019 version) to check for any further codes to consider.

    Approach:

    Based codelist on validated codelist by Sultan et al, with additions of - cerebral venous thrombosis codes - post thrombotic syndrome (since we are interested in a history of VTE not incidence) - events specified as in pregnancy or postpartum. - 3-character codes I80, I81 and I26 as all subtypes relevant (other than I800 for superficial thrombosis nested below I80)

    Categorised by site aiming for as much consistency as possible with CTV3 codelist https://codelists.opensafely.org/codelist/opensafely/vte-classified-codes/08b94f7d/

    Discussion on Github https://github.com/opensafely/codelist-development/issues/92

  4. References

  5. Clinical Codelist

  6. API

    To Export Phenotype Details:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3798/version/8951/detail/?format=json
    R Package

    # Download here

    library(ConceptLibraryClient)


    # Connect to API

    client = ConceptLibraryClient::Connection$new(public=TRUE)


    # Get details of Phenotype

    phenotype_details = client$phenotypes$get_detail(
     'PH3798',
     version_id=8951
    )

    Py Package

    # Download here

    from pyconceptlibraryclient import Client


    # Connect to API

    client = Client(public=True)


    # Get details of Phenotype

    phenotype_detail = client.phenotypes.get_detail(
     'PH3798',
     version_id=8951
    )

    To Export Phenotype Code List:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3798/version/8951/export/codes/?format=json
    R Package

    # Download here

    library(ConceptLibraryClient)


    # Connect to API

    client = ConceptLibraryClient::Connection$new(public=TRUE)


    # Get codelist of Phenotype

    phenotype_codelist = client$phenotypes$get_codelist(
     'PH3798',
     version_id=8951
    )

    Py Package

    # Download here

    from pyconceptlibraryclient import Client


    # Connect to API

    client = Client(public=True)


    # Get codelist of Phenotype

    phenotype_codelist = client.phenotypes.get_codelist(
     'PH3798',
     version_id=8951
    )

  7. Version History

    Version IDNameOwnerPublish date
    Venous thromboembolism (current) by type - secondary care and mortality data ieuan.scanlon2026-01-26 23:35