Dementia Identification with EMR

PH1717 / 3642

Doney ASF, Bonney W, Jefferson E, Walesby KE, Bittern R, Trucco E, Connelly P, McCrimmon RJ, Palmer CNA.

Feb 13, 2025

Clinical-Coded Phenotype
  1. Overview

    Phenotype Type
    Disease or syndrome
    Sex
    Both
    Valid Event Date Range
    No data
    Coding System
    BNF codesICD10 codes
    Collections
    No data
    Tags
    No data
    Ontology
    No data
  2. Definition

    The major data sources in the U.K. NHS EMR for identification of dementia cases comprises hospitalisation and death data and dispensed prescribing data. From these sources, we categorise any dementia into the following clinicopathological subtypes: Alzheimer's dementia, vascular dementia, other dementia (any dementia type other than Alzheimer's or vascular), possible dementia, and unspecified dementia (where a specific sub-type is not recorded). For each individual with dementia, the earliest date of occurrence of evidence of dementia in any of the data sources is taken as a surrogate for the incident date of dementia.

    For more information about the phenotype, please refer to linked publications.

  3. Implementation

    Implementation

    In the U.K. NHS, Hospitalisation and Death Data are coded using ICD codes from both versions ICD-9 and ICD-10. We use a combination of ICD-10 and BNF codes to adjudicate dementia sub-type as listed in the concept list below.

    Given the longitudinal nature of EMR data, we make use of the entire longitudinal data available for each individual to determine a consensus code category from all dementia coding episodes for that individual and apply that category to the date of the first (incident) episode. This is achieved for each individual by determining the total number of distinct dementia coding episodes and for each coding category, calculating its proportion of the total. This proportion is used as a weighting to adjudicate the likely diagnostic category for an individual.

    In the U.K. NHS, medications for dementia (donepezil hydrochloride, galantamine, rivastigmine, and memantine hydrochloride) are largely indicated for individuals with Alzheimer dementia; therefore, in the absence of other information, a history of redeeming a prescription for one of these drugs is considered to indicate a diagnosis of Alzheimer or mixed dementia. We use community-dispensed prescribing data available in the EMR to determine the first date of redeeming a prescription in the community for one of these drugs.

    For more detail on implementation, please refer to linked publications.

  4. Clinical Codelist

  5. Publication

    Related publications

    • Doney ASF, Bonney W, Jefferson E, Walesby KE, Bittern R, Trucco E, Connelly P, McCrimmon RJ, Palmer CNA. Investigating the Relationship Between Type 2 Diabetes and Dementia Using Electronic Medical Records in the GoDARTS Bioresource. Diabetes Care. 2019 Oct;42(10):1973-1980. doi: 10.2337/dc19-0380. Epub 2019 Aug 7. PMID: 31391202.

      (DOI: 10.2337/dc19-0380)

    Citation Example

    Doney ASF, Bonney W, Jefferson E, Walesby KE, Bittern R, Trucco E, Connelly P, McCrimmon RJ, Palmer CNA.. PH1717 / 3642 - Dementia Identification with EMR. Phenotype Library [Online]. 13 February 2025. Available from: http://phenotypes.healthdatagateway.org/phenotypes/PH1717/version/3642/detail/. [Accessed 06 June 2026]

  6. API

    To Export Phenotype Details:

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

    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(
     'PH1717',
     version_id=3642
    )

    To Export Phenotype Code List:

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

    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(
     'PH1717',
     version_id=3642
    )

  7. Version History

    Version IDNameOwnerPublish date
    3973 Dementia Identification with EMR skrueger2025-06-11 16:15
    3756 Dementia Identification with EMR skrueger2025-05-14 17:08
    3652 Dementia Identification with EMR skrueger2025-03-03 14:58
    Dementia Identification with EMR skrueger2025-02-13 14:47