Self Harm
Matthew J Carr, Sarah Steeg, Roger T Webb, Nav Kapur, Carolyn A Chew-Graham, Kathrym M Abel, Holly Hope, Matthias Pierce, Darren M. Ashcroft
PH4 / 8 Clinical-Coded Phenotype
Overview
Phenotype TypeDisease or syndromePhenotype UUIDAT4xPEWdjeAcVfKGBiKmHmSexBothValid Event Date Range01/01/2010 - 30/06/2020Coding SystemRead codes v2Data SourcesCollectionsPhenotype LibraryTagsNo dataOntologyNo dataDefinition
Implementation
Clinical Code List
PUBLISHED
Publication
Related publications
Matthew J Carr, Sarah Steeg, Roger T Webb, Nav Kapur, Carolyn A Chew-Graham, Kathrym M Abel, Holly Hope, Matthias Pierce, Darren M. Ashcroft, Primary care contact for mental illness and self-harm before during and after the peak of the Covid-19 pandemic in the UK: cohort study of 13 million individual". 2020.
Citation Example
Matthew J Carr, Sarah Steeg, Roger T Webb, Nav Kapur, Carolyn A Chew-Graham, Kathrym M Abel, Holly Hope, Matthias Pierce, Darren M. Ashcroft. PH4 / 8 - Self Harm. Phenotype Library [Online]. 06 October 2021. Available from: http://phenotypes.healthdatagateway.org/phenotypes/PH4/version/8/detail/. [Accessed 15 January 2025]
Permissions
API
To Export Phenotype Details:
Format API JSON site_root/api/v1/phenotypes/PH4/version/8/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(
'PH4',
version_id=8
)Py Package from pyconceptlibraryclient import Client
# Connect to API
client = Client(public=True)
# Get codelist of phenotype
phenotype_codelist = client.phenotypes.get_detail(
'PH4',
version_id=8
)To Export Phenotype Code List:
Format API JSON site_root/api/v1/phenotypes/PH4/version/8/export/codes/?format=json R Package library(ConceptLibraryClient)
# Connect to API
client = ConceptLibraryClient::Connection$new(public=TRUE)
# Get codelist of phenotype
phenotype_codelist = client$phenotypes$get_codelist(
'PH4',
version_id=8
)Py Package from pyconceptlibraryclient import Client
# Connect to API
client = Client(public=True)
# Get codelist of phenotype
phenotype_codelist = client.phenotypes.get_codelist(
'PH4',
version_id=8
)Version History