Homelessness

Luchenski S

PH344 / 688 Clinical-Coded Phenotype

  1. Overview

    Phenotype Type
    Lifestyle risk factor
    Sex
    Both
    Valid Event Date Range
    No data
    Coding System
    ICD10 codesNon-standard codes
    Collections
    Phenotype Library
    Tags
    No data
  2. Definition

    Homelessness is not routinely recorded in hospital care records. We consulted people with lived experience of homelessness and clinical collaborators to produce a set of homeless identifiers including:

    • Those whose address is recorded as ‘no fixed abode’, (NFA)

    • Those who are registered at a known homeless GP practice that exclusively serves those with homelessness problems

    • Those who have a diagnosis that includes the ICD-10 code for homelessness (Z59.0)

    Although HES data has undergone cleaning prior to its release by NHS Digital, additional cleaning is necessary to produce a sample ready for analysis. We applied University of York Centre for Health Economics rules for cleaning including:

    1. Drop poorly coded observations

      a. Missing on:

      i. HESID (unique identifier) ii. Epiend (episode end date) iii. Epidur (episode duration)
    2. Drop duplicates – any duplicates across the following variables

      a. HESID (unique identifier), epistart (episode start date), epiorder (episode order), epiend (episode end date), and transit (a variable I derived using the University of York’s code to account for transfers in and out of hospitals that are part of the same admission)

    We also applied cleaning rules adapted from the Department of Health report for analysing ‘No Fixed Abode’ (NFA) data:

    1. Drop if age is less than 16yrs for whole cohort

    2. Drop all neonatal diagnoses

    3. Drop pregnancy termination if patient is only coded with NFA and not coded with HGP or Z59.0

    We also dropped any FCEs included in the data extract if they were not homeless as per the inclusion criteria (i.e. not NFA, HGP, or Z59.0).

  3. Implementation

  4. Clinical Code List

  5. Publication

    No publications

    Citation Example

    Luchenski S. PH344 / 688 - Homelessness. Phenotype Library [Online]. 06 October 2021. Available from: http://phenotypes.healthdatagateway.org/phenotypes/PH344/version/688/detail/. [Accessed 08 October 2024]

  6. API

    To Export Phenotype Details:

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

    Py Package

    # Download here

    from pyconceptlibraryclient import Client


    # Connect to API

    client = Client(public=True)


    # Get codelist of phenotype

    phenotype_codelist = client.phenotypes.get_detail(
     'PH344',
     version_id=688
    )

    To Export Phenotype Code List:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH344/version/688/export/codes/?format=json
    CSV site_root/phenotypes/PH344/version/688/export/codes/
    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(
     'PH344',
     version_id=688
    )

    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(
     'PH344',
     version_id=688
    )

  7. Version History

    Version IDNameOwnerPublish date
    688 Homelessness ieuan.scanlon2021-10-06currently shown