Receipts

Validation and Rule Registry

23 worked examples from the deterministic coding engine behind the AI Op Note Assistant: the scenario, the expected codes, the live tool output, and the rule that decided it. Every example on this page is passing, generated by running the shipped engine at build time, not hand written.

The rule registry

The load bearing rules behind the tools, each with its source, effective year, and the tests that guard it. When a page and this registry ever disagree, report it; the registry wins until corrected.

R-G2211-M25: G2211 and modifier 252026

Medicare does not pay G2211 when the office visit is reported with modifier 25 for a same day minor procedure; the restriction attaches to the visit, not the procedure. Preventive service exceptions (such as the AWV day) apply per CMS.

SourceCMS MPFS final rule policy, 2024 onward
Guarded byengine pins; battery em_proc cases
R-G0289: Chondroplasty with meniscectomy2026

29877 is not reported with 29881 in the same knee; since 2020 the 29880/29881 descriptors include chondroplasty in any compartment. For Medicare, G0289 with 29880/29881 covers ONLY loose or foreign body removal from a different compartment, never chondroplasty (the NCCI manual controls over the older G0289 descriptor text).

SourceCMS NCCI Policy Manual 2026, Chapter IV; CPT 2020 descriptor revision
Guarded byop engine scenarios; battery op cases
R-PROLONG: Prolonged services thresholds2026

CPT 99417 starts from the minimum time of the top code (55 total minutes with 99215; 75 with 99205). Medicare G2212 starts from the maximum (69 with 99215; 89 with 99205). Never interchangeable.

SourceAMA CPT E/M guidance; CMS G2212 policy
Guarded byengine timeLevel pins
R-POSTOP: Global period visits2026

Routine postoperative care is 99024. A related complication managed without a return to the operating room is included (Medicare). A related return to the operating room is the procedure with modifier 78. Unrelated E/M takes modifier 24; unrelated procedures take modifier 79. The decision for major surgery takes modifier 57.

SourceCMS Claims Processing Manual ch. 12
Guarded byengine global pins; battery postop cases
R-M25-LEGS: Modifier 25, same problem pathway2026

Work beyond the procedure supports modifier 25 through documented legs: independent interpretation of an outside study (named), prescription management separate from the procedure (never the injected agent), comorbidity evaluation altering management, or referrals and orders placed that day. Each documented leg is evidence, and the whole encounter must meet the CMS standard of a significant, separately identifiable E/M beyond the work of deciding on and performing the procedure; the tool lists every documented leg so a reviewer can weigh them. When the two diagnosis and beyond work pathways both apply, code the higher; on a tie use two diagnoses.

SourceAMA CPT modifier 25 guidance; site doctrine
Guarded by34 permutation pins; battery em_mod25 cases
R-COUNSEL-ONLY: Counseled habits and the visit level2026

A problem whose entire management is codable counseling (nicotine dependence with 99406/99407; obesity with G0447) never carries the E/M level; its credit is the counseling code. Counting it twice is the audit pattern.

SourceCPT counseling code definitions; MDM framework
Guarded byengine backstop pins; battery em_smoking cases
R-99406: Smoking cessation minutes2026

99406 requires MORE than 3 minutes (up to 10); 99407 more than 10. Exactly 3 minutes does not code. Obesity counseling G0447 requires 15 or more; advance care planning 99497 requires 16 or more.

SourceCPT descriptors
Guarded bythreshold pins; battery counseling cases
R-ONE-TEST: One test, one credit2026

A test the clinician orders counts once, as an ordered test; it never also counts as an independent interpretation. Independent interpretation is reserved for a study performed or ordered elsewhere, personally read and documented, and not separately reported.

SourceAMA MDM data column guidance
Guarded byengine data pins; battery em_own_order_trap
R-TWO-STABLE: Problems column2026

Two or more stable chronic conditions addressed reach moderate (level 4 tier), as does one chronic condition with exacerbation or an undiagnosed new problem with uncertain prognosis. OTC only management is low risk; prescription drug management is moderate; intensive toxicity monitoring is high.

SourceAMA MDM table
Guarded byreferee sweep; core pins
The bottom line
Generated by running the shipped engine at build time; these cannot drift from the tool.

The engines behind these tools pass tens of thousands of automated checks on every build: thousands of generated office visit encounters cross validated against an separately implemented internal reference engine, plus operative scenarios spanning more than 200 procedures. Bundling logic follows the CMS NCCI Policy Manual 2026 and CPT guidance; commercial payer rules may vary. See also the public What changed log.

Operative note examples

Knee scope, chondroplasty includedPASS

Partial medial meniscectomy plus patellofemoral chondroplasty, both compartments documented.

Expected29881-RT
Tool output29881-RT (6.85 wRVU)

Per CMS NCCI 2026, 29877 is not reported with knee arthroscopy codes 29866 to 29889; since 2020, 29880 and 29881 include chondroplasty in the same or a separate compartment. Medicare G0289 applies only to loose or foreign body removal from a different compartment. Payer specific: some commercial plans differ.

ACL with meniscectomy and chondroplastyPASS

ACL reconstruction, medial meniscectomy, chondroplasty.

Expected29888-LT + 29881-LT/51
Tool output29888-LT + 29881-LT/51 (20.79 wRVU)

Published NCCI guidance bundles chondroplasty into ACL reconstruction regardless of compartment; the meniscectomy stays with modifier 51.

Limited synovectomy rejectedPASS

Meniscectomy with limited synovectomy of the same knee.

Expected29881
Tool output29881 (6.85 wRVU)

NCCI: 29875 is a separate procedure code and is never reported with another arthroscopic procedure of the same knee.

Shoulder four-code casePASS

Cuff repair, biceps tenodesis, subacromial decompression, extensive debridement in a different area.

Expected29827-RT + 29828-RT/51 + 29826-RT + 29823-59/RT/51
Tool output29827-RT + 29828-RT/51 + 29826-RT + 29823-59/RT/51 (30.96 wRVU plus 1 to verify)

29826 is an add-on to cuff, claviculectomy, tenodesis, labral, and SLAP work; 29823 survives only with a documented different area of the same shoulder.

SLAP repair with decompressionPASS

SLAP repair plus subacromial decompression.

Expected29807-LT + 29826-LT
Tool output29807-LT + 29826-LT (17.23 wRVU)

The decompression add-on attaches to SLAP repair and never takes modifier 51.

Trimalleolar ankle fracturePASS

Note documents fixation of all three malleoli.

Expected27822-RT
Tool output27822-RT (value to verify)

Exclusive family: the trimalleolar code replaces the bimalleolar code rather than stacking with it.

Peritrochanteric femur, IM nailPASS

Cephalomedullary nail for an intertrochanteric fracture.

Expected27245-LT
Tool output27245-LT (17.73 wRVU)

Single fracture fixation code, valued at 17.73 from the 2026 file.

Total knee arthroplastyPASS

Primary TKA.

Expected27447-RT
Tool output27447-RT (19.11 wRVU)

Valued at 19.11, the 2026 figure; hip and knee primaries were equalized in the 2021 revaluation.

Revision THA, both componentsPASS

Acetabular and femoral component revision.

Expected27134-LT
Tool output27134-LT (29.52 wRVU)

Both-component revision is a single code at 29.52, not two codes.

Femoral neck fracture, hemiarthroplastyPASS

Displaced femoral neck fracture treated with hemiarthroplasty.

Expected27236-LT
Tool output27236-LT (14.76 wRVU)

One code covers open reduction or prosthetic replacement of the femoral neck; the 2026 file values it at 14.76.

Two scopes, one sessionPASS

Colonoscopy with biopsy plus EGD with biopsy.

Expected45380 + 43239-51
Tool output45380 + 43239-51 (5.80 wRVU)

Different endoscopic families in one session are each reportable; the lesser-valued scope takes modifier 51.

Bilateral endoscopic carpal tunnelPASS

Endoscopic release, both wrists; open code also mentioned.

Expected29848-50
Tool output29848-50 (value to verify)

The endoscopic code excludes the open code for the same release, and bilateral surgery takes modifier 50 with 150 percent credit.

Two-level ACDF, full stackPASS

ACDF at two interspaces with plate, cage, and structural allograft.

Expected22551 + 22845 + 22552 + 22853 + 20931
Tool output22551 + 22845 + 22552 + 22853 + 20931 (48.09 wRVU)

Add-ons stack on the primary in value order and never take modifier 51; the set totals 48.09 wRVU.

Hardware removal, deep versus superficialPASS

Removal of a deep plate and screws from a healed fracture.

Expected20680-LT
Tool output20680-LT (5.81 wRVU)

Deep implant removal is 20680 at 5.81; a superficial pin or wire is 20670 at 1.79. One code per fracture site regardless of the number of screws, and a staged removal planned at the index surgery takes modifier 58.

Coding logic validated; wRVU value pending official fee schedule verification

Lap chole with cholangiogramPASS

Cholecystectomy with intraoperative cholangiography.

Expected47563
Tool output47563 (11.18 wRVU)

The cholangiogram upgrades the code rather than adding one; valued at 11.18 from the 2026 file; the plain chole is 10.21, so documenting the cholangiogram is worth about one wRVU.

Ventral hernia, current familyPASS

Open ventral hernia repair with mesh placement.

Expected49591
Tool output49591 (value to verify)

The 2023 CPT revision deleted 49560 to 49590 and mesh add-on 49568. The current family is 49591 to 49596 for initial repairs, sized by defect, with 49613 to 49618 for recurrent; mesh is included when performed.

Office visit examples

99213 vs 99214, the borderlinePASS

One stable chronic problem on a continued prescription, nothing else.

Expected99213
Tool output99213

Two of three columns set the level and the second highest here is low: one stable chronic problem is low complexity even with prescription management at moderate risk.

Two stable chronics plus prescriptionsPASS

Hypertension and diabetes, both stable, both medications continued after review.

Expected99214 + G2211
Tool output99214 + G2211

Two or more stable chronic conditions reach moderate problem complexity; with prescription management this is a defensible level 4, and the stated return plan adds G2211.

G2211 blocked by a same day procedurePASS

Knee injection today plus diabetes managed separately.

Expected99214-25 + 20610
Tool output99214-25 + 20610

A modifier 25 procedure day excludes G2211 on ordinary visits; the level rests only on the diabetes because assessing the injected joint is part of the injection. CMS preventive service exceptions such as the AWV are the carve out.

Procedure only, no separate visitPASS

Patient returns solely for the planned injection.

Expected20610
Tool output20610

The only documented problem is the one treated by the procedure, so no separate E/M was coded; distinct work on a different problem is what earns modifier 25.

Time beats MDMPASS

Simple stable problem, but 33 documented minutes of counseling and education.

Expected99214
Tool output99214

MDM alone supports only a low level, but 30 to 39 documented total minutes supports 99214 on time; one sentence with real minutes changes the level.

Hospitalization consideration lifts to level 5PASS

Suspected giant cell arteritis with transient vision loss; urgent workup; hospitalization considered.

Expected99205
Tool output99205

High problem complexity plus high risk once hospitalization is considered and documented; without that sentence the same chart is an airtight 99204.

Try it on a real case in the AI Op Note Assistant. De-identified notes only.
PreviousGlossary