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

  1. Overview

    Phenotype Type
    Disease or syndrome
    Sex
    Both
    Valid Event Date Range
    01/01/2010 - 30/06/2020
    Coding System
    Read codes v2
    Data Sources
    Collections
    Phenotype Library
    Tags
    No data
  2. Definition

    Using electronic health records from 1714 UK general practices registered with the Clinical Practice Research Datalink we examined incidence and event rates of depression and anxiety disorders, self-harm, prescriptions for antidepressants and benzodiazepines and GP referrals to mental health services per 100,000 person-months, before, during and after the peak of the Covid-19 emergency. Analyses were stratified by gender, age group and practice-level Index of Multiple Deprivation quintile.

  3. Implementation

  4. Clinical Code List

  5. Publication

    • 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 24 June 2024]

  6. API

    To Export Phenotype Details:

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

    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(
     'PH4',
     version_id=8
    )

    To Export Phenotype Code List:

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

    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(
     'PH4',
     version_id=8
    )

  7. Version History

    Version IDNameOwnerPublish date
    8 Self Harm ieuan.scanlon2021-10-06currently shown