AI for Coding Modifiers: A Worked Example With Modifier 25, 59 and XU
Modifiers cause a lot of denials. They're small, they're easy to get wrong, and the rules for them sit in three different places: CPT, the NCCI edit tables, and each payer's own policies. So it makes sense to ask whether AI can take some of the load.
It can, but only for part of the job. A general AI assistant like ChatGPT or Claude is a good thinking partner. It can walk you through the modifier 25 questions, lay out the 59-versus-XU logic, and draft a provider query in a few seconds. What it can't do is check the live NCCI tables, read your payer's policy, or confirm that the note actually supports the modifier. Those parts stay with you and your edit checker.
The easiest way to see where that line falls is to work through a real-looking claim, one step at a time. That's what this guide does. For the wider picture beyond modifiers, start with our hub on AI for medical coding.
Medical Coding with AI (Without the Compliance Risk): Use AI as a second set of eyes on your coding, without letting it make the call.
See the courseThe short answer: can AI help choose modifiers?
Yes, as long as it's helping you choose and not choosing for you. Here's how the work splits:
What a general AI assistant does well
- Explains what a modifier means and when it applies, in plain English
- Walks through the three modifier 25 questions
- Lays out why CMS wants XE, XS, XP or XU used instead of 59 when one of them fits
- Drafts provider queries, internal notes and appeal letters
- Reads a de-identified scenario and points out what's missing from the documentation
What it can't do
- Check current NCCI procedure-to-procedure (PTP) edits or modifier indicators. Those change every quarter.
- Know your commercial payer's modifier policy
- Confirm that the record supports the modifier
- Take responsibility for the claim
That last point matters most. The coder makes the final call, checked against the edit tables.
Before you start: keep patient details out
Don't paste patient notes into an AI assistant unless your organization has a business associate agreement (BAA) with the vendor and you're using the version that agreement covers.
- OpenAI
- offers BAAs for its API, sales-managed ChatGPT Enterprise and Edu, ChatGPT for Healthcare, and ChatGPT for Clinicians (verified US clinicians only). ChatGPT Business isn't eligible, and Free, Plus and Pro aren't on OpenAI's list of HIPAA-eligible products.
- Anthropic
- offers a BAA covering its first-party API and Claude Enterprise once HIPAA is enabled in the organization's settings. Some features are excluded, so check the list.
If you're not sure what your organization has in place, assume you're not covered. Strip out names, dates of birth, record numbers, dates of service and anything else that could identify the patient. Describe the visit in general terms instead. Every prompt in this guide is written to work that way.
AI can help you code. It can't sign off for you.
This course shows you how to use AI to look up codes, check documentation against guidelines, and spot missed modifiers, while keeping you, the coder, firmly in charge of every final decision.
The worked example
Here's the visit we'll code:
An established patient comes in for a scheduled knee injection for osteoarthritis. During the visit, she also mentions a new problem: two weeks of worsening shortness of breath. The physician takes a history, examines her heart and lungs, orders a chest X-ray, and changes one of her medications. The physician then does the knee injection as planned. Separately, on the same day, a second procedure is done on a different part of the body, and your claim scrubber flags it as a bundled pair with the injection.
That gives us two modifier questions:
- Does the E/M visit get modifier 25?
- For the flagged procedure pair, is 59 right, or should it be XS, XU or something else?
Step 1: Ask AI to frame the modifier 25 question
Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.
Start by giving the assistant a de-identified summary and asking it to work through the modifier 25 test. CPT, maintained by the AMA, reserves modifier 25 for a separately identifiable E/M on the same day as a procedure, and coders commonly check that with three questions:
- Is there enough medical decision-making or time documented to support a problem-oriented E/M?
- Could that work stand on its own as a billable service?
- Did it go beyond the usual pre- and post-procedure work for the procedure?
Here's a prompt you can copy:
I'm a medical coder. Don't decide the code for me. Help me think it through. Below is a de-identified summary of a same-day visit: - Scheduled procedure: [procedure, e.g. knee joint injection] - Reason for the procedure: [diagnosis] - Separate problem addressed: [new problem and what the provider did, e.g. history, exam, tests ordered, medication change] - What's documented for the separate problem: [short summary of the documentation] Use only this summary. Walk me through these three questions for modifier 25: 1. Is there enough medical decision-making or time documented for a problem-oriented E/M? 2. Could that work stand alone as a billable service? 3. Did it go beyond the usual pre- and post-procedure work? Answer in a table, one row per question, with these columns: Question | What supports a yes | What's missing or unclear | What I'd need to see in the note to be confident. Write "Not found" where my summary gives you nothing, and flag anything ambiguous instead of guessing. After the table, add up to three sentences on documentation risks, such as pre-procedure work being counted toward the E/M level. Keep it under 250 words.
For our visit, a good answer will point out that the shortness of breath is a new, unrelated problem. The physician took a history, examined the patient, ordered an X-ray and changed a medication. None of that is part of the usual work for a knee injection, and it would be a billable visit on its own. So the summary supports modifier 25 on the E/M.
A good answer will also tell you what to check. Is the medical decision-making for the breathing problem actually written down, or only implied? Is the knee assessment kept separate, so that pre-injection work isn't being counted toward the E/M level? That's where the assistant earns its keep: it shows you the gaps you need to look for.
Step 2: Check the note yourself
Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.
Now go back to the actual record. AI only saw your summary, so it can't tell you whether the documentation really says what you described. Look for:
- A clear assessment and plan for the separate problem
- Medical decision-making or time that supports the E/M level you're choosing
- Knee work that isn't being counted twice
If the note is thin, query the provider. AI is good at drafting the query:
Draft a short, neutral provider query using only the details below. Don't lead the provider toward any answer, suggest a code, or mention payment. - Same-day services: [procedure] and an E/M for [separate problem] - What the note documents: [what is documented] - What isn't clear: [what is missing, e.g. the assessment and plan for the separate problem] Ask the provider to clarify the documentation for the separate problem, if appropriate, using an open-ended question. Don't invent clinical details. If my details are too vague to write a fair question, tell me what's missing instead of guessing. Keep it under 120 words, in a professional tone, as plain text ready to send.
Read the draft before you send it. Make sure it asks a question and doesn't push for a particular answer.
Step 3: Ask AI to explain 59 vs XU (and the other X modifiers)
Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.
Now the flagged procedure pair. This is the part where coders most often reach for modifier 59 out of habit, and it's also where CMS is strictest.
CMS's booklet on modifiers 59, XE, XP, XS and XU (MLN1783722), together with the CMS instruction that created the X modifiers (Change Request 8863), sets out the rules:
- Use 59 only when no more specific modifier fits.
- The four X modifiers are more specific versions of 59:
- XE: separate encounter
- XS: separate structure (a different organ or anatomic site)
- XP: separate practitioner
- XU: unusual non-overlapping service (doesn't overlap the usual parts of the main service)
- Don't use 59 or XU just because the two codes have different descriptions.
- Never use them just to get past an edit. The record has to support them.
- Don't put 59 and an X modifier on the same line.
- For some high-risk codes, CMS may require an X modifier instead of 59.
So for "59 vs XU," the question isn't which one is safer. It's which one actually describes what happened. XU is for services that are distinct because they don't overlap. If the real reason they're distinct is a different site, a separate session or a different provider, then XS, XE or XP fits better.
Here's a prompt to work through it:
I'm a coder working on a Medicare claim. Don't pick the modifier for me. Help me reason through it. Two procedures on the same date of service, flagged as a PTP pair by my scrubber (de-identified): - Column 1 procedure: [description] - Column 2 procedure: [description] - Modifier indicator shown in my edit checker: [0, 1 or 9] - What makes them separate, according to the documentation: [e.g. different anatomic site, separate session, different provider, no overlap in the work] Use only these details and CMS's guidance on modifiers 59, XE, XS, XP and XU. Work from the indicator I've given; don't supply your own. Write "Not found" for anything I haven't told you, and flag anything unclear instead of guessing. 1. If the indicator is 0 or 9, tell me what that means for using any modifier here. 2. If it's 1, explain which modifier best describes the distinction I've given and why. 3. Explain why 59 or XU would or wouldn't be the better choice. 4. List what the documentation needs to show to support the modifier. Remind me of anything I need to verify in the current NCCI tables or my payer's policy. Format: numbered answers matching the points above, then a short "Verify before billing" checklist. Keep it under 300 words.
In our example, the second procedure was done on a different part of the body. A good answer will steer you toward XS (separate structure), not 59 or XU, as long as the documentation clearly shows the different site and your edit checker allows a modifier for the pair.
Step 4: Check the modifier indicator (AI can't do this part)
Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.
Whether any modifier can get past a PTP edit depends on the pair's modifier indicator in the NCCI tables:
| Indicator | What it means |
|---|---|
| 0 | No modifier allowed. The pair can't be billed together, whatever modifier you use. |
| 1 | A modifier is allowed, when it's clinically appropriate and documented. |
| 9 | Modifier use isn't specified for this pair. |
General AI assistants don't look these up in real time, and the tables change every quarter. If you ask ChatGPT what the indicator is for a code pair, it may give you a confident answer that's out of date or simply wrong. Look up the indicator in a current source: the CMS NCCI tables or an edit checker built on them.
If the indicator is 0, stop. No modifier fixes it, and adding one anyway is exactly what CMS means by using a modifier to get around an edit.
Step 5: Check the payer's policy
Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.
Everything above is the Medicare and Medicaid view. Commercial payers can set their own rules. Moda Health, for example, publishes its own policy on 59 and the X modifiers. Some payers accept X modifiers and some don't. Some want 59 in situations where Medicare would want an X modifier. Those policies change too, so it's worth learning how to track payer policy updates with AI.
AI can help you read a policy once you have it. Paste in the public policy text (it has no patient information) and ask:
Here is a commercial payer's published policy on modifiers 59 and XE, XS, XP and XU:
[paste policy text, including page numbers and section headings if it has them]
Use only this policy text. Summarize in plain language, in a table with these columns: Question | Answer | Exact policy wording | Page and section.
1. Does this payer accept the X modifiers, 59, or both?
2. When does it want each one?
3. What documentation does it say it expects?
4. Where does it differ from CMS's guidance?
Quote the exact policy wording for each point so I can check it. If the policy doesn't address a point, write "Not found". Flag any wording that's ambiguous instead of interpreting it. For point 4, label anything you say about CMS's guidance as general background, since it isn't in the pasted text.Asking for quotes makes the answer easy to check against the source. Don't skip that check.
Step 6: Scrub and document
Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.
Run the claim through your scrubber. Then leave a short internal note saying why you chose each modifier, so the next person (or an auditor) can follow your reasoning. AI can tidy the note up for you:
Turn these coder notes into a short, clear internal note explaining why I chose these modifiers. Don't add any facts I haven't given you. E/M with modifier 25: [your reasoning] [Procedure] with modifier [XS/XE/XP/XU/59]: [your reasoning, including the modifier indicator and what the documentation shows] Payer policy checked: [payer and policy name] Format: a short heading for each modifier with two or three plain sentences under it, then a "Payer policy" line. Keep it under 150 words. If any item above is blank, write "Not found" for it. If my reasoning is unclear or seems to contradict itself, flag it at the end instead of smoothing it over.
For our visit, the finished claim has modifier 25 on the E/M and XS on the flagged procedure. Each choice is backed by the note, the current indicator and the payer's rules, and AI didn't make either one.
Specialist tools that handle the lookups
If you want help with the parts a general assistant can't do, these tools work from coding content and edit tables. Our tool pages compare them in detail.
- Codify by AAPC: A subscription lookup tool for coders. Its NCCI edits checker color-codes pairs and shows when a modifier may be appropriate. It also has crosswalks between codes and modifiers, a CMS-1500 scrubber, and an AI assistant, Codie, that helps with coding questions.
- Optum EncoderPro.com: Optum's online code lookup for practices, with NCCI edit content and an edit review that checks for correct modifiers before you submit.
- Solventum 360 Encompass Autonomous Coding: An autonomous coding platform for revenue cycle and HIM teams. It combines AI models with rule-based criteria and sends visits that don't meet its automation criteria to a human coder.
- Fathom: Automates professional and facility coding for health systems, physician groups and RCM vendors.
Frequently asked questions about AI for Coding Modifiers
Can AI choose coding modifiers for me?
It can suggest one and explain why, but it shouldn't make the final call. General AI assistants don't check current NCCI edits or payer policies, and they can't see whether the documentation supports the modifier. Use AI to think it through, then confirm with your edit checker and the record.
What are the modifier 25 questions?
Coders commonly check three, based on CPT's rule (from the AMA) that the E/M must be separately identifiable. Is there enough medical decision-making or time documented for a problem-oriented E/M? Could that work stand on its own as a billable service? Did it go beyond the usual pre- and post-procedure work? If the answer to all three is yes and the note shows it, modifier 25 is likely to be appropriate.
Should I use modifier 59 or XU?
Use whichever one actually describes the situation, and CMS says to use 59 only when no more specific modifier fits. XU is for services that are distinct because they don't overlap the usual parts of the main service. If the real reason is a different site, a separate encounter or a different practitioner, use XS, XE or XP instead. Don't use either one just because the codes have different descriptions.
Can I put 59 and an X modifier on the same line?
No. Use one or the other. CMS treats putting both on the same line as incorrect.
What does an NCCI modifier indicator of 0, 1 or 9 mean?
0 means no modifier is allowed, so the pair can't be billed together. 1 means a modifier is allowed when it's appropriate and documented. 9 means modifier use isn't specified for the pair. Always check the current tables, because edits change every quarter.
Is it safe to paste patient notes into ChatGPT?
Not into ChatGPT Free, Plus or Pro, which aren't on OpenAI's list of HIPAA-eligible products, or ChatGPT Business, which isn't eligible for a BAA. OpenAI offers BAAs for its API, sales-managed ChatGPT Enterprise and Edu, ChatGPT for Healthcare and ChatGPT for Clinicians. Anthropic offers one for its API and Claude Enterprise once HIPAA is enabled. Without a BAA in place, use de-identified summaries only.
Do commercial payers follow the same modifier rules as Medicare?
Not always. Many publish their own modifier policies, and some handle 59 and the X modifiers differently from CMS. Check the payer's policy before you submit.
Code with more confidence, and stay compliant
Medical Coding with AI shows you where AI fits in coding work and where it doesn't belong. It covers:
- Using AI to research ICD-10-CM, CPT and HCPCS codes
- Checking documentation for gaps before you assign codes
- Catching modifier and bundling issues
- Why AI suggestions can be wrong, and how to verify them against official sources
- Compliance risks, including upcoding, and how to avoid them
$19.99 a month after a 3-day free trial. Cancel anytime.
Sources
Checked 2026-11-29.
- CMS, Proper Use of Modifiers 59, XE, XP, XS & XU (MLN1783722): https://www.cms.gov/files/document/mln1783722-proper-use-modifiers-59-xe-xp-xs-xu.pdf
- CMS, Specific Modifiers for Distinct Procedural Services (Transmittal 1422, Change Request 8863): https://www.cms.gov/regulations-and-guidance/guidance/transmittals/downloads/r1422otn.pdf
- CMS, National Correct Coding Initiative (NCCI) Edits: https://www.cms.gov/medicare/coding-billing/national-correct-coding-initiative-ncci-edits
- CMS, Medicare NCCI Procedure to Procedure (PTP) Edits: https://www.cms.gov/medicare/coding-billing/national-correct-coding-initiative-ncci-edits/medicare-ncci-procedure-procedure-ptp-edits
- CMS, Medicare NCCI FAQ Library: https://www.cms.gov/medicare/coding-billing/national-correct-coding-initiative-ncci-edits/medicare-ncci-faq-library
- AMA, Sept. 4, 2026 National Advocacy Update (modifier 25): https://www.ama-assn.org/health-care-advocacy/advocacy-update/sept-4-2026-national-advocacy-update
- OpenAI, How can I get a Business Associate Agreement (BAA) with OpenAI?: https://help.openai.com/en/articles/8660679-how-can-i-get-a-business-associate-agreement-baa-with-openai
- OpenAI, HIPAA eligible products and functionality: https://help.openai.com/articles/20001069
- OpenAI, ChatGPT for Clinicians: https://help.openai.com/articles/20001202
- Anthropic, Business Associate Agreements (BAA) for commercial customers: https://privacy.claude.com/en/articles/8114513-business-associate-agreements-baa-for-commercial-customers
- Moda Health, Reimbursement Policy Manual (RPM027, Modifiers XE, XS, XP, XU, and 59): https://www.modahealth.com/oregon/provider/resources/moda-policies/moda-policy-manual
- AAPC, Codify features: https://www.aapc.com/codify/codify-features
- Optum, EncoderPro.com: https://www.optumcoding.com/online-coding/encoderpro-spotlight/
- Optum, EncoderPro.com product page: https://www.optumcoding.com/product/20510/
- Solventum, 360 Encompass Autonomous Coding System: https://www.solventum.com/en-us/home/health-information-technology/solutions/360-encompass-autonomous/
- Fathom: https://www.fathomhealth.com