Illicit opioid use
Lewer D, Padmanathan P, Arfeen A, Denaxas S, Forbes H, Gonzalez-Izquierdo A, Hickman M
PH343 / 686 Clinical-Coded Phenotype
Overview
Phenotype TypeLifestyle risk factorSexBothValid Event Date Range01/03/2020-05/04/2020Coding SystemMed codesPROD codesData SourcesCollectionsPhenotype LibraryTagsNo dataDefinition
We selected patients by identifying product codes indicating a prescription of OAT and clinical codes indicating a history of illicit opioid use, such as ‘heroin dependence’ (see extended data for a full code list23). We prioritised specificity over sensitivity, aiming to use codes that are only applied to the target population.
We used keywords to search CPRD dictionaries to find Read and SNOMED clinical codes that may illicit opioid use (methadone; buprenorphine; abus; addict; ependen; drug user; heroin; inject; misus*; opiate; opioid; overdose). Our search identified 1,098 Read codes and 1,800 SNOMED codes. Two authors (DL and PP)
screened the codes for relevance, with conflicts resolved through discussion.
Where codes were likely to indicate illicit opioid use, but did not specifically mention opioids, we classified them as ‘probable’. Some clinical codes described prescriptions, tests or adverse reactions relating to methadone and buprenorphine.
Implementation
Phenoflow IDImplementation
Clinical Code List
PUBLISHED - 308 Codes
PUBLISHED - 308 Codes
Publication
Lewer D, Padmanathan P, Qummer ul Arfeen M et al. Healthcare use by people who use illicit opioids (HUPIO): development of a cohort based on electronic primary care records in England [version 1; peer review: awaiting peer review]. Wellcome Open Res 2020, 5:282. 10.12688/wellcomeopenres.16431.1
(DOI:10.12688/wellcomeopenres.16431.1)
Citation Example
Lewer D, Padmanathan P, Arfeen A, Denaxas S, Forbes H, Gonzalez-Izquierdo A, Hickman M. PH343 / 686 - Illicit opioid use. Phenotype Library [Online]. 06 October 2021. Available from: http://phenotypes.healthdatagateway.org/phenotypes/PH343/version/686/detail/. [Accessed 05 November 2024]
API
To Export Phenotype Details:
Format API JSON site_root/api/v1/phenotypes/PH343/version/686/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(
'PH343',
version_id=686
)Py Package from pyconceptlibraryclient import Client
# Connect to API
client = Client(public=True)
# Get codelist of phenotype
phenotype_codelist = client.phenotypes.get_detail(
'PH343',
version_id=686
)To Export Phenotype Code List:
Format API JSON site_root/api/v1/phenotypes/PH343/version/686/export/codes/?format=json CSV site_root/phenotypes/PH343/version/686/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(
'PH343',
version_id=686
)Py Package from pyconceptlibraryclient import Client
# Connect to API
client = Client(public=True)
# Get codelist of phenotype
phenotype_codelist = client.phenotypes.get_codelist(
'PH343',
version_id=686
)Version History