Venous Thromboembolic Disease

PH3796 / 8949

OpenSAFELY

Jan 26, 2026

REGISTERING DOI...

OpenCodelists Phenotype
  1. Overview

    Codelist ID
    opensafely/venous-thromboembolic-disease
    Version ID
    237264c7
    Version Tag
    2020-09-14
    Coding System
    Read codes v3
    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.

    DEFINITION: A history of venous thromboembolic disease

    Variables: (1) a binary variable denoting the presence of one of the codes at any point in the patient record. (2) the earliest date of such a code.

    © 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

    Process (1) Read 2 code list from Helen Strongman and Angel Wong combined here: We did not include codes for suspected/possible DVT/PE; nor PEs specified as air embolism or amniotic fluid embolism as would not indicate at ongoing risk of a venous thrombosis/clot. (2) SNOMED searched for DVT and PE

    didn't include air embolisms, fat embolisms, or amniotic fluid embolisms or suspected PE assumed unspecified PEs were blood clots. (3) mapped to CTV3 and reviewed by Helen McDonald and Amir Mehrkar, principles discussed with Laurie Tomlinson as above. To reflect the conversation, HM updated the spreadsheet with a final recommendation CTV3_venous_thromboembolism_combining_comments.xlsx FLEXIBILITY NEEDED BETWEEN STUDIES: This list

    doesn't include fat pulmonary embolism, air pulmonary embolism or amniotic fluid pulmonary embolism (though assumes unspecified PEs are thromboembolic) includes codes for any history of DVT or PE - studies of incident DVT/PE may wish to exclude these. includes codes for PE/DVT in pregnancy, which may not be relevant for all studies includes codes for cerebral venous thrombosis (which may be caused by cerebral inflammation eg. meningitis and is only very rarely associated with PE) and portal thrombosis (which may be caused by liver pathology and should not be able to result in PE) and mesenteric thrombosis, not all of which may be relevant for other study questions. EFFECTS ON COHORT SELECTION: None

    POTENTIAL BIASES: This variable includes a history of any venous thrombosis. Some DVTs/PEs will have occurred in the context of a temporary condition (e.g. pregnancy, meningitis, immobility), and some individuals identified by this codelist will be at higher risk of future DVT/PE than others

  4. References

  5. Clinical Codelist

  6. API

    To Export Phenotype Details:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3796/version/8949/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(
     'PH3796',
     version_id=8949
    )

    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(
     'PH3796',
     version_id=8949
    )

    To Export Phenotype Code List:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3796/version/8949/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(
     'PH3796',
     version_id=8949
    )

    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(
     'PH3796',
     version_id=8949
    )

  7. Version History

    Version IDNameOwnerPublish date
    Venous Thromboembolic Disease ieuan.scanlon2026-01-26 23:34