Diabetes (Drug Code)
Ellie Paige, Jessica Barret, David Stevens, Ruth H Keogh, Michael J Sweeting, Irwin Nazareth, Irene Peterson, Angela M Wood
PH896 / 1871 Clinical-Coded Phenotype
Overview
Phenotype TypeDrugSexBothValid Event Date Range01/01/1997 - 18/01/2016Coding SystemRead codes v2Data SourcesCollectionsClinicalCodes RepositoryPhenotype LibraryTagsNo dataOntologyNo dataDefinition
Implementation
Implementation
Clinical Code List
PUBLISHED
Publication
Related publications
Ellie Paige, Jessica Barret, David Stevens, Ruth H Keogh, Michael J Sweeting, Irwin Nazareth, Irene Peterson, Angela M Wood, Landmark Models for Optimizing the Use of Repeated Measurements of Risk Factors in Electronic Health Records to Predict Future Disease Risk. American Journal of Epidemiology, 187(7): 1530-1538, 2018.
Citation Example
Ellie Paige, Jessica Barret, David Stevens, Ruth H Keogh, Michael J Sweeting, Irwin Nazareth, Irene Peterson, Angela M Wood. PH896 / 1871 - Diabetes (Drug Code). Phenotype Library [Online]. 04 April 2022. Available from: http://phenotypes.healthdatagateway.org/phenotypes/PH896/version/1871/detail/. [Accessed 26 April 2025]
API
To Export Phenotype Details:
Format API JSON site_root/api/v1/phenotypes/PH896/version/1871/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(
'PH896',
version_id=1871
)Py Package from pyconceptlibraryclient import Client
# Connect to API
client = Client(public=True)
# Get codelist of phenotype
phenotype_codelist = client.phenotypes.get_detail(
'PH896',
version_id=1871
)To Export Phenotype Code List:
Format API JSON site_root/api/v1/phenotypes/PH896/version/1871/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(
'PH896',
version_id=1871
)Py Package from pyconceptlibraryclient import Client
# Connect to API
client = Client(public=True)
# Get codelist of phenotype
phenotype_codelist = client.phenotypes.get_codelist(
'PH896',
version_id=1871
)Version History