Original Research · e0013

Post-operative pain phenotypes identified from routinely collected ward pain scores are associated with opioid dose and early surgical outcomes: a retrospective multicentre cohort study

Joshua Andrews MBBS1,2 ✪ ✉, Timothy Trewren MBBS2,4, Dan Zweck MBBS1,2, Jack Jeanes MD1, Oliver Leslie MBBS3, Andrew EC Booth MD1,3, Alasdair Leslie MBBS1,3, Philip Emerson MBBS, FCICM1, Gerry O’Callaghan MB BCh, FCICM1,3, Venkatesan Thiruvenkatarajan FANZCA1,3, and Brandon Stretton MBBS1,3

From Stokes Hill Lookout in the Flinders Ranges, the sun sets behind Bunker’s Range, setting a vast sky of layered cloud alight in pink and crimson above the rolling, rust-red hills below. Photograph by Dylan Toh, FRACP; more of his photography can be found at www.everlookphotography.com.

1 Central Adelaide Local Health Network, Adelaide, South Australia, Australia

2 Adelaide Medical School, The University of Adelaide, Adelaide SA 5000, Australia

3 Adelaide University, Adelaide, South Australia, Australia, 5000

4 Flinders University, College of Medicine and Public Health, Bedford Park SA 5042, Australia

Correspondence to: Josh Andrews — Joshua.Andrews@sa.gov.au

Cite as: Andrews J, Trewren T, Zweck D, Jeanes J, Leslie O, Booth AEC, Leslie A, Emerson P, O’Callaghan G, Thiruvenkatarajan V, Stretton B. Post-operative pain phenotypes identified from routinely collected ward pain scores are associated with opioid dose and early surgical outcomes: a retrospective multicentre cohort study. South Aust J Med. 2026;1(2):e0013.

DOI: 10.66861/ABDN9966 Open access · CC BY 4.0

Abstract

Background: Acute post-operative pain is common and strongly influences opioid consumption, recovery and early readmission. Whether routinely collected ward pain data contains identifiable phenotypes remains uncertain, particularly across diverse surgical populations.

Objectives: To derive pain phenotypes and evaluate their associations with inpatient opioid use, opioid quantity dispensed at discharge, length of stay and 30-day readmissions.

Methods: We conducted a multicentre retrospective observational cohort study of 40,049 adult surgical admissions across five Australian hospitals. Our sample was limited to those who had undergone a single operation for which a post-operative pain score was recorded. Seven numeric features of the pain rating scale were standardised and clustered using k-means (k = 3) to identify pain phenotypes. Associations were examined using multivariable linear regression models (log-transformed opioid dose [in oral morphine milligram equivalents, MME] and length of stay) and logistic regression for 30-day readmission, adjusting for demographic, clinical and operative covariates.

Results: Three phenotypes were identified: Phenotype 1, intermittent low average pain (41.8%); Phenotype 2, consistently minimal pain (38.0%); and Phenotype 3, persistently high pain (20.3%). Compared with Phenotype 1, Phenotypes 2 and 3 showed 85% lower and 171% higher adjusted opioid consumption, respectively. Further, discharge MME was 24% lower and 108% higher (all P < 0.01), respectively. Thirty-day readmission was reduced only in Phenotype 2 (adjusted OR 0.66; 95% CI 0.61–0.72). Phenotype 3 showed no difference in readmission risk compared with Phenotype 1.

Conclusion: Using only routinely recorded ward pain scores, this simple phenotyping approach identified patient groups who had distinct opioid dose requirements and early surgical outcomes. These findings suggest that routinely collected pain data from electronic medical records could be used prospectively to flag high-risk patients for targeted analgesic review, without requiring additional data collection.

Editor’s preface

Across forty thousand admissions, this study asks whether the data our hospitals already collect — routine ward pain scores, entered as a matter of course — might quietly contain more clinical signal than we have given it credit for. It is exactly the kind of research this journal hopes to platform: rigorous, large in scale, and immediately relevant to how a ward runs on a Tuesday morning.

— The Editors

Introduction

Acute post-operative pain remains a common and clinically important complication of surgery. Approximately half of surgical patients report moderate to severe pain within 24 hours of the procedure.1,2 Post-operative pain is closely linked to recovery, functional outcomes and patient satisfaction. Inadequate post-operative analgesia contributes to delayed mobilisation, increased complication rates, prolonged hospitalisation and the development of persistent post-surgical pain.3–5 However, adequate post-operative analgesia must be balanced against the risks of opioid-related harm. Understanding how early post-operative pain patterns relate to opioid requirements and clinical outcomes could inform peri-operative opioid stewardship. One approach models post-operative pain trajectories, treating pain as a continuous curve over time. An alternative approach derives pain phenotypes by clustering summary features of pain scores, such as their mean, peak and range. This approach aligns with existing literature on post-operative pain trajectory, demonstrating that clinically meaningful heterogeneity can be captured using a small number of clinically interpretable pain patterns.12, 20–22 Routinely recorded ward pain scores represent a high-volume data source that may contain clinically meaningful post-operative pain phenotypes.

Such phenotypes may improve understanding of how post-operative pain differs across patients. Post-operative pain follows distinct patterns, and there are clinically meaningful differences in pain resolution, analgesic requirements and subsequent outcomes. This has been demonstrated using repeated numeric rating scale (hereafter, ‘pain score’) measurements in observational studies, registry-based analyses and multicentre cohorts.8–12 However, much of the literature has relied on impractical research protocols or single-procedure cohorts.13–16 It remains unclear whether post-operative pain phenotypes derived solely from routinely collected ward pain scores can meaningfully differentiate opioid use and short-term recovery outcomes across heterogeneous surgical populations.

We hypothesised that clinically interpretable post-operative pain phenotypes would emerge from analysis of routinely collected post-operative pain scores and demonstrate differences in opioid consumption and early surgical outcomes. Our aim was to investigate the association between pain phenotypes and key post-operative outcomes, namely, inpatient opioid consumption, discharge opioid prescribing (oral morphine milligram equivalents [MMEs]) and 30-day readmission.

Methods

Study design, setting and population

We conducted a multicentre retrospective analysis of all consecutive adult surgical admissions across five Australian tertiary hospitals between 2017 and 2024. Admissions were treated as the unit of analysis: each patient was counted once per admission under the responsible surgical service. Post-operative opioid prescribing and administration were determined by treating surgical teams and acute pain services according to routine clinical practice, not a single protocol across participating institutions. Eligible patients were adults (aged ≥ 18 years) who underwent a single operative procedure during the index admission and were managed post-operatively on standard surgical wards. Patients were excluded if no operation was performed; multiple operations were performed during the admission; no post-operative pain score was recorded within the first five post-operative days; or the patient died. Patients managed with regional or neuraxial analgesia, and those managed with patient-controlled analgesia (PCA), were excluded a priori because these modalities use opioid delivery methods that were not comparable to the rest of the cohort, and because pain scores in these patients are recorded on a different schedule. The number of patients excluded at each eligibility step was not retained. The final analytic cohort comprised 40,049 admissions with complete post-operative pain-feature data for phenotype derivation.

Pre-admission opioid use, baseline pain intensity and opioid tolerance were not reliably captured in the electronic medical records (EMR) and therefore could not be incorporated into the eligibility criteria or adjustment models. Ethics approval, with a waiver of consent, was obtained from Central Adelaide Local Health Network HREC, ref. 16860.

Data collection

Data—including age, sex, patient characteristics, biometric data, consultations from an allied health professional and medication orders—were extracted from EMRs. Operative variables were collected from the Operating Room Management Information System. Frailty was defined by the Hospital Frailty Risk Score and treated as a continuous variable.17,18 The Charlson Comorbidity Index was derived from routinely coded diagnosis data within the EMRs; the precise extraction methodology (e.g. automated coding algorithm or manual abstraction) predates the current data-extraction pipeline and could not be confirmed for this study. Allied health consultation was defined as a documented face-to-face review by physiotherapy, occupational therapy, psychology or spiritual care within the first five post-operative days, and each discipline was recorded as a separate variable.

Pain scores

Across participating institutions, nursing staff routinely recorded post-operative pain using the 0–10 Numeric Rating Scale (NRS-11;19 0 = no pain; 10 = worst imaginable pain) during routine care. Pain scores are entered directly into EMRs as part of standard nursing documentation. The EMRs did not consistently distinguish between pain scores recorded at rest and those recorded during movement or coughing. For each patient, we summarised all post-operative pain scores within the first five days using seven features: minimum, median, mean and maximum pain scores; total number of observations, pain range (maximum minus minimum) and pain spread (maximum minus median). These were multiple dimensions of the pain score. Phenotype derivation required complete data for all seven features.

Pain phenotype derivation

We derived pain phenotypes using an artificial intelligence technique called unsupervised clustering. It was selected to identify homogeneous subgroups within the data using the seven pain features.

All seven pain features were standardised to zero mean and unit variance. K-means clustering was selected for transparency, reproducibility and feasibility for EMR-based implementation. The optimal number of clusters was determined by comparing candidate values of k using elbow and silhouette analyses, alongside assessments of cluster stability and adequate sample size within each group. A three-cluster solution (k = 3) was selected because it balanced strong statistical fit with clinical interpretability, corresponding to clinically recognisable ‘minimal’, ‘intermittent’ and ‘persistently high’ pain patterns. This decision did not draw on data about opioid use, length of stay or readmission. Solution stability was confirmed through repeated random initialisations and assessment of silhouette statistics and within cluster dispersion. External validation of these phenotypes was beyond the scope of this study.

Given that clustering requires complete feature data, cluster membership was assigned only to patients who had complete pain score observations. Patients who had incomplete data were retained in descriptive cohort summaries (i.e. included in Table 1) but excluded from phenotype-based regression analyses.

Study endpoints

The primary outcome was the cumulative inpatient opioid consumption within the first five post-operative days, expressed as oral MMEs. Secondary outcomes were:

  • total opioid quantity at discharge: expressed as total MMEs prescribed
  • length of stay: measured in hours from admission to discharge
  • 30-day readmission to the same institution: coded as a binary variable.

MMEs for each opioid (including tramadol) were calculated using the conversion formulas recommended by Centers for Medicare and Medicaid Services and eviQ, an Australian clinical-decision-support platform.23,24 A five-day window was chosen because opioid requirements typically peak within the first 48 to 72 hours after surgery and decline thereafter, making the first five post-operative days a clinically meaningful window for understanding early analgesic need, opioid prescribing and acute pain service assessment.25 Total opioid quantity on discharge was defined as the total MME provided on the discharge prescription. Associations between phenotype and the primary and secondary outcomes were then examined using adjusted regression analyses, as described below.

Statistical analysis

Continuous variables are presented as means with standard deviations for consistency across variables. Kruskal–Wallis tests were used for all between-group comparisons of continuous variables. They were applied uniformly regardless of distribution given the large sample size and the presence of some skewed variables. This non-parametric approach does not require an assumption of normality and was used consistently across all three phenotypes, rather than switching between parametric and non-parametric tests by variable. Categorical variables are presented as counts and percentages and were compared using chi-square tests.

Fisher’s exact tests were used for two-by-k sparse tables and Monte Carlo simulated P values were used when expected counts were small. Effect sizes are reported as epsilon squared for continuous variables and Cramer’s V for categorical variables. For outcome analyses, post-operative pain phenotype, defined as cluster membership from unsupervised clustering of the seven routinely recorded pain features, was treated as the primary exposure variable.

We fitted multivariable linear models to log-transformed inpatient opioid consumption, discharge opioid quantity and length of stay, and a multivariable binary logistic model to 30-day readmission. Given that opioid prescribing was not standardised across the five participating hospitals, models did not incorporate hospital as a clustering term. Length of stay and opioid dose are widely recognised to be right-skewed in surgical cohorts; accordingly, all three continuous outcomes were log-transformed before regression modelling. Given that coefficients were derived from log-transformed outcomes, exponentiated linear model coefficients represent ratios of geometric means rather than arithmetic means.

All models were adjusted for age, sex, surgical service, admission source, operative urgency, Charlson Comorbidity Index, Hospital Frailty Risk Score, paracetamol use, use of non-steroidal anti-inflammatory drugs, documented depression or anxiety, and antidepressant use. Psychological variables such as anxiety and depression were not incorporated into the clustering features because the aim was to derive phenotypes exclusively from routinely recorded post-operative pain metrics. These variables were instead included as covariates in the regression models. Linear model coefficients were exponentiated and reported as percentage differences relative to Phenotype 1. Binary logistic model coefficients were reported as odds ratios relative to Phenotype 1. A two-sided P value less than 0.05 was considered statistically significant. All analyses were performed using R version 4.3.1 (R Foundation for Statistical Computing, Vienna, Austria). The analytical framework, including clustering features and regression models, was defined before the outcome analyses. This study was conducted and reported in accordance with the Strengthening the Reporting of Observational Studies in Epidemiology guidelines. Formal prospective protocol registration was not undertaken.

Results

A total of 40,049 surgical admissions met inclusion criteria and had complete post-operative pain score data for the clustering analysis. Three post-operative pain phenotypes were identified: Phenotype 1, with intermittent low average pain (n = 16,720; 41.8%); Phenotype 2, with consistently minimal pain (n = 15,210; 38.0%); and Phenotype 3, with persistently high pain (n = 8,119; 20.3%). The baseline characteristics across phenotypes are presented in Table 1.

CharacteristicPhenotype 1 (n = 16,720)Phenotype 2 (n = 15,210)Phenotype 3 (n = 8,119)P value
Pain phenotype features (0–10 NRS, 5 postoperative days)
Number of pain observations, mean (SD)45.5 (25.1)21.2 (16.6)32.1 (24.6)<0.05
Minimum pain score, mean (SD)0.0 (0.0)0.0 (0.2)0.7 (1.2)<0.05
Median pain score, mean (SD)0.9 (1.0)0.2 (0.6)4.1 (1.2)<0.05
Mean pain score, mean (SD)1.2 (0.8)0.2 (0.5)3.6 (1.0)<0.05
Maximum pain score, mean (SD)6.6 (1.6)1.5 (1.5)7.4 (1.6)<0.05
Demographics and comorbidity
Age, years, mean (SD)60.3 (21.1)54.8 (22.2)44.0 (18.3)<0.05
Charlson Comorbidity Index, mean (SD)3.8 (2.0)3.4 (2.0)2.6 (1.8)<0.05
Hospital Frailty Risk Score, mean (SD)5.5 (5.3)3.6 (3.8)3.7 (3.6)<0.05
Female sex, n (%)7,889 (47.2%)5,529 (36.4%)3,814 (47.0%)<0.05
Renal and liver function
Preoperative creatinine, µmol/L, mean (SD)98.4 (95.6)103.5 (92.8)78.2 (58.0)<0.05
Preoperative eGFR, mL/min/1.73 m², mean (SD)61.5 (22.3)60.5 (22.8)69.9 (19.5)<0.05
Preoperative LFT dysfunction, n (%)1,680 (10.0%)1,243 (8.2%)708 (8.7%)<0.05
Mental health
Documented depression/anxiety, n (%)766 (4.6%)448 (2.9%)545 (6.7%)<0.05
Antidepressant use, n (%)3,341 (20.0%)1,936 (12.7%)1,571 (19.3%)<0.05
Post-operative non-opioid analgesia
Paracetamol administered, n (%)14,620 (87.4%)9,608 (63.2%)7,200 (88.7%)<0.05
NSAID administered, n (%)3,404 (20.4%)2,795 (18.4%)3,012 (37.1%)<0.05
Post-operative allied health and spiritual care
Physiotherapy documented, n (%)6,241 (37.3%)2,106 (13.8%)2,058 (25.3%)<0.05
Occupational therapy documented, n (%)2,183 (13.1%)433 (2.8%)566 (7.0%)<0.05
Psychology documented, n (%)80 (0.5%)22 (0.1%)56 (0.7%)<0.05
Spiritual care documented, n (%)55 (0.3%)19 (0.1%)13 (0.2%)<0.05
Table 1. Baseline characteristics and post-operative pain features by pain phenotype Note. Values are mean (SD) or n (%), as indicated. eGFR = estimated glomerular filtration rate; LFT = liver function test; NRS = numerical rating scale; NSAID = non-steroidal anti-inflammatory drug; SD = standard deviation

Pain phenotype characteristics

The three pain phenotypes demonstrated distinct patterns of post-operative pain intensity. Phenotype 1 was characterised by low average pain with intermittent high-intensity peaks. This was reflected in a low mean pain score but a high maximum score, and the greatest number of pain assessments. Phenotype 2 showed consistently minimal pain with uniformly low mean and median scores, minimal variability and the fewest assessments. In contrast, Phenotype 3 displayed a persistently high pain profile with elevated mean and median scores, wide variability and a high maximum score, indicating sustained rather than episodic pain. The numerical separation of phenotypes across median, mean and maximum pain scores is shown in Table 1.

Associations with post-operative outcomes

Unless otherwise stated, all percentage differences, odds ratios and confidence intervals reported below are from covariate-adjusted regression models.

Inpatient opioid dose

Compared with Phenotype 1, Phenotype 2 had substantially lower inpatient MME consumption, with an adjusted 85% reduction in cumulative post-operative MME (95% CI 84–86%, P < 0.01). Phenotype 3 had significantly higher inpatient opioid consumption, corresponding to an approximately 2.7-fold increase in cumulative opioid dose relative to the reference Phenotype 1 (95% CI 152–193%, P < 0.01).

Discharge opioid quantity

Similar associations were observed for discharge prescribing. Phenotype 2 received 24% lower discharge MME compared with Phenotype 1 (95% CI 19–29%, P < 0.01). Phenotype 3 received 108% higher discharge MME (95% CI 90–128%, P < 0.01).

Length of stay

Length of stay differed across pain phenotypes. Compared with Phenotype 1, Phenotype 2 had a 36% shorter geometric mean stay (95% CI 34–37%, P < 0.01), and Phenotype 3 had a 7% shorter stay (95% CI 4–10%, P < 0.01). Absolute geometric mean length of stay in days is not reported because length of stay was modelled on the log scale and absolute day values were not retained in the final analysis output. Percentage differences are therefore presented relative to Phenotype 1 as the reference group.

Thirty-day readmission

After covariate-adjusted logistic regression, Phenotype 2 had substantially lower odds of 30-day readmission compared with Phenotype 1 (adjusted OR 0.66; 95% CI 0.61–0.72%, P < 0.01). Phenotype 3 showed no difference in readmission risk relative to Phenotype 1 (adjusted OR 1.00; 95% CI 0.90–1.11%, P = 0.97).

Discussion

Main findings

In this multicentre cohort, we identified three distinct post-operative pain phenotypes derived from routinely recorded ward pain scores. These phenotypes were associated with inpatient and discharge opioid prescribing, as well as early surgical outcomes. The association of intermittent pain spikes (Phenotype 1) with increased monitoring frequency and higher readmission rates raises the possibility that fluctuating pain patterns may reflect post-operative instability, evolving complications or inadequately addressed nociceptive processes that are not captured by average pain scores.

Patients with consistently minimal pain (Phenotype 2) had substantially lower inpatient and discharge opioid doses, shorter lengths of stay and fewer readmissions; this may reflect demographic differences rather than improved analgesic control. In contrast, patients who had persistently high pain (Phenotype 3) received higher opioid doses without a corresponding reduction in length of stay or readmissions, suggesting that opioid escalation alone may not fully account for differences in early recovery trajectories.

Persistently high and consistently minimal pain patterns have been reported in prior studies.20,21 In contrast, a low average pain pattern such as that seen in Phenotype 1, with its intermittent peaks, has been less consistently identified, often described as ‘moderate’, ‘variable’ or ‘fluctuating’ in trajectory studies.22,26 In our study, this intermediate group (Phenotype 1) was well delineated, which may reflect the use of explicit variability metrics—pain range and pain spread—as direct clustering inputs rather than suggest variability post hoc from a modelled trajectory shape, as in prior typology studies.22,26

Impact of demographics

Phenotype 3 (persistently high pain) was substantially younger (mean age 44.0 years, SD 18.3) than both Phenotype 1 (intermittent pain, 60.3 years, SD 21.1) and Phenotype 2 (consistently minimal pain, 54.8 years, SD 22.2), and had a higher prevalence of documented depression or anxiety (6.7% versus 4.6% and 2.9%, respectively). Younger age and fewer comorbidities in this phenotype may explain its modestly shorter length of stay rather than the higher opioid dose reflecting better pain control. The higher prevalence of documented psychological comorbidity in this group is also consistent with known associations between anxiety, depression and heightened pain reporting, and may reflect either a genuine contribution of psychological distress to pain intensity or a greater likelihood of pain being escalated to clinical attention in these patients.

There is evidence that links higher opioid consumption to increased risk of persistent opioid use, chronic pain and psychological harm without necessarily improving recovery.6,32,33 In our study, Phenotype 3 (persistently high pain) may represent patients who have complex pain profiles in whom opioid escalation reflects attempts to manage unaddressed contributors34,35 such as anxiety and depression.

In contrast, Phenotype 2 (consistently minimal pain) may represent patients who respond well to routine peri-operative care, and who have lower pain, shorter admission and minimal opioid requirements.

The reference phenotype (Phenotype 1, intermittent pain) had the highest recorded pain score observations, likely reflecting closer inpatient monitoring driven by clinician concern about physiological instability or early surgical complications. This same underlying instability may independently account for the higher 30-day readmission rate observed in this group. Episodic spikes in post-operative pain may signal an unrecognised underlying complication, such as infection or haematoma, rather than analgesic insufficiency. Early pain peaks have known associations with complications and increased risk of persistent pain.20,34

Existing literature

Several aspects distinguish this study from prior research on post-operative pain trajectories. First, our phenotypes were derived exclusively from routinely collected ward pain scores, which may support broader generalisability. Second, the analysis included a large multicentre cohort that spanned multiple surgical specialities, further supporting generalisability beyond single-procedure studies. Third, the study directly examined associations between pain phenotypes and both inpatient and discharge opioid dose, linking post-operative pain trajectories to a clinically important opioid stewardship question. Whether these phenotypes can be embedded into clinical workflows to improve opioid stewardship now requires prospective validation.

Discharge opioid quantities often reflect habitual prescribing practices rather than individualised assessment of a patient’s in-hospital opioid requirement.27,28 In our study, higher discharge opioid quantities in Phenotype 3 (persistently high pain) may reflect underuse of multimodal analgesia (e.g. paracetamol, non-steroidal anti-inflammatory drugs), consistently with previously reported prescribing practices that favour opioid monotherapy. Our results also align with work that shows that persistent post-operative pain is associated with adverse outcomes, including opioid consumption, prolonged hospitalisation and progress to chronic pain.11,12,26,29–31

Limitations

The identified phenotypes likely reflect a composite of patient characteristics, surgical factors and analgesic management, and should therefore be interpreted as descriptive associations only. Models were adjusted for surgical service and operative urgency (elective versus emergency) but not specific procedure types. Therefore, residual confounding at the procedure level, particularly relevant to readmission risk, cannot be excluded. The models did not formally account for clustering by hospital, which may have led to underestimated standard errors and overly narrow confidence intervals.

Post-operative pain features were summarised over the five post-operative days. This captures the period of highest analgesic need, but additional phenotypes may have emerged with longer inpatient follow-up. This may partly reflect measurement artefact; pain score frequency may capture nursing concern, patient distress or physiological instability rather than pain severity itself. Unmeasured factors such as pre-operative opioid use, baseline pain intensity and psychological factors are also known to influence post-operative opioid requirements. The exclusion of patients with incomplete pain data may have introduced selection bias; however, complete pain trajectories are required for clustering approaches, and similar exclusion strategies have been used in prior post-operative pain trajectory studies. In addition, the cohort included multiple surgical specialties, which are associated with characteristically different pain patterns and analgesic practices independent of individual patient factors. This may have therefore contributed to observed phenotype differences.

Discharge oral morphine equivalents were used as a proxy for post-discharge opioid consumption; we were unable to assess actual use. Readmission outcomes were limited to inpatient readmissions within the same institution and did not capture other emergency presentations or external hospital attendances.

We did not consistently distinguish between pain at rest and pain on movement, which may have underestimated function-limiting pain. We deliberately traded detailed pain phenotyping for scalability because ward pain scores are one of the few pain-related measures collected consistently enough to be studied at a population level; doing so could limit our understanding of mechanisms.

Patients that were receiving regional anaesthesia or PCA were excluded to preserve the comparability of the ward-based pain scores across the cohort. This exclusion may have introduced additional selection bias because regional and PCA techniques are often preferentially selected for patients that are anticipated to have more severe pain; thus, this potentially removed patients who had the highest pain from the analysis before phenotyping occurred. The resulting phenotypes therefore describe pain patterns among patients managed with systemic analgesia and may not generalise to patients that require regional or PCA techniques.37 It is also possible that additional high-pain phenotypes exist among patients managed with regional or PCA techniques. In retrospect, capturing regional and PCA use as a covariate rather than an exclusion criterion, or reporting the excluded cohort’s characteristics for comparison, would have allowed this potential bias to be evaluated. We note this as a design choice for future prospective studies.

Finally, pain scores remain subjective and influenced by inter-rater variability. Unadjusted estimates could not be retained or reproduced alongside the adjusted results in Figure 1 because the intermediate model outputs that are required were not preserved. Therefore, only adjusted estimates are reported throughout. Prospective validation across diverse settings and surgical cohorts is warranted.

Four-panel bar chart showing adjusted associations between pain phenotype and inpatient opioid dose, discharge opioid quantity, length of stay and 30-day readmission, relative to Phenotype 1.
Figure 1. Postoperative opioid exposure, length of stay, and readmission by pain phenotype.
Adjusted associations between post-operative pain phenotype and inpatient opioid dose, discharge opioid quantity, length of stay and 30-day readmission, relative to Phenotype 1 (reference group). Estimates are from multivariable regression models adjusted for demographic, clinical and operative covariates (see Methods section). Bars represent adjusted percentage differences for opioid dose, discharge quantity and length of stay. The readmission panel is an adjusted odds ratio. Error bars represent 95% confidence intervals.

Future

These findings may have implications for peri-operative opioid prescribing and warrant further evaluation. Patients in Phenotype 3 (persistently high pain) may benefit from early pharmacist or acute pain service review, consideration of regional analgesic techniques where not contraindicated, structured non-opioid escalation, and opioid-sparing discharge planning. Conversely, Phenotype 2 (consistently minimal pain) identifies patients who may safely receive reduced default opioid quantities at discharge. Prospective studies are required to determine whether phenotype-informed strategies improve outcomes.

Conclusion

In a large multicentre cohort, we identified three post-operative pain phenotypes using routinely recorded ward scores. These phenotypes were associated with inpatient and discharge opioid consumption, length of stay and 30-day readmission. Phenotype 2 (consistently minimal pain) was associated with lower opioid consumption, shorter length of stay and fewer readmissions. Phenotype 3 (persistently high pain) was associated with substantially higher opioid consumption without a corresponding reduction in readmission. Prospective studies are required to determine whether these phenotypes can inform clinical decision-making or opioid stewardship.

References

  1. Apfelbaum JL, Chen C, Mehta SS, Gan TJ. Postoperative pain experience: results from a national survey suggest postoperative pain continues to be undermanaged. Anesth Analg. 2003;97(2):534–40.DOI: 10.1213/01. ANE.0000068822.10113.9E
  2. Lappalainen E, Ruohoaho UM, Kokki H, Aaltomaa S, Anttila M, Gissler M, et al. Postoperative pain in a prospectively assessed surgical short-stay cohort: A subgroup analysis. Acta Anaesthesiol Scand. 2022;66(10):1193–201. DOI: 10.1111/aas.14139
  3. Gan TJ, Habib AS, Miller TE, White W, Apfelbaum JL. Incidence, patient satisfaction, and perceptions of post-surgical pain: results from a US national survey. Curr Med Res Opin. 2014;30(1):149-60. DOI: 10.1185/03007995.2013.860019
  4. Kehlet H, Dahl JB. Anaesthesia, surgery, and challenges in postoperative recovery. Lancet. 2003;362(9399):1921–8. DOI: 10.1016/S0140-6736(03)14966-5
  5. Werner MU, Kongsgaard UE. I. Defining persistent post-surgical pain: is an update required? Br J Anaesth. 2014;113(1):1–4. DOI: 10.1093/bja/aeu012
  6. Brummett CM, Waljee JF, Goesling J, Moser S, Lin P, Englesbe MJ, et al. New Persistent Opioid Use After Minor and Major Surgical Procedures in US Adults. JAMA Surg. 2017;152(6):e170504. DOI: 10.1001/jamasurg.2017.0504
  7. Oderda GM, Said Q, Evans RS, Stoddard GJ, Lloyd J, Jackson K, et al. Opioid-related adverse drug events in surgical hospitalizations: impact on costs and length of stay. Ann Pharmacother. 2007;41(3):400–6. DOI: 10.1345/aph.1H386
  8. Chang W-K, Tai Y-H, Lin S-P, Wu H-L, Tsou M-Y, Chang K-Y. An investigation of the relationships between postoperative pain trajectories and outcomes after surgery for colorectal cancer. Critical care medicine. 2019;82(11):865–71. DOI: 10.1097/JCMA.0000000000000166
  9. Mariano ER, El-Boghdadly K, Ilfeld BM. Using postoperative pain trajectories to define the role of regional analgesia in personalised pain medicine. Anaesthesia. 2021;76(2):165–9. DOI: 10.1111/anae.15067
  10. Singh JA, Lemay CA, Nobel L, Yang W, Weissman N, Saag KG, et al. Association of Early Postoperative Pain Trajectories With Longer-term Pain Outcome After Primary Total Knee Arthroplasty. JAMA network open. 2019;2(11):e1915105. DOI: 10.1001/jamanetworkopen.2019.15105
  11. Awadalla SS, Winslow V, Avidan MS, Haroutounian S, Kannampallil TG. Effect of acute postsurgical pain trajectories on 30-day and 1-year pain. PLoS One. 2022;17(6):e0269455. DOI: 10.1371/journal.pone.0269455
  12. Hofer DM, Harnik M, Lehmann T, Stüber F, Baumbach P, Dreiling J, et al. Trajectories of pain and opioid use up to one year after surgery: analysis of a European registry. Br J Anaesth. 2024;132(3):588–98. DOI: 10.1016/j. bja.2023.12.002
  13. Mogianos K, Åkeson J, Persson AKM. Systematic Review of Methods for Individual Prediction of Postoperative Pain. Pain Res Manag. 2025;2025:1331412. DOI: 10.1155/prm/1331412
  14. Dong Y, Zeng H, Yang L, Song H, Li Q. Prognostic prediction model for chronic postsurgical pain among adult patients: a systematic review and meta-analysis. Anesthesiology and Perioperative Science. 2025;3(2):14. DOI:10.1007/s44254-025-00093-7
  15. Vasilopoulos T, Wardhan R, Rashidi P, Fillingim RB, Wallace MR, Crispen PL, et al. Patient and Procedural Determinants of Postoperative Pain Trajectories. Anesthesiology. 2021;134(3):421–34. DOI: 10.1097/ALN.0000000000003681
  16. Schreiber KL, Wilson JM, Chen YK. Recognizing pain phenotypes: biopsychosocial sources of variability in the transition to chronic postsurgical pain. Reg Anesth Pain Med. 2025;50(2):86–92. DOI: 10.1136/rapm-2024-105602
  17. Gilbert T, Neuburger J, Kraindler J, Keeble E, Smith P, Ariti C, et al. Development and validation of a Hospital Frailty Risk Score focusing on older people in acute care settings using electronic hospital records: an observational study. Lancet. 2018;391(10132):1775–82. DOI: 10.1016/S0140-6736(18)30668-8
  18. Stretton B, Booth AEC, Kovoor J, Gupta A, Edwards S, Hugh T, et al. Impact of frailty, malnutrition and socioeconomic status on perioperative outcomes. Age and Ageing. 2024;53(12). DOI: 10.1093/ageing/afae263
  19. Krebs EE, Carey TS, Weinberger M. Accuracy of the pain numeric rating scale as a screening test in primary care. J Gen Intern Med. 2007;22(10):1453–8. DOI: 10.1007/s11606-007-0321-2
  20. Chapman CR, Donaldson GW, Davis JJ, Bradshaw DH. Improving individual measurement of postoperative pain: the pain trajectory. J Pain. 2011;12(2):257–62. DOI: 10.1016/j.jpain.2010.08.005
  21. Pagé MG, Katz J, Curtis K, Lutzky-Cohen N, Escobar EM, Clarke HA. Acute pain trajectories and the persistence of post-surgical pain: a longitudinal study after total hip arthroplasty. J Anesth. 2016;30(4):568–77. DOI: 10.1007/s00540-016-2183-4
  22. Althaus A, Arránz Becker O, Moser KH, Lux EA, Weber F, Neugebauer E, et al. Postoperative Pain Trajectories and Pain Chronification-an Empirical Typology of Pain Patients. Pain Med. 2018;19(12):2536–45. DOI: 10.1093/pm/pny099
  23. Medicare Cf, Services M. Opioid oral morphine milligram equivalent (MME) conversion factors. Centers Medicaire Medicaid Serv. 2018;2.
  24. Cancer Institute NSW. Opioid Conversion Calculator 2023 [Available from: https://www.eviq.org.au/clinical-resources/eviq-calculators/3201-opioid-conversion-calculator.
  25. Gedda C, Nygren J, Garpenbeck A, Hoffström L, Thorell A, Soop M. Multimodal Analgesia Bundle and Postoperative Opioid Use Among Patients Undergoing Colorectal Surgery. JAMA Network Open. 2023;6(9):e2332408-e. DOI: 10.1001/jamanetworkopen.2023.32408
  26. Giordano NA, Kent ML, Kroma RB, Rojas W, Lindl MJ, Lujan E, et al. Acute postoperative pain impact trajectories and factors contributing to trajectory membership. Pain Medicine. 2022;24(7):829–36. DOI: 10.1093/pm/pnac203
  27. Hill MV, Stucke RS, Billmeier SE, Kelly JL, Barth RJ, Jr. Guideline for Discharge Opioid Prescriptions after Inpatient General Surgical Procedures. J Am Coll Surg. 2018;226(6):996–1003. DOI: 10.1016/j. jamcollsurg.2017.10.012
  28. Thiels CA, Anderson SS, Ubl DS, Hanson KT, Bergquist WJ, Gray RJ, et al. Wide Variation and Overprescription of Opioids After Elective Surgery. Ann Surg. 2017;266(4):564–73. DOI: 10.1097/SLA.0000000000002365
  29. Kehlet H, Jensen TS, Woolf CJ. Persistent postsurgical pain: risk factors and prevention. Lancet. 2006;367(9522):1618–25. DOI: 10.1016/S0140-6736(06)68700-X
  30. Giusti EM, Lacerenza M, Manzoni GM, Castelnuovo G. Psychological and psychosocial predictors of chronic postsurgical pain: a systematic review and meta-analysis. Pain. 2021;162(1):10–30. DOI: 10.1097/j. pain.0000000000001999
  31. Ip HY, Abrishami A, Peng PW, Wong J, Chung F. Predictors of postoperative pain and analgesic consumption: a qualitative systematic review. Anesthesiology. 2009;111(3):657–77. DOI: 10.1097/ALN.0b013e3181aae87a
  32. Howard R, Brown S, Lai YL, Gunaseelan V, Brummett CM, Englesbe M, et al. Postoperative Opioid Prescribing and New Persistent Opioid Use: The Risk of Excessive Prescribing. Ann Surg. 2023;277(6):e1225–e31. DOI: 10.1097/SLA.0000000000005392
  33. Clarke H, Soneji N, Ko DT, Yun L, Wijeysundera DN. Rates and risk factors for prolonged opioid use after major surgery: population based cohort study. Bmj. 2014;348:g1251. DOI: 10.1136/bmj.g1251
  34. Gerbershagen HJ, Aduckathil S, van Wijck AJ, Peelen LM, Kalkman CJ, Meissner W. Pain intensity on the first day after surgery: a prospective cohort study comparing 179 surgical procedures. Anesthesiology. 2013;118(4):934–44. DOI: 10.1097/ALN.0b013e31828866b3
  35. Prego-Domínguez J, Skillgate E, Orsini N, Takkouche B. Social factors and pain worsening: a retrospective cohort study. Br J Anaesth. 2021;127(2):289–95. DOI: 10.1016/j.bja.2021.04.021
  36. Sendak MP, Ratliff W, Sarro D, Alderton E, Futoma J, Gao M, et al. Real-World Integration of a Sepsis Deep Learning Technology Into Routine Clinical Care: Implementation Study. JMIR Med Inform. 2020;8(7):e15182. DOI: 10.2196/15182
  37. Stretton B, Booth AEC, Kovoor J, Gupta A, Zaka A, Edwards S, et al. Painfully Obvious? Non-Operative Drivers of Post-Operative Pain and Opioid Exposure in a Predominantly Emergency Surgical Cohort: A Multicentre Observational Study Identifying Non-Operative, Perioperative Pain Correlates. Pain Pract. 2025;25(7):e70068. DOI: 10.1111/papr.70068

Acknowledgements: We would like to thank Dr Stephen Bacchi for his contributions to this project. The authors wish to acknowledge the work of reviewers Dr Laura Frank, Dr Charlie Coventry and Dr Suzanne Edwards.

Author contributions: Joshua Andrews and Jack Jeanes contributed to study conception and drafting of the manuscript; Joshua Andrews additionally had primary responsibility for editing and preparation of the final manuscript. Oliver Leslie contributed to data acquisition and reviewing of the manuscript. Andrew EC Booth contributed to data acquisition, statistical analysis, and interpretation. Venkatesan Thiruvenkatarajan contributed to study conception, provided senior input, and reviewed the manuscript. Gerry O’Callaghan provided senior input and reviewed the manuscript. Timothy Trewren, Dan Zweck, Alasdair Leslie, Phillip Emerson, and Brandon Stretton reviewed and edited the manuscript. All authors approved the final version of the manuscript.

Funding statement: This research received no specific grant from any funding agency in the public, commercial, or not-for-profit sectors.

Conflict of interest statement: The authors declare that there is no conflict of interest.

Ethics approval: The Central Adelaide Local Health Network Human Research Ethics Committee (reference number: 16860) provided ethics approval for this study, with a waiver of consent.

Consent for publication: Patient consent was waived by the ethics committee due to the retrospective nature of the study.

Data availability statement: Data is available from the corresponding author on reasonable request, due to ethical / privacy limitations.

Use of AI tools: A generative AI tool was used only for language editing (grammar, syntax and clarity) on author-written text. The authors reviewed and approved all changes and take full responsibility for the content.