IV.N
Ambulatory surgery
For ambulatory surgery, code the diagnosis for which the surgery was performed. If the postoperative diagnosis is known to be different from the preoperative diagnosis at the time the diagnosis is confirmed, select the postoperative diagnosis for coding, since it is the most definitive.
ICD-10-CM Official Guidelines for Coding and Reporting, FY 2026 (effective October 1, 2025). Published by CMS and NCHS. Reproduced for reference — always verify against the official CMS release.