Homelessness
Luchenski S
PH344 / 688 Clinical-Coded Phenotype
Overview
Phenotype TypeLifestyle risk factorSexBothValid Event Date RangeNo dataCoding SystemICD10 codesNon-standard codesData SourcesHospital Episode Statistics Admitted Patient Care, Primary careCollectionsPhenotype LibraryTagsNo dataDefinition
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:
Drop poorly coded observations
a. Missing on:
i. HESID (unique identifier) ii. Epiend (episode end date) iii. Epidur (episode duration)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:
Drop if age is less than 16yrs for whole cohort
Drop all neonatal diagnoses
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).
Implementation
Phenoflow IDImplementation
Clinical Code List
PUBLISHED - 1 Codes
PUBLISHED - 48 Codes
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]
API
To Export Phenotype Details:
Format API JSON site_root/api/v1/phenotypes/PH344/version/688/detail/?format=json R Package 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 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:
Format API JSON site_root/api/v1/phenotypes/PH344/version/688/export/codes/?format=json CSV site_root/phenotypes/PH344/version/688/export/codes/ R Package 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 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
)Version History