Introduction
The management of patient data in the UK National Health Service (NHS) is predominantly electronic. In the United Kingdom, primary care clinical software systems are based on ‘Read Code’ classification and ‘SNOMED CT’, which includes ICD 10 codes (Bentley et al., Reference Bentley, Price and Brown1996). These are medical thesauruses of clinical terms, which are organised in hierarchical chapters. They capture patient data such as diagnoses, presenting complaints, occupation, administrative processes, interventions and diagnostic procedures. The systems were developed to be flexible and allow users to interact with the classification system in ‘natural language’ (Read et al., Reference Read, Sanderson and Drennan1995; NHS, 2000). An extensive thesaurus allows the user to choose the most appropriate term to describe each patient. Each term is linked to an equivalent Read code. These codes allow computerised searches. Some health conditions, such as diabetes have standardised uniform coding as primary care practices are reimbursed financially for delivering these services under the Quality and Outcomes Framework (QOF; Department of Health, 2004). Conditions outside these clear ‘QOF’ categories can be classified without generally agreed coding rules, they are difficult to capture for secondary work like research or service planning. Mental health and physical symptoms in combination are ‘hard to code’, practitioners can choose multiple variations on themes, these choices allow for flexibility, but introduce diversity in classification (Henningsen and Creed, Reference Henningsen and Creed2009). Chronic pain is another example of a condition that can be classified using a variety of codes (Nordin et al., Reference Nordin, Eisemann and Richter2006). Chronic pain is defined by the International Association for the Study of Pain as ‘pain beyond three months duration or the expected time for tissue repair’ (Merskey and Bogduk, Reference Merskey and Bogduk1994). It is not represented in an equivalent Read code in primary care but may be recognised at secondary care level by referral to pain specialists, therefore patient identification can be made by service delivery coding (Armstrong, 2011). Our primary aim was to develop a search strategy to identify potential participants in primary care with chronic pain for a randomised controlled trial (RCT; Carnes et al., 2013).
Methods
We took a very pragmatic approach to this study due to the constantly changing ‘live’ databases we were using in a real-time clinical setting. We did not develop stringent reliability and validity tests as you would for a diagnostic test as these were not appropriate for this study for two reasons:
i) patient details in the practice databases were continually being updated and changing, so, regardless of the search parameters, results were liable to change with each search attempted;
ii) we had no way of knowing exactly how many patients with chronic musculoskeletal pain were registered in the practices at any one time. Therefore, the validity of our searches could not be tested using sensitivity or specificity calculations as there were no fixed denominators against which to test the accuracy of the searches.
Due to the practical issues of working with live active databases we decided to assess ‘feasibility’ and ‘representativeness’ of the quality of our searches. Feasibility in this context was the ease with which the search could be performed, this included: the amount of data transformations or computer commands required to perform the search, the time it took to perform the search, the skills of the person needed to do the work and the difficulties of data processing. Representativeness in this case was how well the search identified an index list of known people with chronic musculoskeletal pain and the estimated prevalence in the practice population with chronic pain (5% of adults). We used a set of ‘indexed’ or ‘reference’ patients known to have chronic pain and assessed whether the searches identified them. The study was conducted in primary care practices. We used an exploratory iterative approach to investigate the issues and processes necessary to identify chronic pain patients. We provide a descriptive narrative of the issues that we encountered at each stage of the research.
The method we used involved four exploratory stages (Figure 1). Stage 1 involved a consultative exercise, in stage 2 we generated appropriate search terms and strategies, during stage 3 we tested the search strategies and in stage 4 we evaluated the results of our recommended approach. We assumed that most primary care electronic patient records systems operated using information about patient characteristics/demographics, consultation records, prescriptions, referrals and tests and types of conditions and included a search facility.
Stage 1: Consultation (search strategy requirements)
Our target population to identify was adults (aged 18 and above) with chronic musculoskeletal pain (pain that persists for more than three months).
This was a scoping exercise to help identify effective search approaches and search terms (labels and domains used to classify patients). We interviewed practice managers, specialists in healthcare informatics, GPs, pain specialists and administrative general practice staff about their experience of using electronic databases, technical issues, limitations and benefits of using the software, issues around clinical coding preferences and the characteristics of ‘pain patients’. We approached practices with different population demographics and different IT systems. We consulted professionals working in primary care based on our own peer networks. J.F. led the information gathering process and in conjunction with D.C. organised the findings into commonly occurring themes and issues.
We also examined the electronic profiles of known chronic musculoskeletal pain patients to inform our search strategy. We reviewed coding terms, test requests, prescription data, attendance, referral letters and other correspondence held on file.
Clinical software programmes
In the United Kingdom, there are two commonly used electronic patient record systems: VISION and EMIS (Egton Medical Information Systems Limited, 1987–2013; In Practice Systems Ltd, 1994–2013). These systems have different interfaces for clinical coding and appointment management. EMIS can be operated at a practice level as EMIS LV, or accessed through an internet browser as EMIS Web. We took these differences into account throughout the study.
Stage 2: Generating the search approach and terms
From the data gathered in stage 1, we identified the most commonly used codes and terms used to categorise chronic pain patients. We used the information from the consultations to design the searches that allowed us identify our target group.
Stage 3: Testing the feasibility of the search strategy
We devised different ways of structuring the search strategies and we tested the feasibility of the search terms and domains. We tested and re-tested variations of the searches until we had a search strategy that suited the capability/capacity of the search engines used in the software and that was feasible for practitioners and practice staff to administer. Stages 3 and 4 were closely associated. Each search was tested for its feasibility and also evaluated for its representativeness.
Stage 4: Evaluating the accuracy of the searches
For this stage, we tested the search strategies to find the most appropriate search. We collaborated with two GPs and two practice managers from different practices to test several versions of the searches.
They were familiar with their practice population and able to estimate the accuracy of the search by visually scanning the generated list of patients. We used this to assess feasibility, but we also tested accuracy in more detail by reviewing case notes. We used the following methods to test the quality of the searches:
i) Between 5% and 21% of adults registered with GPs consult with chronic pain over a 12-month period (Jordan et al., Reference Jordan, Clarke, Symmons, Fleming, Porcheret, Kadam and Croft2007). Around 75–80% of the population (UK Census, 2001) are adults, that is, over 18 years old. Our test general practice had 5500 registered patients, we assumed that around 4125 (75%) would be adults of whom between 5% and 21% will have chronic pain. If we take the lower estimate of 5%, we would expect a minimum of 206 patients to be identified by our search.
ii) A reference list of 20 known patients (∼10% of the above sample estimate) with chronic pain was used to test the inclusiveness of the search. For each search conducted, we checked whether these 20 reference/index patients were selected.
iii) A random sample of 10 further patients identified by the search output list were assessed to see whether they had chronic pain. A clinical member of the staff reviewed the patient record to determine their health state.
Unfortunately due to resource constraints and ethical issues, it was not possible to assess each patient file identified in the searches and classify whether they had chronic pain or not and work out the inter- and intra-rater reliability of the evaluators or the true false positive figure.
Once the search satisfied the above three criteria, we tested it in other GP practices and with other personnel applying the same approach. The final search strategy had to fulfil the above three quality criteria in four pilot practices to be regarded as suitable for use in our RCT.
As the study required auditing data only it did not require ethical approval.
Results
Stages 1 and 2: Consultation and generating search terms and the strategy
Consultation
We went to four primary care centres to gain and seek information about databases, software and coding. Three were inner London practices and one was a semi-rural practice in the east of England. Eight people were consulted: three GPs, two practice managers, one specialist in health informatics, one pain psychologist and one consultant in pain medicine. Overall, three areas emerged that were considered relevant for identifying chronic pain patients: prescribing, clinical coding and attendance.
Prescribing
Medication was generally regarded as the most consistent and reliable way of identifying patients with persistent pain. Commonly prescribed analgesic pharmacological regimes included psychotropic and peripherally acting drugs. When these drugs are coded as ‘repeat’ or ‘automatic’ medications (the terms differ in the software programmes), they were more likely to be associated with persistent conditions. This delivery option enables patients to obtain their medication without prior healthcare contact. There were two ways of accessing information about drug prescribing using the software search functions. Drug names can be entered either directly or searched by the action the drugs have on the body, for example drugs for the central nervous system (CNS) or ‘musculoskeletal and joint diseases’. The difficulty with searching via these categories is that they include other non-relevant drugs for musculoskeletal pain. Terms such as ‘analgesics’ were too broad for our purposes – they included compound drugs like Co-Codamol, weak opiates like Tramadol and simple drugs like Paracetamol alongside drugs used in substance misuse (Methadone) and palliative care (Fentanyl lozenges). Each drug needed to be selected individually so only those relevant to musculoskeletal pain were used in the search. The final selection of relevant drugs is shown in Table 1.
Clinical coding
We noted that practices and individual practitioners had different ‘coding cultures’ for ill-defined conditions like chronic pain. Clinicians reported that they familiarise themselves with the patient's history by looking at patterns of medication consumption, disability assessments, presentations and referrals. The majority of coding described symptoms in body regions via the symptoms chapter in the Read code system. These clinical symptom entries (regardless of software package) are often graded as ‘low priority’ (category 3) and do not usually get extracted into note summaries. Most relevant information for identifying chronic pain patients was commonly entered as free text or appeared as a combination of presenting complaints such as a trail of multi-problem consultations. This type of input is not searchable using the search-function of the clinical software systems. Table 1 shows the most common terms used to define and classify chronic pain patients in primary care patient records.
Attendance
The third relevant descriptor we identified as important was frequent attendance with multi-problem consultations. This was a commonly reported feature of the population presenting with chronic pain.
VISION and EMIS LV have facilities to search for attendance data, but it requires several command steps until detailed information is available. Searching for patients by attendance was time-consuming and required more sophisticated data-handling skills. We tested this procedure once: it provided information about the attendance frequency and identified the subgroup of patients with increased healthcare utilisation, but it was not feasible within the time and labour constraints of a typical primary care worker (see Figure 2 illustrating the search strategy testing process).
EMIS Web allows basic information about whether or not contacts with healthcare practitioners have happened in a given time interval. This generated useful additional information in our EMIS searches and was incorporated in our final search.
Stages 3 and 4: Testing the feasibility and evaluating the representativeness of the searches
Four people (two GPs, one practice manager, one IT-consultant) tested a variety of search approaches using ‘trial and error’ methodology, that is, devising, testing and refining. Each of the domains was tested in various combinations (see flow chart, Figure 2). After around 20 search modifications an agreement was reached, that no further procedural amendments would improve the quality of the search. Reliability and validity testing was hampered by the live database altering the search results on a continuous basis and the lack of a definitive list of chronic pain patients.
The search enhancement modifications we tested included searching for repeat medications of the drugs and using different classification codes as shown in Table 1. We tested the search with three, six or twelve months as observation window for repeat prescriptions. Six months seemed to be most useful time bracket.
After multiple testing of different search strategies, the optimal search was a successive combination of information from repeat prescribing, clinical coding and attendance. The EMIS search allowed additional filtering by attendance, which reduced the output significantly and made the search more appropriate. Figure 2 shows the process and the strengths and limitations of the testing process at each stage for each software system, EMIS and VISION.
The final search structure is shown in Figure 3. The searcher first sets the inclusion parameters for the search, that is, ‘active’ registered patients 18 years or over. After a conversation with staff familiar with the local ‘coding culture’, the searcher identifies the most commonly prescribed drugs used for patients with chronic pain that are on repeat prescriptions, followed by the most commonly used classification codes used in the practice. In our test practice, the final search approach generated 209 patients from a list size of 5500 (we estimated the search would generate 206 patients). We tested the approach on four other practices, each search generated patient list sizes around the size of our estimates and included the quality control of 20 index patients and 10 randomly selected patients who could be classified as having chronic pain.
Stage 5: Implementing the search strategy
At this point, we felt that the search was good enough to be employed for the trial recruitment. From a population of 229 143 people, 8494 were sent invitations via their GPs to participate in a trial, this equates to 3.7%: we had originally estimated 5%. We eventually enroled 703 people with chronic pain into the trial. Table 2 shows the results from 20 general practices in inner city London and rural Warwickshire. In line with the findings from the consultation phase, a flexible/bespoke search strategy was employed. The search terms were tailored to the ‘coding cultures’ of the practices. We did not use a universal uniform search but applied the search protocol to reflect the practice culture. The searches worked well but there were some outliers (Table 2, Practices ‘SS’, ‘OM’, ‘CB’): note the number of patients excluded by the GPs. Several issues accounted for the unusually high number of patients screened out by the GPs. Exclusion criteria for the trial were: being housebound, not fluent in English and not having any more serious other co-morbidity than their pain that would make the person unsuitable to attend a pain management course. Reasons for the high rejection rate were large numbers of the patient register did not have English as a first language (SS), a proportion of the GPs in the practice did not screen the lists (OM, so we had to reject all their patients) and practice ‘CB’ had a predominantly elderly patient population in nursing homes. Screening the output list of patient names by somebody familiar with the practice population was useful to understand the particular circumstances of some practice populations.
aWe estimate that 5% of adults (∼75% of list size) will have chronic pain.
Patients identified from the electronic searches were invited by letter to participate in the study, if they were interested they could contact the trial administration team via an expression-of-interest-form or directly via telephone. During the trial recruitment phase we kept records of conversations from patients ringing up to find out more about the trial, this gave us some information about the appropriateness of our searches and the type of people we invited to the study. In London, we covered 10 practices, we had 640 phone calls of which 20 (3%) were from patients informing us that they either: no longer had pain, they had never had pain or that they had only just started to have pain. Patients who sent the study team an ‘expression of interest’ form were telephoned to assess their suitability to be in the trial. We had 673 expression of interest forms, of these 25 (3.7%) were from people who: no longer had pain, never had pain or that they had only just started to have pain. We recruited patients from the remaining interested patients who rang or sent in expression of interest forms who were suitable and eligible for the study.
Discussion
The aim of this study was to develop a search strategy to identify patients with chronic musculoskeletal pain in different primary care practice electronic patient record systems. Despite considerable differences in data organisation and software systems, we generated a search strategy protocol, which identified the population of interest, but allowed flexibility in its application to cater for the different coding cultures that exist between general practices. We cannot say that this is the most accurate or inclusive way of identifying chronic pain patients, as we have no definitive data to support such a claim, but we can say that this search strategy yielded the type of patients that we were interested in.
We found that the quickest way of identifying chronic pain patients was to search for repeat prescriptions for specific drugs commonly prescribed in the practice for chronic pain. Local knowledge of the population and commonly prescribed drugs were the key to selecting the index drugs on repeat prescriptions. A search strategy in an inner city practice with high fluctuation of staff and registered patients may not allow this simplicity.
There were some disadvantages of using repeat prescriptions alone to identify chronic pain patients. Some drugs generated a bias towards the older population whose pain was chronic but may not necessarily be persistently bothersome and/or intrusive. Drug-orientated searches may miss people with pain who do not have analgesic drugs on repeat and those who prefer not to take medication for their pain. There are also clinicians who avoid putting medication on the repeat prescription system. It is therefore important to understand the prescribing regimens of the practices in which the searches are being conducted. Using repeat prescriptions of analgesics has been used in other studies and was also thought to yield the highest likelihood of reaching the appropriate patient group (Smith et al., Reference Smith, Hannaford, Elliott, Smith and Chambers2005; McCracken and Velleman, Reference McCracken and Velleman2010).
Our brief survey of commonly used terms for musculoskeletal pain among clinicians confirmed the heterogeneity in coding practice. Our testing processes showed that effective searching in the clinical coding domain is dependent on local coding practices or ‘coding cultures’ and software capabilities. Basing a search for chronic pain, patients on morbidity coding alone was not feasible due to the variety of index codes and that the condition coded is often regarded as ‘non-specific’ (Khan et al., Reference Khan, Harrison and Rose2010).
Increased healthcare seeking behaviour by those with chronic pain is not unusual (Boersma and Linton, Reference Boersma and Linton2005). We therefore chose the frequency of attendance as proxy-marker for the need-state of patients (Smith et al., Reference Smith, Penny, Elliott, Chambers and Smith2001; Ciechanowski et al., Reference Ciechanowski, Sullivan, Jensen, Romano and Summers2003; Smith et al., Reference Smith, Elliott and Hannaford2004). Extracting and sorting attendance frequencies per patient was difficult and these data alone were not accurate enough to reflect the presumed need-state of patients. Attendance data were confounded by the presence of QOF – financially incentivised care for specific conditions (Department of Health, 2004). These conditions or diseases may co-exist with chronic pain and consultations may therefore be initiated by the provider and do not necessarily represent persisting pain symptoms (Love and Burton, Reference Love and Burton2005). Repeated consultations in primary care can also reflect an organised approach to accommodate complex diagnoses in coordinated structured consultations (Dunn and Croft, Reference Dunn and Croft2006). We did not find attendance data easy to retrieve and concluded that using this as a primary search strategy was not always practical but where possible useful.
The strength of the study was that it looked at a search strategy, which could identify patients with chronic pain in the absence of generally agreed and ubiquitously applied classification term. Unlike conditions and treatments incentivised by payments, there were no coding policies for chronic pain and data entry was not standardised or influenced by political pressure to implement coding policies. We used the information organised and coded by GPs in their clinical notes. The themes derived were used to inform the search, leading to a practice-orientated search strategy.
Reliability and validity as quality standards for diagnostic tests were not applicable to this study due to the constantly changing database and the absence of a fixed external gold standard as comparator. It is unknown how many patients are there with chronic pain in a practice population. In an ideal world, we would have conducted the searches in a controlled environment and compared the information in the clinical records with those that were selected and those that were not. This was a pragmatic study in a clinical setting; we worked with clinicians and practice managers with limited time and information technology skills. We decided that feasibility, practicality and reasonable representativeness were sufficient for our purposes to identify patients for a large RCT (ISRCTN: 24426731). We applied the search strategy in 20 general practices and it enabled the trial team to successfully identify and recruit 703 participants.
This study demonstrated the challenges of identifying a population of people with poorly defined conditions in a database. Smith et al. described a similar task: they targeted people with ‘medically unexplained symptoms’ who were repeatedly referred into secondary care. Their strategy also included a combination of database searches and manual case note reviews. The quality of their search outcome was described as ‘reasonably accurate’ (Smith et al., Reference Smith, Mcgorm, Weller, Burton and Sharpe2009). Chronic musculoskeletal pain was our index condition, but our approach could be adapted for other conditions such as ‘medically unexplained symptoms’ (Barsky et al., Reference Barsky, Orav and Bates2005; Bensing and Verhaak, Reference Bensing and Verhaak2006; Fink and Rosendal, Reference Fink and Rosendal2008).
Our key findings were: recognising the existence of local coding and prescribing cultures and the tension between the primary purpose of the data we were searching (managing patient information for clinical use) and its secondary use for things like audit, research or billing (Greenhalgh et al., Reference Greenhalgh, Potts, Wong, Bark and Swinglehurst2009). Standardisation of data entry makes searches using shared databases possible however data must be regarded with due caution and the context within which it is collected.
We recognise that more work is needed to test overall validity and reliability of our search approach in different settings and with different populations to see whether the principles of searching identified in this study can be generalised to other research projects.
Conclusion
Overall, in the absence of a definitive list of chronic pain patients, a reasonably representative search conducted electronically can only ever be an estimate of the pain population. Our work shows that chronic pain is coded in various ways in primary care records. Knowledge of ‘coding cultures’ and the practices of clinical staff including how they prescribe and document these processes is essential for successful and representative search data.
Acknowledgements
The authors acknowledge help with the searches from: Zoe Wiltshire, Matthew Jefferies, Adelaida Gartner, Ian Bernstein, Simon Harley, Ivor Buckner, Tony Willis, Deborah Swinglehurst, Allyson Brown. Jens Foell is funded by an NIHR clinical lecturer fellowshipJens Foell is funded by an NIHR clinical lecturer fellowship. This paper presents independent research commissioned by the National Institute for Health Research (NIHR) under its Programme Grants for Applied Research scheme (RP-PG-0707-10189). The views expressed in this publication are those of the author(s) and not necessarily those of the NHS, the NIHR or the Department of Health This paper presents independent research commissioned by the National Institute for Health Research (NIHR) under its Programme Grants for Applied Research scheme (RP-PG-0707-10189). The views expressed in this publication are those of the author(s) and not necessarily those of the NHS, the NIHR or the Department of Health.