K87 ICD-10-CM Code: Disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere
Compare with another codeCheck this code on a claim
Billing Status: YES. This is a valid, specific, and billable ICD-10-CM reference.
Coding at a Glance
- Tabular directives
- 6 Excludes1 · 1 code-first instruction
- Risk adjustment
- RxHCC V08 category 66
Billable · FY2027A valid, specific ICD-10-CM code, reportable for dates of service in FY2027.
What you need to know
Source: CMS/NCHS Official ICD-10-CM tabular notes, quoted. From the CMS/NCHS tabular list for the release in force. A note the category or block publishes applies to this code too; the Instructions section marks which is which.
- Code firstSequence the underlying condition before this code
- underlying disease
Most relevant related codes MedCoder-derived
Read off the official notes above and this code’s own position in the tabular list. Which to report is a documentation question; Compare shows the two side by side.
Inpatient Payment Groups (MS-DRG)
Potential MS-DRG participation — not a DRG assignment.
MS-DRGs this diagnosis helps define, as principal or secondary, per the CMS ICD-10-CM/PCS MS-DRG Definitions Manual v44, Appendix B.
- MS-DRG 444 — DISORDERS OF THE BILIARY TRACT WITH MCC (MDC 07)
- MS-DRG 445 — DISORDERS OF THE BILIARY TRACT WITH CC (MDC 07)
- MS-DRG 446 — DISORDERS OF THE BILIARY TRACT WITHOUT CC/MCC (MDC 07)
A diagnosis appearing in a group's logic does not by itself determine the DRG assigned to a stay; the grouper uses the full claim.
Coding instructions
Official Tabular Instructional Notes: the inclusion, exclusion and sequencing notes published for K87 in the official ICD-10-CM tabular list, quoted as published.
Source: CMS/CDC — ICD-10-CM Tabular ListRelease: FY2027Effective: October 1, 2026
Trace:FY2027 changesChange historyRelease, file and checksum
Excludes1 — Not Coded Here
Conditions generally not reported together with this code (Excludes1) -- an error unless the two conditions are documented as unrelated to each other (ICD-10-CM Official Guidelines, Section I.A.12.a).
- cytomegaloviral pancreatitis (B25.2) Compare K87 vs B25.2 →
- mumps pancreatitis (B26.3) Compare K87 vs B26.3 →
- syphilitic gallbladder (A52.74) Compare K87 vs A52.74 →
- syphilitic pancreas (A52.74) Compare K87 vs A52.74 →
- tuberculosis of gallbladder (A18.83) Compare K87 vs A18.83 →
- tuberculosis of pancreas (A18.83) Compare K87 vs A18.83 →
Code First
Underlying conditions that must be sequenced before this code.
- underlying disease
Coder workflow for K87
MedCoder structured workflow — derived from this code’s own official record
Before you code K87
- K87 is a manifestation code (“in diseases classified elsewhere”). Confirm the underlying condition is documented and sequence it first; a manifestation code is not reported as the first-listed or principal diagnosis. The etiology/manifestation convention (Guidelines I.A.13).
See the official tabular notes · Guide: Manifestation codes and Code First sequencing →
- Check the Excludes1 note: if the documentation supports a condition named there, do not simply proceed with K87. Excludes1 conditions are not reported together with this code unless the record shows they are unrelated (Guidelines I.A.12.a).
Choose the right path
- Does the documentation support a condition named in K87’s Excludes1 note?
Yes → Do not simply proceed: review the excluded code. Both are reported only when the record shows the two conditions are unrelated.
No → Continue. - Is the underlying (etiologic) condition the Code First note names documented?
Yes → Sequence the underlying condition first, then K87.
No → A manifestation code needs its underlying condition — query before reporting it.
Consider K87. Then confirm the code is valid for the date of service in the Verify section.
Documentation check
- The provider’s diagnostic statement
- Codes are assigned from the provider’s documented diagnosis, not from clinical criteria, test values or a medication list (Guidelines I.A.19).
- The underlying (etiologic) condition
- Named in the Code First note; sequenced before this code when documented (Guidelines I.A.13).
Official instructions as workflow
Excludes1 — check before selecting K87(6 notes)
Coding workflow: If the documentation supports a condition named in this note, do not simply proceed with K87: the two are not reported together. The one exception is when the record shows the two conditions are unrelated to each other.
CompareB25.2, B26.3, A52.74, A18.83
See the official tabular notes · Guidelines I.A.12.a
Code First — sequencing check(1 note)
Coding workflow: Check whether the underlying or etiologic condition the note names is documented. When it is, sequence it before K87. Do not add an underlying condition the record does not document.
See the official tabular notes · Guidelines I.A.13
Coding decision scenarios
Pattern scenarios for this code’s structure — decision rules, not clinical cases
Documentation: Both the condition K87 describes and a condition named in its Excludes1 note are documented for the same encounter.
Coding question: Can both codes be reported?
Path: Review the Excludes1 note and the excluded code, and look for a provider statement on whether the two conditions are related.
Reason: Excludes1 means the two are not coded together; the exception is when the record shows the conditions are unrelated to each other (Guidelines I.A.12.a).
Documentation: The underlying condition the Code First note names is documented alongside this condition.
Coding question: How are the two sequenced?
Path: Review the Code First note.
Reason: The underlying condition is sequenced first and the manifestation follows (Guidelines I.A.13).
Every row is derived from this code’s own record — its title, tabular notes, 7th-character family and same-category siblings — with fixed MedCoder wording; nothing is inferred about a patient. The official notes and guideline text are in the sections each row links to, and they control.
Coding context
Guidelines, coding notes, decision aids, relationships (with MS-DRG and CCSR classification), hierarchy, HCC, coverage and the context map: what a coder reaches for after the core. Each section names whether it is official source data, a MedCoder-derived relationship or MedCoder editorial.
Code Overview
MedCoder summary Summary composed by MedCoder from this code's official ICD-10-CM record. The tabular instructional notes themselves appear verbatim below.
Official Coding Guidelines
No excerpt in the ICD-10-CM Official Guidelines names this code specifically. Its chapter carries only this chapter-wide note:
Chapter 11: Diseases of the Digestive System (K00-K95)
Reserved for future guideline expansion
Verify Before Coding
- Principal-diagnosis restriction. This is a manifestation code: the Medicare Code Editor requires the underlying condition (etiology) to be sequenced first, with this code reported after it.
From the code registry, the Medicare Code Editor, and the MS-DRG Definitions Manual. Check it against a full claim in Claim Check.
Relationships & Classification
MedCoder-derived relationships — computed from published CMS and AHRQ datasets
MS-DRG Grouper Relationships (FY2027)
Potential MS-DRG participation — not a DRG assignment.
FY2027 MS-DRG: not on the CMS CC/MCC list — as a secondary diagnosis this code does not change MS-DRG severity for that release.
Named in the grouper logic of 3 MS-DRGs: DRG 444 (MDC 07), DRG 445 (MDC 07), DRG 446 (MDC 07).
From the CMS MS-DRG Definitions Manual (Appendices B and C). Actual DRG assignment depends on the complete claim.
Clinical classification (AHRQ CCSR):DIG017 — Biliary tract disease.
Clinical Classifications Software Refined (CCSR) for ICD-10-CM Diagnoses. Healthcare Cost and Utilization Project (HCUP), Agency for Healthcare Research and Quality.
Related Codes
Principal diagnosis restriction (Medicare Code Editor)
Manifestation code — the underlying condition is sequenced first.
Same clinical category (CCSR)
AHRQ's Clinical Classifications Software groups these diagnoses under the same clinical category (Biliary tract disease).
K82.0 — Obstruction of gallbladder, K82.1 — Hydrops of gallbladder, K82.2 — Perforation of gallbladder, K82.3 — Fistula of gallbladder, K82.4 — Cholesterolosis of gallbladder, K82.8 — Other specified diseases of gallbladder, K82.9 — Disease of gallbladder, unspecified, K82.A1 — Gangrene of gallbladder in cholecystitis, K82.A2 — Perforation of gallbladder in cholecystitis, K83.0 — Cholangitis, K83.01 — Primary sclerosing cholangitis, K83.09 — Other cholangitis, K83.1 — Obstruction of bile duct, K83.2 — Perforation of bile duct, K83.3 — Fistula of bile duct, K83.4 — Spasm of sphincter of Oddi, K83.5 — Biliary cyst, K83.8 — Other specified diseases of biliary tract, K83.9 — Disease of biliary tract, unspecified, K91.5 — Postcholecystectomy syndrome, +45 more
Lab tests where this diagnosis supports Medicare coverage (NCD)
Medicare's National Coverage Determination (NCD) program lists this diagnosis as medical justification for these lab tests.
Blood Glucose Test, Fecal Occult Blood Test (FOBT), Gamma-glutamyl Transferase (GGT) Test, Lipid Panel, Partial Thromboplastin Time (PTT) Test, Prothrombin Time Test and INR (PT/INR)
Contextual Map
Every relationship of K87 in one view: hierarchy, official tabular instructions in both directions, clinical classification, risk adjustment, MS-DRG participation, index terms and change history — each edge carrying the CMS source it derives from.
Run K87 with these 4 related codes in Claim Check
Hierarchy
- K00-K95 — Chapter 11: Diseases of the Digestive System (K00-K95) (K00-K95)[Hierarchy]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
- K80-K87 — Disorders of gallbladder, biliary tract and pancreas[Hierarchy]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
Excludes1
- A18.83 — Tuberculosis of digestive tract organs, not elsewhere classified[Excludes1]: “tuberculosis of gallbladder (A18.83)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2027
- A52.74 — Syphilis of liver and other viscera[Excludes1]: “syphilitic gallbladder (A52.74)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2027
- B25.2 — Cytomegaloviral pancreatitis[Excludes1]: “cytomegaloviral pancreatitis (B25.2)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2027
- B26.3 — Mumps pancreatitis[Excludes1]: “mumps pancreatitis (B26.3)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2027
Clinical classification (CCSR)
- DIG017 — Biliary tract disease[CCSR]— AHRQ CCSR for ICD-10-CM Diagnoses (HCUP)
MS-DRG Grouper
- DRG 444 — DISORDERS OF THE BILIARY TRACT WITH MCC[MS-DRG]: “DISORDERS OF THE BILIARY TRACT WITH MCC (MDC 07)”— CMS MS-DRG Definitions Manual (Appendix B) · FY2027
- DRG 445 — DISORDERS OF THE BILIARY TRACT WITH CC[MS-DRG]: “DISORDERS OF THE BILIARY TRACT WITH CC (MDC 07)”— CMS MS-DRG Definitions Manual (Appendix B) · FY2027
- DRG 446 — DISORDERS OF THE BILIARY TRACT WITHOUT CC/MCC[MS-DRG]: “DISORDERS OF THE BILIARY TRACT WITHOUT CC/MCC (MDC 07)”— CMS MS-DRG Definitions Manual (Appendix B) · FY2027
MDC crossing
- MDC 07 — Diseases and Disorders of the Hepatobiliary System and Pancreas[MDC crossing]: “Diseases and Disorders of the Hepatobiliary System and Pancreas — the grouper's crossing between diagnoses and procedures: a principal diagnosis sets the MDC, and same-MDC procedures move the stay to its surgical DRGs. 2,488 same-MDC procedures group here; browse them on the MDC page.”— CMS MS-DRG Definitions Manual · FY2027
Index entries
- Disorder (of), gallbladder, biliary tract and pancreas in diseases classified elsewhere[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2027
Change history
- FY2016 — In the code set at ICD-10-CM adoption [Change history]— CMS release files (code change ledger) · icd10cm-fy2016
Reference
Index terms and tables, published questions and FAQ, every source behind this page with its release and checksum, the date-of-service check and the complete change history.
Indexed Clinical Terms (1)
Official source data — entries quoted as published, in the Index’s own lookup phrasing
Clinical term phrases from the official ICD-10-CM Index to Diseases and Injuries that map to this code. These are alphabetic-index entries shown as the Index writes them — lookup phrasing, not necessarily the wording of a final diagnosis.
Sources for this page
Codes, titles, notes, index terms and mappings on this page are transcribed from the datasets below. Relationships MedCoder computed and text MedCoder wrote are labelled where they appear.
- Code, title, tabular notes and index terms Official source data
- CMS/CDC ICD-10-CM FY2027 tabular list, index and tables, effective October 1, 2026 Release, file and checksum · Publisher’s page
- Coding guidelines Official source data
- ICD-10-CM Official Guidelines for Coding and Reporting (FY2027), quoted by section Release, file and checksum · Publisher’s page
- Claim edits Official source data
- CMS Definitions of Medicare Code Edits — v44.0 (October 2026) Release, file and checksum · Publisher’s page
- Inpatient payment groups Official source data
- CMS MS-DRG Definitions Manual (incl. Appendix B diagnosis index, Appendix C CC/MCC list, Appendix E procedure index) and IPPS Final Rule tables — v44 Release, file and checksum · Publisher’s page
- Change history and date-of-service validity Official source data
- CMS ICD-10-CM release addenda, ingested release by release into the change ledger Release, file and checksum · Publisher’s page
- Comparisons, relationships and the contextual map MedCoder-derived relationship
- Computed by MedCoder from the tabular notes and tables above; every derived relationship is marked as derived where it appears
- Summary and FAQ answers MedCoder editorial explanation
- Written by MedCoder to explain the sources above: drafted with AI assistance, checked by a person against the release files, and labelled as MedCoder text where it appears. Not official text.
Current data releases:ICD-10-CM FY2027 · ICD-10-PCS FY2027 · HCPCS October 2026 · MS-DRG v44 · Medicare Code Editor v44.0 · NCCI PTP Q4 2026 · MUE Q4 2026 · NCD code lists 2026-01 · LCD export September 28, 2026 · All releases and sources
Labels on this page: Official source data · MedCoder-derived relationship · MedCoder editorial explanation. How to read the labels · All data sources and release dates · CMS coding rules
Cite this page
Reference this page in a research guide, syllabus or article. The release is included because code content changes each year.
MedCoder.ai. "K87 — Disorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere." ICD-10-CM FY2027. https://medcoder.ai/icd10/code/k87-disorders-of-gallbladder-biliary-tract-and-pancreas-in-diseases-classified-elsewhere
Change history
- FY2016 — October 1, 2015In the code set at ICD-10-CM adoptionDisorders of gallbladder, biliary tract and pancreas in diseases classified elsewhere
No changes since FY2016 — additions, deletions, description changes and billable-status changes are tracked through FY2027, and none are recorded for this code. Note changes are tracked from FY2027 only.