Home › Guides › Medical Coding with AI (Without the Compliance Risk)

How to Use ChatGPT for Medical Coding (Safely and Usefully)

Using ChatGPT as a coding assistant, then checking every code Paper cutout scene. On the left, a clinical note with its identifying lines blacked out. In the middle, a short card of candidate codes with a small amber AI spark beside it. On the right, an open code book under a magnifying glass, with one candidate row ticked as verified.

ChatGPT can make a medical coder's day noticeably easier. It explains a confusing guideline in plain English, turns a messy note into a clean summary, drafts a provider query in seconds, and gives you a short list of candidate codes to look up. What it can't do is replace your code books, your encoder, or your judgment. It doesn't carry licensed, current CPT, NCCI, or payer-edit data, and its answers aren't authoritative.

So the honest answer to "Can I use ChatGPT for medical coding?" is yes, as a research and drafting assistant, with two firm rules: keep protected health information (PHI) out of any account that isn't covered by a Business Associate Agreement, and verify every code before it goes on a claim.

This guide walks you through how to set it up, what to ask, and how to check its work.

Medical Coding with AI (Without the Compliance Risk)

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 course

What ChatGPT is good at in medical coding (and what it isn't)

Before you start, it helps to know where the tool earns its keep.

Where it helps:

  • Explaining guideline concepts, like sequencing rules, "code also" notes, or when to use a combination code
  • Summarizing de-identified clinical notes so the key diagnoses and procedures stand out
  • Drafting queries to providers when documentation is unclear
  • Drafting appeal letters for denied claims
  • Suggesting candidate codes for you to research in your official sources

Where it falls short:

  • It doesn't have licensed, current CPT content, NCCI edits, MUEs, or payer-specific rules
  • It can produce a code that looks right but is outdated, too vague, or simply wrong
  • Its output isn't a substitute for the code set itself. The American Medical Association says so directly in its CPT AI licensing FAQ: "AI-generated outputs are not a substitute for CPT content."

You stay accountable for every code you submit. Think of ChatGPT as a sharp colleague who has read a lot but never checks the book. Useful to talk things through with, but you do the checking.

Checking whether an account is cleared for patient data Paper cutout illustration. On the left a locked patient record folder with a padlock. In the middle a signed agreement document with a round seal. On the right a checklist card where some rows are ticked and others are crossed out, showing which accounts are eligible. A small orange four-point spark sits beside the agreement.

Step 1: Check whether your ChatGPT account can handle PHI

Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.

This is the step that keeps you and your employer out of trouble, so do it first.

Under HIPAA, PHI (patient notes, demographics, claim details) can only go into an AI product covered by a Business Associate Agreement (BAA). For ChatGPT, that rules out most of the accounts people actually use.

Not eligible for PHI, according to OpenAI's HIPAA guide:

  • ChatGPT Free
  • ChatGPT Plus
  • ChatGPT Pro
  • ChatGPT Business

Eligible with a signed BAA, per OpenAI's list of HIPAA-eligible products:

  • ChatGPT for Healthcare
  • ChatGPT Enterprise with Regulated Workspace
  • ChatGPT for Clinicians
  • The OpenAI API with Modified Retention (the BAA must be signed before any PHI is sent)

Even inside a covered workspace, not every feature is covered. OpenAI excludes some, such as improved memory and event-triggered tasks, and notes that "features not listed here are not automatically covered under the BAA." If you're not sure whether a feature is covered, treat it as not covered.

The same pattern applies to other assistants. Anthropic, for example, covers only HIPAA-ready services, such as its API and Claude Enterprise once an owner accepts the BAA.

What to do: Ask your compliance officer or IT team which account you're on and whether it's covered by a BAA. If the answer is no, or you're using a personal account, never paste in anything that could identify a patient.

De-identifying a clinical note before pasting it Paper cutout illustration. On the left, a clinical note lies tilted with its identifying details (name, dates, ID numbers, photo, address) covered by dark redaction bars, and a marker pen rests across it. Small trimmed strips of identifiers lie cut away below. A blue arrow leads to a clean, rewritten scenario card on the right that keeps only neutral text bars, with a small amber spark beside it showing the AI works only from the de-identified version.

Step 2: De-identify anything you paste in

Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.

If your account isn't BAA-covered, you can still get a lot of value out of ChatGPT by working with de-identified or made-up scenarios.

Before pasting any clinical text, strip out:

  • Names, initials, and nicknames
  • Dates (birth, admission, discharge, service), other than the year where truly needed
  • Medical record, account, claim, and insurance ID numbers
  • Addresses, phone numbers, and email addresses
  • Facility and provider names
  • Anything else that could point to a specific person, like an unusual occupation or a rare event

A good habit: rewrite the scenario in your own words instead of pasting the note. "62-year-old with type 2 diabetes and stage 3 CKD seen for follow-up" gives ChatGPT everything it needs to explain the coding logic, and nothing that identifies anyone.

Also, don't paste CPT descriptors in bulk or upload code files. The AMA says any use of CPT content needs a license and specifically prohibits uploading the CPT data file into public AI systems.

Checking a plain-English guideline explanation against the official guidelines Paper cutout illustration. On the left, a slightly tilted white explanation card has three numbered blocks of text bars, with a small amber spark beside it to show the AI drafted it. A dotted line runs from the card's middle block to a highlighted section in an open guideline book on the right, where a magnifying glass sits over the highlighted passage and a small check badge confirms the match.

Step 3: Use ChatGPT to understand the guidelines

Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.

This is where ChatGPT shines for most coders, especially newer ones or anyone working in an unfamiliar specialty. Ask it to explain a concept, then confirm what it tells you against the official source.

The source that governs diagnosis coding is the ICD-10-CM Official Guidelines for Coding and Reporting, issued by CMS and NCHS. A new set takes effect each October 1, so make sure you're checking the current guidelines, not last year's. And remember that the classification's own conventions and instructions (the Tabular List and Alphabetic Index notes) take precedence over the guidelines.

Try a prompt like this:

Explain an ICD-10-CM guideline in plain EnglishPrompt library
I'm a medical coder. Explain the ICD-10-CM guideline on [topic, e.g., sequencing hypertension with chronic kidney disease] in plain English.

Give me:
1. Explanation: 3 to 5 sentences.
2. Where to confirm it: the section of the ICD-10-CM Official Guidelines to read (section number and title), plus any Tabular List or Alphabetic Index notes that apply.
3. Common mistakes coders make with this rule: up to 3 bullets.

If you aren't sure of a section number, write "Not sure" instead of guessing. Tell me if the rule may have changed in recent guideline updates.

Or, to compare two similar situations:

Compare two similar ICD-10-CM conceptsPrompt library
I'm a medical coder. Explain the difference between [concept A, e.g., a "code first" note] and [concept B, e.g., a "use additional code" note] in ICD-10-CM.

Format:
- A table with columns: Concept | What it means | What the coder does | Where it appears
- One short example of each, using a made-up patient scenario (2 to 3 sentences each)
- The ICD-10-CM Official Guidelines section that covers each, or "Not sure" if you can't name it with confidence

Keep it under 250 words.

Then verify: Open the guideline section ChatGPT pointed you to and read it yourself. If the section number is wrong or the explanation doesn't match, trust the guideline.

Summarizing a de-identified clinical note before coding Paper cutout illustration. On the left, a long multi-page clinical note with its identifying details blacked out and a few key lines highlighted. A dashed path carries those highlighted lines to a short summary card on the right, which lists diagnoses, procedures and specificity details in neat rows, with a small flag marking an ambiguous item. A small amber four-point spark sits beside the path, showing the AI doing the summarizing.

Step 4: Summarize de-identified notes before you code

Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.

Long notes can bury the details that matter. ChatGPT can pull them to the surface so you know where to focus.

Summarize a de-identified clinical note for codingPrompt library
Below is a de-identified clinical note. Using only what the note says, summarize it for a medical coder in this format:

- Diagnoses documented: each with laterality, severity, acuity, and stage where stated
- Procedures performed: each with site, approach, laterality, and extent where stated
- Details that affect code specificity
- Flag anything that seems ambiguous, conflicting, or missing, and say what the provider would need to clarify

For every item, name the note section it comes from (e.g., HPI, Assessment, Plan, Procedure). Write "Not found" for anything the note doesn't document. Don't infer details the note doesn't state, and don't suggest codes.

Note:
[paste de-identified note]

The "flag anything ambiguous" line is the useful part. It often points to exactly the spots where you'd need to query the provider.

Then verify: Go back to the full note and confirm the summary didn't drop or invent anything. Code from the documentation, never from the summary.

Medical Coding with AI (Without the Compliance Risk)
Course · Medical Coding with AI (Without the Compliance Risk)

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.

Checking AI-suggested candidate codes against the code book A paper cutout scene. On the left is a short list of candidate codes with a small orange AI spark beside it. Some rows have blue check marks and one row is struck through and dropped. On the right is an open code book with a magnifying glass over one entry, and a dashed arrow runs from the list to the book to show each candidate being looked up and verified.

Step 5: Ask for candidate codes to research, not final codes

Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.

It's tempting to ask ChatGPT, "What's the code for this?" and move on. Don't. Ask it for candidates and the reasoning behind them, then do the lookup yourself.

Get candidate ICD-10-CM codes to researchPrompt library
Based only on the de-identified scenario below, suggest up to [number, e.g., 5] candidate ICD-10-CM codes for me to research. Do not present these as final codes.

Give a table with columns: Candidate code | Short description | Why it might apply | Documentation needed to support it | More specific or alternative codes to check

Then list any facts missing from the scenario that would change the code choice. If you're unsure a code exists or is current, mark it "Verify: may not exist" instead of guessing. Don't assume anything the scenario doesn't state.

Scenario: [de-identified scenario]

For procedures, keep it general and lean on your licensed sources for the actual CPT codes and descriptors:

Find what to research for a procedure codePrompt library
For the de-identified procedure scenario below, tell me what to research in my licensed CPT and HCPCS sources. Refer to code families or ranges only; don't quote CPT descriptors.

Give me:
1. Code families or ranges to look into, with one line on why each
2. Documentation details that decide which code applies (e.g., approach, extent, time, number of lesions, size). For each, quote what the scenario says or write "Not found"
3. Likely bundling (NCCI) or modifier issues to check in my encoder
4. Anything unclear in the scenario that I should confirm in the documentation

Use only the scenario. Keep it under 300 words.

Scenario: [de-identified scenario]

If the scenario raises modifier questions, our guide to using AI for coding modifiers shows how to work through them.

Then verify every code:

  1. Look it up in the current code book or your encoder, starting from the Alphabetic Index for diagnoses.
  2. Confirm it in the Tabular List, including all instructional notes.
  3. Check it against the official guidelines.
  4. Run it through your encoder or claim scrubber for NCCI edits, MUEs, and payer rules.

If any code ChatGPT suggested doesn't exist, has been deleted, or doesn't match the documentation, drop it. This happens, and it's exactly why the checking step isn't optional. For more on what AI can and can't catch, see our guide on whether AI can detect medical coding errors.

Drafting a provider query from a clinical note Paper cutout illustration. On the left a clinical note has two lines highlighted in blue as clinical indicators. A dashed line leads from them to a larger query form with one dark question bar, four multiple-choice options with checkboxes, and two blank placeholder boxes at the bottom. A small amber four-point spark sits by the form's top corner, and a dark blue envelope on the right is ready to send the query to the provider.

Step 6: Draft provider queries

Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.

When documentation is unclear or incomplete, a well-worded query gets you a faster, cleaner answer. ChatGPT can draft one in seconds. Just make sure the query stays compliant with your organization's query policy, meaning it presents the clinical facts and offers options without leading the provider toward a particular answer.

Draft a compliant provider queryPrompt library
Draft a compliant, non-leading provider query for a medical coding situation. Use only the facts below; don't add clinical details or patient identifiers.

Clinical indicators documented: [clinical indicators, e.g., low sodium on labs and IV fluids ordered]
Where they're documented: [note sections, e.g., lab results, progress note]
What's missing or unclear: [what's missing, e.g., a related diagnosis]
Options to offer: [clinically supported options, or "suggest options from the indicators"]

Requirements:
- Present the clinical indicators and where they're documented
- Ask one clear question, then offer multiple-choice options that include "Other (please specify)" and "Unable to determine"
- Do not suggest that any option leads to higher reimbursement, and don't mention payment
- Keep it under 150 words
- Leave [Provider name] and [Date] as placeholders

Then review: Read the draft against your organization's query policy before sending. If it uses a template, swap in the template's required wording.

Drafting an appeal letter for a denied claim Paper cutout illustration. On the left a denied claim form, tilted, has a dark blue stamp marked with a cross. In the centre a white business letter is being drafted, with a letterhead bar, address lines, body paragraphs, blank placeholder boxes and a signature line, and a small amber spark beside it. On the right a clipped stack of supporting documents sits ready to attach, with an envelope underneath.

Step 7: Draft appeal letters for denied claims

Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.

Appeal letters are mostly structure and clear writing, which is right in ChatGPT's wheelhouse.

Draft an appeal letter for a denied claimPrompt library
Draft a professional appeal letter for a denied medical claim, using only the details below.

Denial reason: [denial reason or code]
Service provided: [brief description, no patient identifiers]
Why we believe it should be paid: [your argument, e.g., documentation supports medical necessity under the payer's policy]
Supporting documents we'll attach: [document types, e.g., progress note, operative report, lab results]
Payer policy text (optional): [paste the relevant policy excerpt with its title and section number]

Requirements:
- Under 350 words, standard business-letter format
- Cite the supporting documentation by type
- Cite payer policy only from the text I pasted, with its section number. If I didn't paste any, write [Policy citation] instead of naming a policy
- Don't invent policy names, coverage rules, guidelines, or dates
- Leave placeholders for [Patient name], [Member ID], [Claim number], [Date of service], and [Denial date]
- After the letter, list anything you needed but didn't find in my details

Use placeholders for every identifier and fill them in yourself outside ChatGPT, unless you're working in a BAA-covered workspace your organization has approved for this.

Then review: Check every policy name, coverage rule, and guideline ChatGPT cites. It can confidently reference payer policies that don't say what it claims. Attach the actual documentation and policy language.

Draft with AI, then validate in a specialist coding tool Paper cutout scene. On the left, a slightly tilted draft notepad with grey text bars and a pencil, with a small orange spark beside it for the AI assistant. A blue arrow leads right to a specialist coding tool: a screen with a search bar, rows of code results, and a highlighted row with a check badge, next to a thick reference book stack and a magnifying glass. It shows using AI to think and draft, and a dedicated tool to look up, validate and scrub codes.

Step 8: Know when a specialist coding tool is the better choice

Our Medical Coding with AI (Without the Compliance Risk) course covers this in depth.

ChatGPT is a general assistant. For the actual lookup and edit-checking, you need a tool built on licensed, current coding data. A few options:

Our tool pages compare these in detail. A practical setup for many coders: use ChatGPT to think and draft, and use one of these to look up, validate, and scrub.

A quick checklist before any code goes on a claim

  • No PHI went into a non-BAA account
  • Every code was confirmed in the current code book or encoder
  • Instructional notes and the official guidelines were checked
  • Edits (NCCI, MUE, payer rules) were run
  • The documentation supports the code on its own, without relying on ChatGPT's summary

Frequently asked questions about How to Use ChatGPT for Medical Coding

Can ChatGPT do medical coding?

It can help with parts of the job: explaining guidelines, summarizing notes, suggesting candidate codes, and drafting queries and appeals. It can't do the coding reliably on its own. It doesn't have licensed, current CPT or edit data, and its suggestions need to be verified against official sources every time.

Is ChatGPT accurate for medical coding?

Not accurate enough to trust without checking. It can suggest codes that are outdated, nonspecific, or nonexistent, and it can misstate guidelines with total confidence. Treat its output as a starting point for research.

Is it HIPAA compliant to use ChatGPT for medical coding?

Only on plans covered by a Business Associate Agreement, such as ChatGPT for Healthcare, ChatGPT Enterprise with Regulated Workspace, ChatGPT for Clinicians, or the API with Modified Retention. ChatGPT Free, Plus, Pro, and Business are not HIPAA eligible, so never put PHI into them.

Can I paste CPT codes and descriptions into ChatGPT?

Be careful. The AMA says any use of CPT content needs a license and prohibits uploading the CPT data file into public AI systems. Referencing a code number in a question is different from pasting large amounts of CPT content, but your licensed code book or encoder should remain your source for descriptors.

Will ChatGPT replace medical coders?

No. Coders remain accountable for the codes submitted, and someone has to verify AI output against the code sets, guidelines, and payer rules. Even fully autonomous coding systems send the visits they can't handle to human coders. What changes is how coders spend their time: less on drafting and searching, more on reviewing and judgment.

What's the best way to learn medical coding with ChatGPT?

Use it like a tutor. Ask it to explain guidelines, quiz you on made-up scenarios, and walk through why one code fits better than another. Then check every answer against the official guidelines and code books. The checking is where the real learning happens.

Here's a prompt that turns ChatGPT into a quiz partner:

Quiz yourself on medical coding with made-up scenariosPrompt library
Act as a medical coding tutor. Quiz me on [topic, e.g., ICD-10-CM coding for diabetes with complications] using made-up patient scenarios.

- Give me one scenario at a time (2 to 4 sentences, no real patient details) and ask which code or codes I'd assign and why.
- Wait for my answer before going on.
- Then tell me whether my reasoning holds up, explain why one code fits better than another, and name the ICD-10-CM Official Guidelines section or Tabular List note I should check to confirm. If you're not sure of a code or section, say "Not sure" instead of guessing.
- After [number, e.g., 5] questions, summarize what I got right and which rules to review.
Course · Medical Coding with AI (Without the Compliance Risk)

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.

Found this useful? Get more every Friday

The Friday briefing for medical billers: what changed in AI for medical billing this week, our latest tool reviews and new free guides, in one short email.

Unsubscribe anytime. By subscribing you agree to our Privacy Policy.

Related guides

Medical Coding with AI (Without the Compliance Risk)

AI for Medical Coding: What It Can Do and How to Use It Well

Medical Coding with AI (Without the Compliance Risk)

Can AI Do Medical Coding? How It Works and Where People Still Matter

AI Basics for Medical Billers and Coders

How to Use AI for Medical Billing: A Practical Getting-Started Guide

Course: Medical Coding with AI (Without the Compliance Risk)Code smarter, stay compliant

See the course