Text as evidence in medicine
Medical research generates large amounts of text: interview and focus group transcripts, free-text answers in surveys, clinical notes and discharge letters in electronic health records (EHRs), patient forum posts, guidelines and policy documents. Each source can answer questions that structured data cannot, such as how patients make sense of a diagnosis, why clinicians depart from a guideline, or what side effects are recorded only in narrative notes.
The analytic approach depends on the source and the question. Interview data about experience call for qualitative methods in which the researcher interprets meaning. Hundreds of thousands of clinical notes call for computational methods that extract defined information at scale. Many projects need both, for example qualitative analysis of a sample of notes to define what a natural language processing (NLP) system should extract. A reliable analysis begins early and proceeds systematically, so that a modest, well-chosen sample can yield findings relevant beyond the study itself (Ziebland & McPherson, 2006).
Qualitative content analysis
Content analysis is widely used in nursing and health research. Hsieh and Shannon (2005) distinguish three approaches by how codes are developed:
- Conventional: codes and categories are derived inductively from the data, suited to phenomena with little prior theory.
- Directed: analysis starts from an existing theory or prior findings, which supply initial codes that the data then extend or challenge.
- Summative: analysis starts by identifying and counting key words or content, then moves to interpreting their underlying meaning in context.
Graneheim and Lundman (2004) provide a widely used procedure. The text is divided into meaning units, which are condensed, abstracted into codes and grouped into categories, with themes expressing latent meaning across categories. They distinguish manifest content (what the text visibly says) from latent content (its underlying meaning) and frame trustworthiness in terms of credibility, dependability and transferability. A thesis should say which level it works at, because interpreting latent content demands more justification.
Thematic and framework analysis
Braun and Clarke (2006) set out thematic analysis in six phases: familiarisation, generating initial codes, searching for themes, reviewing themes, defining and naming themes, and producing the report. Their later work clarifies that "thematic analysis" is a family of methods. In reflexive thematic analysis, the researcher's subjectivity is treated as a resource, themes are patterns of shared meaning built around a central concept, and measures of coding agreement are not appropriate quality markers; coding reliability and codebook approaches follow different logics (Braun & Clarke, 2021). Writing that "themes emerged" hides these choices.
The framework method, developed in applied policy research, organises coded data into a matrix of cases by codes or themes, which makes it easy to compare across participants and to work in multidisciplinary teams (Gale et al., 2013). Smith and Firth (2011) describe its stages and illustrate its use in health research. In health services research, Bradley et al. (2007) show how different kinds of codes, such as conceptual, relationship and participant perspective codes, support the development of a taxonomy, themes or theory.
| Approach | Best suited to | Analytic output | Watch out for |
|---|---|---|---|
| Conventional content analysis | Little prior theory; descriptive questions | Categories derived from data | Staying descriptive when interpretation is needed |
| Directed content analysis | Extending or testing a theory | Theory-based categories, refined | Overlooking data that do not fit the framework |
| Summative content analysis | Use of terms in documents or notes | Counts plus interpretation of context | Treating frequency as importance |
| Reflexive thematic analysis | Meaning, experience, interpretation | Themes as patterns of shared meaning | Reporting kappa or "emerging" themes |
| Framework method | Applied, policy and team-based studies | Case-by-theme matrix | Mechanical charting without interpretation |
| Clinical NLP or LLM extraction | Defined variables from large volumes of notes | Structured variables with error rates | Unvalidated outputs and privacy breaches |
Natural language processing on clinical text
When the aim is to turn large volumes of clinical text into structured variables, for example smoking status, symptoms, adverse events or cancer stage, the relevant methods are NLP and clinical information extraction. Wang et al. (2018) reviewed clinical information extraction applications and found a considerable gap between the many clinical studies that use EHR data and the smaller number that use information extraction from clinical text. Clinical notes are difficult: they are full of abbreviations, negation ("no chest pain"), uncertainty, copied text and local conventions, so a method that works in one hospital may fail in another.
Topic modelling and sentiment analysis are often suggested for patient feedback or social media. They can help explore large corpora, but they are not substitutes for qualitative interpretation: topics must be named and checked by reading the texts, and general-purpose sentiment tools may misread clinical language. Treat their outputs as leads to be verified.
Large language models: promise and limits
Since 2023, large language models (LLMs) have been applied to summarising notes, extracting variables and suggesting qualitative codes. Thirunavukarasu et al. (2023) review their potential in medicine alongside their limitations: they can produce fluent but false content, reproduce biases in their training data and raise unresolved questions about privacy and data protection when patient information is involved. Performance also varies considerably between tasks.
Three safeguards follow for a doctoral project. First, validate: compare model output with a human-annotated reference set that was not used to develop prompts or fine-tune the model, and report error rates by subgroup. Second, protect privacy: identifiable patient text should be processed only in environments approved by your ethics committee and data controller, never pasted into a public chatbot. Third, report transparently: the TRIPOD-LLM guideline asks authors to describe the model and version, prompts, data sources and dates, steps taken to avoid overlap between test data and training data, and the qualifications and instructions of human evaluators (Gallifant et al., 2025).
A worked example: matching methods to sources
Consider a hypothetical doctoral project on a new community service for people with type 2 diabetes. It has three textual sources, and each needs a different approach.
- Interviews with 25 patients about living with the service. The question concerns experience and meaning, so reflexive thematic analysis fits, with the researcher's position described and themes built around central concepts (Braun & Clarke, 2021).
- Free-text comments from 1,200 service questionnaires. Here a conventional content analysis gives a descriptive map of what users raise, and a summative step can show how often a category appears, interpreted in context rather than ranked as importance (Hsieh & Shannon, 2005).
- Clinical notes from which the project wants to identify recorded hypoglycaemia. A rule-based or model-based extraction tool is developed on one set of notes and tested against manual chart review on a separate set, with sensitivity and positive predictive value reported.
The numbers are illustrative only. The point is that one project can legitimately use three methods, provided each is named, justified and reported by its own standards, and the thesis explains how the findings relate to one another.
Rigour and what to report
Reporting is where many textual studies fall short. Raskind et al. (2019) reviewed qualitative articles in a health behaviour journal and found that analytic procedures and strategies for trustworthiness were often described unclearly. The Standards for Reporting Qualitative Research (SRQR) provide a checklist covering approach, researcher characteristics and reflexivity, sampling, data processing, analysis and trustworthiness (O'Brien et al., 2014).
| Report | Why it matters |
|---|---|
| Named analytic approach and its variant (e.g. directed content analysis, reflexive TA) | Each has different procedures and quality criteria |
| Data source, sampling and how text was prepared | Readers judge transferability and bias |
| Who coded, how codes were developed and how disagreements were handled | Shows the analytic process |
| Researcher position and reflexivity | Required by SRQR; central in reflexive TA |
| Quality strategy matched to the approach | Agreement statistics only where the approach supports them |
| For NLP or LLM work: model, version, prompts, reference standard, error rates | Required by TRIPOD-LLM |
| Ethics approval, consent and data protection arrangements | Patient text is sensitive personal data |
Common mistakes
- Writing that themes "emerged" without describing how they were constructed.
- Mixing the language of reflexive thematic analysis with inter-rater reliability scores.
- Calling word counts "content analysis" without interpreting their meaning in context.
- Using a framework matrix as a filing system and never moving to interpretation.
- Reporting topic models or sentiment scores as findings without reading the underlying texts.
- Evaluating an NLP or LLM tool on the same notes used to build its prompts or rules.
- Sending identifiable patient text to an external service not covered by the ethics approval.
- Citing a methods paper for a finding it does not report; check each citation against the source.
Before submission, ask whether another researcher could follow your path from raw text to conclusions, and whether every automated step has been checked against human judgement. If either answer is no, the analysis is not yet ready to report.
Key takeaways
- Choose conventional, directed or summative content analysis according to how codes should arise (Hsieh & Shannon, 2005).
- Reflexive thematic analysis treats themes as researcher-constructed and does not rely on agreement statistics (Braun & Clarke, 2021).
- The framework method suits applied, team-based studies that compare across cases (Gale et al., 2013).
- Clinical NLP and LLM outputs must be validated on held-out, human-annotated data and reported to TRIPOD-LLM (Gallifant et al., 2025).
- Keep patient text within approved, secure systems; LLMs raise unresolved privacy concerns (Thirunavukarasu et al., 2023).
- Use SRQR to report the analytic approach, reflexivity and trustworthiness (O'Brien et al., 2014).
