Related Experiment Video
Updated: Jul 16, 2025

Determining Pain Detection and Tolerance Thresholds Using an Integrated, Multi-Modal Pain Task Battery
Published on: April 14, 2016
Identifying populations with chronic pain in primary care: developing an algorithm and logic rules applied to coded
Nasrin Hafezparast1, Ellie Bragan Turner1, Rupert Dunbar-Rees1
1Outcomes Based Healthcare, 11-13 Cavendish Square, Marylebone, London, W1G 0AN, UK.
Background:
Estimates of chronic pain prevalence using coded primary care data are likely to be substantially lower than estimates derived from community surveys. Most primary care studies have estimated chronic pain prevalence using data searches confined to analgesic medication prescriptions. Increasingly, following recent NICE guideline recommendations, patients and doctors opt for non-drug treatment of chronic pain thus excluding these patients from prevalence estimates based on medication codes. We aimed to develop and test an algorithm combining medication codes with selected diagnostic codes to estimate chronic pain prevalence using coded primary care data.
Methods:
Following a scoping review 4 criteria were developed to identify cohorts of people with chronic pain. These were (1) people with one of 12 ('tier 1') conditions that almost always results in the individual having chronic pain (2) people with one of 20 ('tier 2') conditions included when there are also 3 or more prescription-only analgesics issued in the last 12 months (3) chronic neuropathic pain, or (4) 4 or more prescription-only analgesics issued in the last 12 months. These were translated into 8 logic rules which included 1,932 SNOMED CT codes.
Results:
The algorithm was run on primary care data from 41 GP Practices in Lambeth. The total population consisted of 386,238 GP registered adults ≥ 18 years as of the 31st March 2021. 64,135 (16.6%) were identified as people with chronic pain. This definition demonstrated notably high rates in Black ethnicity females, and higher rates in the most deprived, and older population.
Conclusions:
Estimates of chronic pain prevalence using structured healthcare data have previously shown lower prevalence estimates for chronic pain than reported in community surveys. This has limited the ability of researchers and clinicians to fully understand and address the complex multifactorial nature of chronic pain. Our study demonstrates that it may be possible to establish more representative prevalence estimates using structured data than previously possible. Use of logic rules offers the potential to move systematic identification and population-based management of chronic pain into mainstream clinical practice at scale and support improved management of symptom burden for people experiencing chronic pain.
Related Concept Videos
Analgesia and Pain Management
Documentation of Nursing Diagnosis
In some settings, data-driven computerized decision support systems are in place, allowing for more accurate nursing diagnoses. The database within one of these systems includes diagnostic labels defining characteristics, activities, and indicators for nursing. A nurse enters...
Analysis of Population Pharmacokinetic Data
Methods of Documentation VI: Case Management Model
For example, a patient with a chronic...
Guidelines for Nursing Documentation II
Timely documentation is crucial to ensure continuity of care for patients. Any delays in recording or reporting medical information can result in medical errors and even adverse patient outcomes. From medication administration to diagnostic test results, every detail must be accurately and promptly documented to provide the best possible care for patients.
Methods of Documentation II: POMR

