There is no single ICD-10 code for thoracic surgery as a whole. The right code will be dependent on the condition, process and reason for the visit.

Thoracic surgery is performed on the lungs, pleura, esophagus, mediastinum or chest wall. The diagnosis and encounter data are coded in ICD-10-CM. Applicable inpatient operations are reported using ICD-10-PCS.

Because thoracic surgery covers many different procedures and conditions, a general reference to “thoracic surgery” is not enough to determine the correct code. The medical record must provide the specific details needed for accurate coding.

Is There an ICD-10 Code for Thoracic Surgery?

There is no single ICD-10-CM code that captures thoracic surgery as a whole. Thoracic surgery is the name given to a large collection of operations performed inside the chest. The correct diagnostic code is based on what the physician documents as the ailment and the procedure code is based on what was done.

For example, a thoracic operation could involve treatment of:

  • Lung cancer
  • Pneumothorax
  • Pleural disease
  • Esophageal disease
  • Chest wall conditions
  • Thoracic vascular conditions
  • Other documented disorders involving structures within the chest

The operation itself may be reported using ICD-10-PCS when performed during an applicable inpatient hospital stay.

CMS’s FY2026 MS-DRG materials classify Major Chest Procedures separately within the respiratory-system section, while other thoracic procedures fall into other respiratory or circulatory surgical categories depending on the procedure.

A quick way to look at the coding

A Quick Way to Look at Thoracic Surgery Coding
Start with what the encounter is actually reporting.
Situation Coding Consideration
Underlying Thoracic Disease Use the ICD-10-CM diagnosis code that matches the provider’s documented condition.
Inpatient Thoracic Operation Report the applicable ICD-10-PCS procedure code based on the documented operative details.
Postoperative Surgical Care Apply appropriate aftercare coding when the encounter meets the applicable requirements.
Previous Surgery or Device Status Use an applicable status code when the patient’s previous surgery or device is documented and relevant.
Surgical Complication Code the documented complication according to the applicable coding guidelines.
Surveillance After Completed Treatment Follow-up coding may apply when the encounter meets the requirements for surveillance after treatment.
Start with the purpose of the encounter and the provider’s documentation.

The phrase “thoracic surgery” by itself does not establish the diagnosis or the exact procedure.

ICD-10-CM vs. ICD-10-PCS for Thoracic Surgery

Before selecting a code, determine what type of information the record needs to communicate.

ICD-10-CM reports the diagnosis and encounter

ICD-10-CM is used to report diagnoses and other circumstances surrounding the patient’s encounter. For a thoracic surgery patient, this could include the condition that led to surgery, an aftercare encounter, a postsurgical status, or a documented postoperative complication.

The diagnosis should come from the provider’s documentation. A procedure should not be used as a substitute for a diagnosis that has not been documented.

ICD-10-PCS reports applicable inpatient procedures

ICD-10-PCS is used to report procedures performed during an inpatient hospital stay.

Thoracic procedures are spread across different PCS categories. CMS’s FY2026 materials include major chest procedures and other respiratory-system operating-room procedures, with codes covering procedures involving structures such as the lungs, pleura, mediastinum, thoracic duct, and other chest structures.

The exact PCS code depends on the operative details. That means “thoracic surgery” is not enough information to assign an ICD-10-PCS code.

Common Types of Thoracic Surgery

Thoracic surgery covers a wide range of procedures. The coding approach changes according to the structure treated and the operation performed.

Lung surgery

Thoracic surgeons may perform procedures involving a lung or part of a lung. Examples include:

  • Lobectomy
  • Pneumonectomy
  • Wedge resection
  • Segmentectomy
  • Other lung resections

The ICD-10-PCS code depends on what was removed or otherwise treated and how the procedure was performed.

For example, a lung resection should not be assigned a generic “thoracic surgery” code. The operative report needs to establish the specific procedure and relevant PCS details.

Pleural surgery

Procedures involving the pleura may be performed for conditions such as pneumothorax, pleural effusion, empyema, or other documented pleural disorders.

The coding depends on the actual procedure. Drainage, excision, resection, destruction, and other procedures have different coding considerations.

Mediastinal surgery

The mediastinum contains several structures, including lymph nodes, thymic tissue, and other tissues located between the lungs.

Thoracic procedures may involve biopsy, excision, drainage, or removal of a mediastinal structure.

CMS’s FY2026 PCS materials contain procedures involving structures such as the thymus and other mediastinal tissues.

Esophageal surgery

Some thoracic surgical procedures involve the esophagus, particularly when treatment requires an operation within the thorax.

The diagnosis and procedure should be coded from the documentation rather than assuming that every esophageal operation belongs to one general thoracic surgery category.

Chest wall surgery

Thoracic surgeons may also perform procedures involving the chest wall, including procedures for tumors, deformities, trauma, or other documented conditions.

Again, the procedure performed determines the applicable PCS coding pathway.

Common ICD-10-CM Coding Situations After Thoracic Surgery

The appropriate ICD-10-CM code after thoracic surgery depends on the reason for the current encounter.

Postoperative aftercare

Aftercare coding may be appropriate when the patient is receiving continued care during the healing or recovery period.

CMS’s FY2026 Official Guidelines explain that aftercare codes are used for encounters involving continued care during the healing or recovery phase. They also distinguish aftercare from follow-up coding, which applies after completed treatment when the condition has been fully treated.

The specific aftercare code should be selected based on the type of surgery and encounter rather than assuming that all thoracic surgery follow-ups use one code.

Follow-up after completed treatment

A later surveillance visit is not automatically the same as postoperative aftercare.

CMS explains that follow-up codes describe continuing surveillance after completed treatment and should not be confused with aftercare codes.

For example, a patient who has completed treatment for a thoracic malignancy and returns for surveillance may have a different coding situation from a patient who is still receiving routine postoperative recovery care.

Postsurgical status

Some patients have a lasting status following surgery or an implanted device. An applicable status code may provide additional information when supported by the record.

The status code should describe what is actually present rather than simply repeating the name of a previous operation.

How ICD-10-PCS Coding Works for Thoracic Procedures

ICD-10-PCS uses a structured seven-character system. The details documented in the operative report determine the final code.

Depending on the procedure, the coder may need to identify:

  • Body part
  • Root operation
  • Approach
  • Device
  • Qualifier
  • Other required PCS characters

This is why the operative report matters so much in thoracic surgery coding.

Why Procedure Details Matter in PCS Coding
Example 01
Lung Resection
Documentation should identify:
• Specific lung portion removed
• Surgical approach
• Root operation
• Other required PCS details
Example 02
Pleural Procedure
The procedure may involve:
• Drainage
• Excision
• Destruction
• Another applicable root operation
Procedure Name Alone Complete PCS Code

What Documentation Supports Thoracic Surgery Coding?

A strong operative note gives the coding team enough information to understand exactly what occurred.

For thoracic procedures, the record should clearly state the diagnosis and procedure. It may also need details such as the exact body part, laterality, surgical approach, device, graft, or specimen. These details help support accurate code selection. 

Watch for vague documentation

Consider these two statements:

Less specific:

“Thoracic surgery performed for lung lesion.”

This identifies a general reason for surgery but does not necessarily provide enough detail to determine the diagnosis or exact procedure.

More useful:

“Right upper lobectomy performed for documented malignant neoplasm of the right upper lobe.”

The second example gives the coding team substantially more information.

The diagnosis still needs to be supported by the provider’s documentation, and the procedure must be coded from the operative details.

Thoracic Surgery Coding Examples
Example 01
Lung Cancer Surgery
Diagnosis: ICD-10-CM
|Procedure: ICD-10-PCS when applicable
Example 02
Pneumothorax Surgery
Diagnosis: Documented pneumothorax
|Procedure: ICD-10-PCS when applicable
Example 03
Postoperative Visit
Focus: Determine whether applicable aftercare requirements are met.
Example 04
Postoperative Complication
Focus: Code the specific documented complication according to applicable guidelines.

Common Thoracic Surgery Coding Mistakes

Treating thoracic surgery as a diagnosis

Thoracic surgery describes a category of operations. It does not, by itself, establish the disease being treated.

Using one procedure code for all thoracic operations

A lung resection, pleural drainage, mediastinal excision, and esophageal procedure are not interchangeable.

The exact procedure determines the ICD-10-PCS pathway.

Confusing aftercare with follow-up

A patient still recovering from surgery may have an aftercare encounter. A patient returning for surveillance after completed treatment may have a follow-up encounter.

CMS explicitly separates these concepts.

Coding from the surgical history alone

A history of thoracic surgery does not mean the same procedure should be reported on every subsequent encounter.

The current reason for the visit determines the applicable coding.

Assuming the diagnosis from the procedure

A lobectomy does not automatically establish a particular cancer diagnosis. The diagnosis must be documented by the provider.

Likewise, thoracic surgery for a lung lesion does not necessarily establish malignancy unless the record supports that diagnosis.

Choosing an ICD-10-PCS code without reviewing the operative report

Thoracic PCS codes often require details that are not contained in a brief procedure name.

The operative report should be reviewed when the available documentation does not provide the details needed for accurate code assignment.

How Providers Can Make Thoracic Surgery Coding Clearer

For physicians and thoracic surgery practices, the most useful documentation separates why the patient needs treatment from what procedure was performed.

A good surgical record should make the diagnosis and procedure clear. The documentation mau include the anatomical site, laterality, approach, device or graft and other details of the procedure when relevant and required by the coding system. 

Postoperative notes should clearly state the reason for the encounter.

For example, instead of:

“Follow-up after thoracic surgery.”

a more useful note may identify whether the patient is receiving routine postoperative care, being evaluated for a documented complication, or returning for surveillance after completed treatment.

That distinction gives the coding team a clearer basis for code selection.

Medical Coding Support
Need Help With Thoracic Surgery Coding?
Get support reviewing diagnoses, procedures, postoperative care, and documented complications against current coding requirements.
Review the record. Clarify the documentation. Support accurate coding.

Frequently Asked Questions

Is there one ICD-10 code for thoracic surgery?

No you cannot use one ICD-10 code for thoracic surgery, using the accurate ICD-10-CM diagnosis code depends on the or ICD-10-PCS procedure code depends on what was documented and what is being reported.

Is thoracic surgery coded with ICD-10-CM or ICD-10-PCS?

Both systems may be involved. ICD-10-CM is used for applicable diagnoses and encounter circumstances, while ICD-10-PCS is used for applicable inpatient hospital procedures.

What is the ICD-10 code for lung surgery?

There is no single ICD-10-CM code for “lung surgery.” The diagnosis depends on the condition being treated, while an applicable inpatient lung procedure is coded using ICD-10-PCS based on the specific operation and operative details.

Does a thoracic surgery follow-up use an aftercare code?

It may, depending on the reason for the encounter and whether the patient is still receiving postoperative care. Aftercare should not automatically be treated as follow-up surveillance. CMS’s FY2026 guidelines distinguish the two.

Does thoracic surgery automatically mean lung cancer?

No. Thoracic surgery may be performed for many conditions, including malignant and nonmalignant disorders. A cancer diagnosis should only be coded when the provider’s documentation supports it.

What documentation is needed for thoracic surgery coding?

The record should clearly identify the diagnosis and the procedure performed. For ICD-10-PCS, the operative documentation may also need to establish details such as the body part, root operation, approach, device, and other required elements.

Are thoracic and cardiac surgery coded the same way?

Not necessarily. Both may involve structures in the chest, but the underlying diagnosis and exact procedure determine the applicable code. Cardiac procedures may fall within circulatory-system PCS categories, while many major chest procedures are classified under respiratory-system surgical groupings. CMS’s FY2026 materials separately identify these procedure categories.