2027 ICD-10-CM Diagnosis Code K87Disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere

ICD-10-CM Codes›K00–K95›K80-K87›K87

ICD-10-CM K87
CMSSource: CMS FY 2027 ICD-10-CM dataset · Effective Oct 1, 2026 – Sep 30, 2027

K87 is a billable ICD-10-CM diagnosis code for disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere. It is valid on HIPAA claims for fiscal year 2027 (October 1, 2026 through September 30, 2027) and groups to MS-DRG 444 through 446. The code is a manifestation code that cannot be reported as the principal diagnosis. In AHRQ's Clinical Classifications Software (CCSR), this diagnosis falls under Biliary tract disease.

K87 does not risk-adjust for Medicare Advantage under the CMS-HCC V28 model. It still risk-adjusts in the RxHCC Part D (V08) category 66 for payment year 2027.

Code Identity

ICD-10-CM Code
K87
Billable Status
Yes — Valid for Submission
Code Describes
Disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere
Short Description
Disord of GB, biliary trac and pancreas in dis classd elswhr
Chapter
K80-K87
Disorders of gallbladder, biliary tract and pancreas

Code Classification

ChapterK00–K95Diseases of the digestive system
SectionK80-K87Disorders of gallbladder, biliary tract and pancreas
CategoryK87Disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere
This CodeK87Disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere

Code EditsBilling

Medicare Code Editor checks that affect claim validity for K87.

Manifestation codes describe the manifestation of an underlying disease, not the disease itself, and therefore should not be used as a principal diagnosis.

Medicare Risk Adjustment (HCC)Billing

K87 does not risk-adjust for Medicare Advantage under the CMS-HCC V28 model, but it maps to payment categories in the other CMS models shown below.

CMS-HCC V28 (Medicare Advantage Payment Model)
Not mapped
no payment category in the model that pays 100% of MA risk scores
Prior Model (CMS-HCC V24)
Not mapped under V24
this diagnosis newly risk-adjusts under the V28 model
Part D (RxHCC)
RxHCC 66 — Pancreatic Disorders and Intestinal Malabsorption, Except Pancreatitis
also risk-adjusts in the Part D prescription drug model (V08)

Source: CMS Payment Year 2027 risk adjustment mappings and model software. Weights are relative factors, not dollar amounts; a beneficiary's total RAF also includes demographics and interactions. Browse all CMS-HCC categories.

Instructional NotesGuidance

Instructions from the official ICD-10-CM Tabular List that apply to K87: its own notes plus those printed at Chapter 11. A note printed at a category, block or chapter applies to every code under it.

Excludes1

Not coded here: the excluded code is never reported together with this one, unless the two conditions are unrelated.

  • cytomegaloviral pancreatitis (B25.2)
  • mumps pancreatitis (B26.3)
  • syphilitic gallbladder (A52.74)
  • syphilitic pancreas (A52.74)
  • tuberculosis of gallbladder (A18.83)
  • tuberculosis of pancreas (A18.83)

Excludes2

Not included here: the excluded condition is not part of this code, but a patient may have both, so both codes may be reported.

From Chapter 11 (K00-K95) Diseases of the digestive system applies to 863 codes
  • certain conditions originating in the perinatal period (P04-P96)
  • certain infectious and parasitic diseases (A00-B99)
  • complications of pregnancy, childbirth and the puerperium (O00-O9A)
  • congenital malformations, deformations and chromosomal abnormalities (Q00-Q99)
  • endocrine, nutritional and metabolic diseases (E00-E88)
  • injury, poisoning and certain other consequences of external causes (S00-T88)
  • neoplasms (C00-D49)
  • symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (R00-R94)

Code First

The underlying condition named in the note is sequenced before this code.

  • underlying disease

Source: CMS ICD-10-CM Tabular List. How to read instructional notes.

Index to Diseases and InjuriesGuidance

Alphabetical index entries that point to this code.

Clinical ClassificationClinical

AHRQ’s CCSR groups this code into broader clinical categories.

CCSR DIG017
Biliary tract disease
Default principal diagnosis: inpatient No · outpatient No

Patient EducationClinical

Bile Duct Diseases

Your liver makes a digestive juice called bile. Your gallbladder stores it between meals. When you eat, your gallbladder pushes the bile into tubes called bile ducts. They carry the bile to your small intestine. The bile helps break down fat. It also helps the liver get rid of toxins and wastes.

Read the full article at MedlinePlus

Courtesy of MedlinePlus, a service of the U.S. National Library of Medicine.

Convert K87 to ICD-9-CMHistory

The closest ICD-9-CM equivalents under the General Equivalence Mappings.

ICD-9-CM
576.8 Dis of biliary tract NEC
Approximate The match is approximate rather than exact.
ICD-9-CM
577.8 Pancreatic disease NEC
Approximate The match is approximate rather than exact.

Code HistoryHistory

FY 2016AddedAdded to the ICD-10-CM code setEffective October 1, 2015, the first year of ICD-10-CM.
FY 2017–2026No changes
FY 2027CurrentCurrent code set, no changesEffective October 1, 2026 through September 30, 2027.

Questions About K87Overview

Is K87 a billable code?

Yes. This is a billable ICD-10-CM code, specific enough to report disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

What MS-DRG does K87 group to?

On inpatient claims, disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere maps to MS-DRG 444, 445, 446, with relative weights from 0.8121 to 1.6662 depending on complications. Higher weights mean higher Medicare reimbursement.

Can K87 be a principal diagnosis?

No. This is a manifestation code: disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere describes the manifestation of an underlying disease rather than the disease itself, so the underlying condition is sequenced first.

Can K87 be reported with B25.2?

Not as a rule. The Excludes1 note on K87 lists "cytomegaloviral pancreatitis (B25.2)". An Excludes1 note means the excluded code is never reported together with this one; the only exception is when the two conditions are unrelated to each other (Official Guidelines, Section I.A.12.a).

What is coded first with K87?

The Code First note reads: underlying disease. When one of these applies, it is sequenced before K87.

Does K87 risk-adjust for Medicare Advantage payment?

Not for Medicare Advantage: K87 maps to no category in the CMS-HCC V28 model. It still risk-adjusts in the RxHCC Part D (V08) category 66 (Pancreatic Disorders and Intestinal Malabsorption, Except Pancreatitis).