SummaryBackgroundWhile opioid prescriptions have increased alarmingly in the United States (US), their use for unexplained chronic gastrointestinal (GI) pain (eg, irritable bowel syndrome) carries an especially high risk for adverse effects and questionable benefit.AimTo compare opioid use among US veterans with structural GI diagnoses (SGID) and those with unexplained GI symptoms or functional GI diagnoses (FGID), a group for whom opioids have no accepted role.MethodsVeterans Health Administration (VHA) administrative data from fiscal year 2012 were used to identify veterans with diagnostic codes recorded for SGID and FGID. This cohort study examined VHA pharmacy data to compare groups receiving ≥ 1 opioid prescription during the year and number of prescriptions filled. Bivariate and multiple logistic regression analyses adjusted for potential confounding factors (demographics, medical diagnoses, social factors) and identified potential mediators (service use, psychiatric comorbidity) of opioid use in these groups.ResultsA greater proportion of veterans with FGID received an opioid prescription during fiscal year 2012 (36.0% of 272 431) compared to only 28.9% of 1 223 744 in the SGID group (Relative Risk [RR] = 1.25). In multivariate logistic regression, personality disorders and drug abuse (OR 1.23 for each group), recent homelessness (OR 1.22), psychotropic medication fills (OR 1.55) and emergency department encounters (OR 1.21) were independently associated with opioid prescription use.ConclusionsDespite the potential for adverse consequences, opioids more often are prescribed for veterans with chronic, unexplained GI symptoms compared to those with structural diagnoses. Psychiatric comorbidities and frequent healthcare encounters mediate some of the opioid use risk.