By the same authors

From the same journal

From the same journal

Modelling Conditions and Health Care Processes in Electronic Health Records: An Application to Severe Mental Illness with the Clinical Practice Research Datalink

Research output: Contribution to journalArticlepeer-review

Full text download(s)

Published copy (DOI)


  • Ivan Olier
  • David A Springate
  • Darren M Ashcroft
  • Timothy Doran
  • David Reeves
  • Claire Planner
  • Siobhan Reilly
  • Evangelos Kontopantelis


Publication details

JournalPLoS ONE
DatePublished - 26 Feb 2016
Issue number2
Number of pages13
Original languageEnglish


BACKGROUND: The use of Electronic Health Records databases for medical research has become mainstream. In the UK, increasing use of Primary Care Databases is largely driven by almost complete computerisation and uniform standards within the National Health Service. Electronic Health Records research often begins with the development of a list of clinical codes with which to identify cases with a specific condition. We present a methodology and accompanying Stata and R commands (pcdsearch/Rpcdsearch) to help researchers in this task. We present severe mental illness as an example.

METHODS: We used the Clinical Practice Research Datalink, a UK Primary Care Database in which clinical information is largely organised using Read codes, a hierarchical clinical coding system. Pcdsearch is used to identify potentially relevant clinical codes and/or product codes from word-stubs and code-stubs suggested by clinicians. The returned code-lists are reviewed and codes relevant to the condition of interest are selected. The final code-list is then used to identify patients.

RESULTS: We identified 270 Read codes linked to SMI and used them to identify cases in the database. We observed that our approach identified cases that would have been missed with a simpler approach using SMI registers defined within the UK Quality and Outcomes Framework.

CONCLUSION: We described a framework for researchers of Electronic Health Records databases, for identifying patients with a particular condition or matching certain clinical criteria. The method is invariant to coding system or database and can be used with SNOMED CT, ICD or other medical classification code-lists.

Bibliographical note

© 2016, The authors.

Discover related content

Find related publications, people, projects, datasets and more using interactive charts.

View graph of relations