Skip to main content

G89.12 ICD-10-CM Code: Acute post-thoracotomy pain

Billing Status: YES. This is a valid, specific, and billable ICD-10-CM reference.

Coding at a Glance

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 v43, Appendix B.

  • MS-DRG 947 — SIGNS AND SYMPTOMS WITH MCC (MDC 23)
  • MS-DRG 948 — SIGNS AND SYMPTOMS WITHOUT MCC (MDC 23)

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 G89.12 in the official ICD-10-CM tabular list, quoted as published.

Source: CMS/CDC — ICD-10-CM Tabular ListRelease: FY2026Effective: October 1, 2025

Notes without a marker are published on G89.12 itself; “inherited from” names the category or block whose note applies here.

Inclusion Terms

Alternative terms the tabular list files under this code.

  • Post-thoracotomy pain NOS

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).

Source: inherited from G89

Excludes2 — Not Included Here

Conditions not covered by this code, but which may be reported alongside it when both are present.

Source: inherited from G89

Code Also

Additional codes that may be required to fully describe the encounter.

  • related psychological factors associated with pain (F45.42)

Source: inherited from G89

Coder workflow for G89.12

MedCoder structured workflow — derived from this code’s own official record

Before you code G89.12

  1. Check the Excludes1 note: if the documentation supports a condition named there, do not simply proceed with G89.12. Excludes1 conditions are not reported together with this code unless the record shows they are unrelated (Guidelines I.A.12.a).

    See the official tabular notes

Choose the right path

  1. Does the documentation support a condition named in G89.12’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.

    ReviewR52, F45.41

Consider G89.12. Then review the Code Also note, and 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).
Acuity
Acute or chronic as documented; when both are documented and separate codes exist, both are reported with the acute code first (Guidelines I.B.8).

Official instructions as workflow

  • Excludes1 — check before selecting G89.12(3 notes)

    Coding workflow: If the documentation supports a condition named in this note, do not simply proceed with G89.12: the two are not reported together. The one exception is when the record shows the two conditions are unrelated to each other.

    CompareR52, F45.41

    See the official tabular notes · Guidelines I.A.12.a

  • Excludes2 — not part of G89.12(27 notes)

    Coding workflow: The conditions named in this note are not included in G89.12. When the record documents both, both may be reported; the note is a boundary, not a prohibition.

    CompareG50.1, G44, R10, M54.9, N64.4, H92.0

    See the official tabular notes · Guidelines I.A.12.b

  • Code Also — related condition(1 note)

    Coding workflow: Review the related condition when both are documented and the instruction applies. A Code Also note does not fix sequencing; the order follows the circumstances of the encounter.

    ReviewF45.42

    See the official tabular notes · Guidelines I.A.17

Coding decision scenarios

Pattern scenarios for this code’s structure — decision rules, not clinical cases

Documentation: Both the condition G89.12 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).

ReviewR52, F45.41

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.

Code Overview

Acute post-thoracotomy pain is a billable ICD-10-CM diagnosis code (G89.12).

MedCoder summary Summary composed by MedCoder from this code's official ICD-10-CM record. The tabular instructional notes themselves appear verbatim below.

Indexed Clinical Terms (2)

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.

Official Coding Guidelines

Official source data — quoted verbatim from the CMS/NCHS Official Guidelines

Official source data — quoted verbatim from the CMS/NCHS Official Guidelines

Verbatim excerpts from the ICD-10-CM Official Guidelines for Coding and Reporting (CMS/NCHS) that govern this code.

Chapter 5: Mental, Behavioral and Neurodevelopmental disorders (F01 – F99)

a. Pain disorders related to psychological factors Assign code F45.41, for pain that is exclusively related to psychological disorders. As indicated by the Excludes 1 note under category G89, a code from category G89 should not be assigned with code F45.41.

Chapter 5: Mental, Behavioral and Neurodevelopmental disorders (F01 – F99)

Code F45.42, Pain disorders with related psychological factors, should be used with a code from category G89, Pain, not elsewhere classified, if there is documentation of a psychological component for a patient with acute or chronic pain.

Chapter 6: Diseases of the Nervous System (G00-G99)

1) General coding information Codes in category G89, Pain, not elsewhere classified, may be used in conjunction with codes from other categories and chapters to provide more detail about acute or chronic pain and neoplasm-related pain, unless otherwise indicated below.

Chapter 6: Diseases of the Nervous System (G00-G99)

If the pain is not specified as acute or chronic, post-thoracotomy, postprocedural, or neoplasm-related, do not assign codes from category G89.

Chapter 6: Diseases of the Nervous System (G00-G99)

A code from category G89 should not be assigned if the underlying (definitive) diagnosis is known, unless the reason for the encounter is pain control/ management and not management of the underlying condition.

Chapter 6: Diseases of the Nervous System (G00-G99)

When an admission or encounter is for a procedure aimed at treating the underlying condition (e.g., spinal fusion, kyphoplasty), a code for the underlying condition (e.g., vertebral fracture, spinal stenosis) should be assigned as the principal diagnosis. No code from category G89 should be assigned.

Chapter 6: Diseases of the Nervous System (G00-G99)

(a) Category G89 Codes as Principal or First-Listed Diagnosis Category G89 codes are acceptable as principal diagnosis or the first-listed code: • When pain control or pain management is the reason for the admission/encounter (e.g., a patient with displaced intervertebral disc, nerve impingement and severe back pain presents for injection of steroid into the spinal canal). The underlying cause of the pain should be reported as an additional diagnosis, if known. • When a patient is admitted for the insertion of a neurostimulator for pain control, assign the appropriate pain code as the principal or first-listed diagnosis. When an admission or encounter is for a procedure aimed at treating the underlying condition and a neurostimulator is inserted for pain control during the same admission/encounter, a code for the underlying condition should be assigned as the principal diagnosis and the appropriate pain code should be assigned as a secondary diagnosis.

Chapter 6: Diseases of the Nervous System (G00-G99)

(b) Use of Category G89 Codes in Conjunction with Site Specific Pain Codes

Decision Points

The directives on this code's own record, as a pre-claim checklist.

  1. 1 Code Also note — a second code may apply; the guidelines leave its sequencing to the circumstances of the encounter. See the Code Also notes
  2. 3 Excludes1 entries — codes named there are generally not reported together with this code (Guidelines I.A.12.a). See the Excludes1 notes
  3. 27 Excludes2 entries — those conditions are not part of this code and may be reported additionally when documented. See the Excludes2 notes

Checklist rows are derived from this code's own official directives; the wording of each check is MedCoder editorial. The official notes themselves are in the sections each row links to.

Verify Before Coding

  • No Medicare Code Editor or MS-DRG Definitions Manual restrictions apply to this code.

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 structured relationships — computed from published CMS and AHRQ datasets

Other codes that name G89.12 or its code family, from the CMS ICD-10-CM tabular instructional notes. Tabular-note edges are stored at the code family level that carries each note.

Referenced by 1 Excludes1 note: R52 — Pain, unspecified (via G89.-).

These codes’ tabular lists mark this diagnosis as mutually exclusive — not reported together unless the conditions are documented as unrelated.

Referenced by 1 Code Also instruction: F45.42 — Pain disorder with related psychological factors (via G89.-).

These codes suggest coding this condition alongside when both are present.

MS-DRG Grouper Relationships (FY2026)

Potential MS-DRG participation — not a DRG assignment.

FY2026 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 2 MS-DRGs: DRG 947 (MDC 23), DRG 948 (MDC 23).

From the CMS MS-DRG Definitions Manual (Appendices B and C). Actual DRG assignment depends on the complete claim.

Clinical classification (AHRQ CCSR):NVS019 — Nervous system pain and pain syndromes (default).

Clinical Classifications Software Refined (CCSR) for ICD-10-CM Diagnoses. Healthcare Cost and Utilization Project (HCUP), Agency for Healthcare Research and Quality.

Related Codes

Same clinical category (CCSR)

AHRQ's Clinical Classifications Software groups these diagnoses under the same clinical category (Nervous system pain and pain syndromes).

G89.0 — Central pain syndrome, G89.11 — Acute pain due to trauma, G89.18 — Other acute postprocedural pain, G89.21 — Chronic pain due to trauma, G89.22 — Chronic post-thoracotomy pain, G89.28 — Other chronic postprocedural pain, G89.29 — Other chronic pain, G89.3 — Neoplasm related pain (acute) (chronic), G89.4 — Chronic pain syndrome, G90.2 — Horner's syndrome, G90.50 — Complex regional pain syndrome I, unspecified, G90.511 — Complex regional pain syndrome I of right upper limb, G90.512 — Complex regional pain syndrome I of left upper limb, G90.513 — Complex regional pain syndrome I of upper limb, bilateral, G90.519 — Complex regional pain syndrome I of unspecified upper limb, G90.521 — Complex regional pain syndrome I of right lower limb, G90.522 — Complex regional pain syndrome I of left lower limb, G90.523 — Complex regional pain syndrome I of lower limb, bilateral, G90.529 — Complex regional pain syndrome I of unspecified lower limb, G90.59 — Complex regional pain syndrome I of other specified site, +4 more

Same Index main term, other category

The ICD-10-CM Index to Diseases and Injuries files this code under the main term “Pain”; these codes share that main term but sit in a different category of the Tabular List.

F45.41 — Pain disorder exclusively related to psychological factors (psychogenic), G50.1 — Atypical facial pain (face, facial, atypical), H57.1 — Ocular pain (ocular), I20.9 — Angina pectoris, unspecified (chest, ischemic), J34.89 — Other specified disorders of nose and nasal sinuses (nose), J39.2 — Other diseases of pharynx (pharynx), K08.89 — Other specified disorders of teeth and supporting structures (tooth), K13.79 — Other lesions of oral mucosa (mouth), K14.6 — Glossodynia (tongue), K62.89 — Other specified diseases of anus and rectum (anus), K82.9 — Disease of gallbladder, unspecified (gallbladder), M25.50 — Pain in unspecified joint (joint), M25.51 — Pain in shoulder (shoulder), M25.52 — Pain in elbow (joint, elbow), M25.53 — Pain in wrist (joint, wrist), M25.54 — Pain in joints of hand (joint, hand), M25.55 — Pain in hip (joint, hip), M25.56 — Pain in knee (joint, knee), M25.57 — Pain in ankle and joints of foot (joint, toe), M25.59 — Pain in other specified joint (joint, specified site NEC), +72 more

Contextual Map

Every relationship of G89.12 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 G89.12 with these 2 related codes in Claim Check

Hierarchy

Referenced by Excludes1 notes

  • R52 — Pain, unspecified[Excludes1](via G89.-): “acute and chronic pain, not elsewhere classified (G89.-)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2026

Referenced by Code Also instructions

Clinical classification (CCSR)

MS-DRG Grouper

MDC crossing

  • MDC 23 — Factors Influencing Health Status and Other Contacts with Health Services[MDC crossing]: “Factors Influencing Health Status and Other Contacts with Health Services — 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. 1,235 same-MDC procedures group here; browse them on the MDC page.”— CMS MS-DRG Definitions Manual · FY2026

Index entries

  • Pain (s), acute, post-thoracotomy[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2026
  • Pain (s), post-thoracotomy[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2026

Nearest codes (12)

Change history

  • FY2016 — In the code set at ICD-10-CM adoption [Change history]— CMS release files (code change ledger) · icd10cm-fy2016

Common coding questions

Is G89.12 used for all post-thoracotomy pain?

For the acute, undocumented-as-chronic form — the guideline’s inclusion term is “Post-thoracotomy pain NOS,” and the default for post-thoracotomy pain not specified as acute or chronic is the acute code. Routine, expected post-thoracotomy pain immediately after surgery is not coded at all.

Pain from a documented thoracotomy complication — still G89.12?

No — pain associated with a specific postoperative complication is coded to the Chapter 19 complication code instead, with a G89 code added only if appropriate to further identify the pain.

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 FY2026 tabular list, index and tables, effective October 1, 2025 Release, file and checksum · Publisher’s page
Coding guidelines Official source data
ICD-10-CM Official Guidelines for Coding and Reporting (FY2026), quoted by section Release, file and checksum · Publisher’s page
Claim edits Official source data
CMS Definitions of Medicare Code Edits — v43.1 (April 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 — v43 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 structured 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 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.

Labels on this page: Official source data · MedCoder structured relationship · MedCoder explanation. How to read the labels · All data sources and release dates

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. "G89.12 — Acute post-thoracotomy pain." ICD-10-CM FY2026. https://medcoder.ai/icd10/code/g89.12-acute-post-thoracotomy-pain

Change history

  • FY2016 — October 1, 2015
    In the code set at ICD-10-CM adoption
    Acute post-thoracotomy pain

No changes since FY2016 — additions, deletions, description changes and billable-status changes are tracked through FY2027 (effective October 1, 2026), and none are recorded for this code. Note changes are tracked from FY2027 only.

Nearest Codes in This Family

Official ICD-10-CM classifications closest to G89.12 in its code family, with their registry titles.

View all codes in the G89 family