Skip to content
redactsure
Book a demo

Explore.

Data Report · RedactSure Research
Chris Sowa · Founder, RedactSure
Published
Last updated

Can an AI Agent Code Medical Claims Without Seeing Protected Health Information?

No, not the note as it is written: coding reads the clinical record, and the note identifies the patient. What can be kept from the model is the identity, replaced by consistent tokens before the page renders.

A credential reference travels from a browser record through a bounded route to a separate API destination.

A coding desk reads a note the way a clinician wrote it: the history, the examination, the assessment, the plan, with the patient's name, medical record number and date of birth at the top. The codes come out of that narrative, and the narrative is what the claim is built on.

The useful question is therefore narrower than the title. The condition, the treatment and the medical decision have to be read by whatever assigns the code; the identity does not. A note also carries text the practice did not write, such as a scanned referral or a patient message, and a model working the page reads that too.

The de-identification guidance draws the line in a similar place. Its Safe Harbor method removes identifiers of the individual, including "All elements of dates (except year) for dates that are directly related to an individual" and "All geographic subdivisions smaller than a state", and it warns that de-identified data still carries some risk of identification (HHS Office for Civil Rights, De-identification, 2026). What the list leaves in place is the record of the condition, which is the part coding needs and the part a token cannot cover.

Key findings

  • For a coding agent to work a claim without the note reaching the model, the identifiers on the rendered note would have to be replaced with consistent tokens before any model reads it, so the run codes against PAT_4102 and MRN_8841 while the clinical text, which is the work, stays on the page (What Is Render-Layer Tokenization?).
  • It would also require a named person approving the code set before the claim is submitted and a record of the note the model read, because a manipulated output that reaches a claim is the damaging action OWASP's excessive-agency entry describes (OWASP, LLM06, 2025).
  • None of the coding pages reviewed describes a step that replaces the identifiers on the note before a model reads the screen, so the choice sits with the environment that renders the page rather than with the coding application (What Is the PII Wall?).
  • Solventum's fact sheet claims the system "Provides full visibility to all documents associated with the patient encounter in a coder-centric workflow" and that ProMonitor can send codes "directly to billing without coder review" when "user-defined rules and pre-qualification conditions" allow (Solventum, 2025).
  • In one study, GPT-4 and ChatGPT "reveal private information in contexts that humans would not" in 39% and 57% of cases, the behavior a coding screen exposes once the identifiers are in the model's context (Mireshghallah et al., 2024).

What does a coding agent read on a clinical note?

The record here is a de-identified note: one encounter's documentation, with the patient's identity replaced by tokens and the clinical content intact. Solventum's fact sheet describes "full visibility to all documents associated with the patient encounter in a coder-centric workflow" as a feature, which is a plain description of what a coding desk reads (Solventum, 2025).

The top of the page carries the identity: name, medical record number, date of birth, address, insurer and member ID. The body carries the chief complaint, the history, the examination, the assessment, the plan, the diagnoses and the procedures. Codes are assigned from the assessment and from the documentation of medical decision-making, and the same sheet advertises "Auto suggests CPT® and ICD-10-CM codes for professional fee coding" as the step that follows the reading.

A model given the rendered page receives both halves. The note is the clinical record, and the clinical record is what the code depends on. A page that removed the assessment would leave the agent holding a name and nothing to code.

A note is also an input from outside the practice. It can carry a scanned referral, a paragraph copied from another record or a patient message, and OWASP's guidance on prompt injection states that "Indirect prompt injections occur when an LLM accepts input from external sources, such as websites or files" (OWASP, LLM01, 2025). The note is that external source, and the agent has the claim open while it reads. The same identity rides on the claim when the payment posts, which is why a posting run works from the claim number and a token in place of the patient (Can an AI Agent Post Remittances Without Reading Patient Names?). What the model receives is the page the electronic health record draws, not a database view of selected fields (What Is Render-Layer Tokenization?).

Which values on the note can be replaced before the model reads it?

The identifiers can be replaced because the coding decision does not depend on them. A token on the name, the medical record number, the date of birth, the address and the member ID keeps the match across the run: the same patient is PAT_4102 on every screen, and the same encounter is MRN_8841 from the note to the claim.

Substitution has to happen at the render layer, before any model reads the screen, and the tokens have to stay consistent, or the agent cannot follow one patient through the workflow (What Is Render-Layer Tokenization?). A token view of a claim is already the shape the work takes elsewhere on these screens: on a rendered claims page the run works CLM_8841 and MEMBER_2210 and never learns who was treated (How Do You Run Claude Computer Use on Customer Records Without Exposing PII?).

Text-level anonymization is a different design. Presidio runs an analyzer that identifies PII in text and an anonymizer that removes it "using specific operators (such as redact, replace, hash or encrypt)", which is a pipeline over text that already exists (Data Privacy Stack, 2026). The documentation describes no step between a screen rendering and a model reading it, so a value is handled after the page has drawn it.

What cannot be replaced is the condition. A prior authorization form can carry DX_001 because the diagnosis has already been decided by a person, while a coding run is the step that decides it (Can an AI Agent Submit a Prior Authorization Without Seeing the Diagnosis?). That is the limit that remains after every identifier is gone.

What do the vendors themselves say?

Each page below describes one step in the same chain: the coding application reads the encounter, the codes go to billing, the claim carries the patient, and the payment posting works the claim. Solventum documents the reading, and its sheet puts the coder in front of every document on the encounter while the system suggests the codes (Solventum, 2025). Epic documents the charge entry that follows, where incoming financial transactions "can receive charge and credit transactions for hospital accounts" and are subject to charge entry checks (Epic Systems, 2026). The athenahealth posting help page shows the claim as the key: each charge line starts with "The claim ID number assigned by athenaOne" (athenahealth, 2026). Change Healthcare's clearinghouse guide puts the patient on the claim itself, with a Claim Summary that shows "the patient associated to the claim" (Change Healthcare, 2019). Presidio documents the other kind of control, an analyzer that identifies PII in text and an anonymizer that removes it with operators such as redact, replace, hash or encrypt (Data Privacy Stack, 2026). The University of Iowa Health Care training catalog lists the Resolute payment-posting workspaces as back-end resources and gives titles and run times only, so the coding screen itself is not documented there (University of Iowa, 2026).

A step between the rendered note and a model reading it is not described in the pages reviewed. That absence is the finding.

Vendor page What it documents What a buyer should verify
Solventum 360 Encompass "full visibility to all documents associated with the patient encounter"; auto-suggested CPT and ICD-10-CM codes Whether the model that suggests a code sees the note or a token view of it
Epic Financial interfaces Incoming transactions "can receive charge and credit transactions for hospital accounts", subject to charge entry checks Whether charge entry runs on the coded claim or on the note
athenahealth Post Payment Each charge line starts with "The claim ID number assigned by athenaOne" Whether the claim number is the only key the run needs
Change Healthcare ConnectCenter The Claim Summary shows "the patient associated to the claim" Whether the patient name travels with the claim into the model's context
Presidio Analyzer identifies PII in text; anonymizer removes it with redact, replace, hash or encrypt Whether the value is kept off the screen or removed after the text exists

What does a note's free text add to what the agent reads?

The note is not a form with typed fields. It is prose written by several people, and some of it arrives from outside the practice: a referral letter, a scanned fax, a patient portal message pasted into the chart. OWASP lists that shape of exposure under prompt injection, and it also lists the consequence that matters here, that "Personal identifiable information (PII) may be disclosed during interactions with the LLM" (OWASP, LLM02, 2025). A model that reads the page can repeat what the page holds, in a note it drafts, a code suggestion or a summary it sends back.

A successful injection does not need to take over the run. It needs an instruction the model treats as part of its task, on a page where the agent already has the claim open. An added diagnosis code, a procedure line that was not documented, or a second record opened to answer a question are all changes to the claim, and the claim is the bill.

The exposure is set by what the page drew. An injected run working from CLM_8841 and PAT_4102 collects tokens; the same run working a page that drew the patient's name collects the name (What Is the PII Wall?). That is why a filter over the model's output is a weaker control than a page that never drew the value.

What the note's free text changes is the number of routes into the run, not the value of substitution. A practice that has decided the agent may read the clinical text has accepted that an injection can reach the model with that text in context. The remaining question is whether the identity is there as well.

Who approves the codes before the claim is submitted?

Solventum's sheet shows the default in the market: ProMonitor can send codes "directly to billing without coder review" when "user-defined rules and pre-qualification conditions" allow, and codes that need editing go to a coder reviewer queue instead (Solventum, 2025). Rules that pre-qualify a code set are a reasonable production control. They are not a named approver, and the sheet does not describe one.

The responsibility does not move to the vendor. HHS guidance says "A provider that submits a claim to a health plan and a health plan that assesses and pays the claim are each acting on its own behalf as a covered entity", and a business associate handles claims processing under a written arrangement rather than taking over the submission (HHS Office for Civil Rights, Business Associates, 2026). The signature on the code set is the provider's, and it should carry a date.

An approval over a coding run needs three things: the code set, the note as the model read it, and a person's name. The shape is the one a governed appeal uses, where the denial and the draft are rendered with consistent tokens before any model reads the screen and the real identifiers stay outside its context (Who Approves an AI Agent's Appeal of a Denied Claim?).

What does a governed environment change?

A governed environment changes three things for a coding run: what the page draws, who approves the code set, and what record survives the run.

The first is the reading. Values chosen by policy are replaced with consistent tokens before any model reads the screen, so the note draws PAT_4102 and MRN_8841 while the assessment, the plan and the documentation of medical decision-making remain legible. The same surrogate follows the same patient across the note, the claim and the posting screen, which is what lets an agent work a task that spans several screens without the real value appearing anywhere in its context. The real values resolve only at the approved destination, at the moment of an approved action, which for a coding run is the claim submission.

The second is the approval. A named person approves each code set before the real values resolve, with the note as the model read it beside the codes it proposed. That approval is a decision about the bill, not a confirmation that the agent ran.

The third is the record. Every screen the agent read as tokens, every code it proposed and every approval with a name exports to the practice's own monitoring, which is what a reviewer needs when a payer asks why a claim was coded as it was.

The scope is worth stating. The control covers the page the agent renders in the health record or the claims application, and an Epic patient account is the same shape, with the identifiers drawn as tokens on the page the model receives (Can an AI Agent Work in Epic Without Holding PHI?). It does not cover a batch file, a direct interface between systems or a report built outside the screen. The page is where the note and the identifiers arrive together (Can Staff Use AI on Patient Records Without PHI?).

What the record shows

What an agent knows about a patient after a coding run is set by what the rendered note drew, not by the claim that was submitted. The note is the clinical record, so the condition and the treatment reach the model; the identifiers reach it only if the page draws them. The pages reviewed describe the coding application, the charge entry and the patient on the claim, and none describes a step that keeps the identifiers off the model's side. A coding team can test one note: put a de-identified encounter in the queue, run the agent, and compare the fields the screen drew with the fields the run recorded. If the name or the medical record number appears in both, the agent read it, and the workflow needs substitution at the screen, a named approver and an exported record.

Methodology and limitations

The page rests on public documentation: the HIPAA guidance on business associates and on de-identification, three OWASP entries, a coding vendor's product fact sheet, an interface catalog, a claim-posting help page, a clearinghouse guide, a university training catalog, and one study of model disclosure. Public documentation read in full gives a sound view of where each product applies its control. The pages were read as of October 22, 2026, and each Sources line carries the date for its page.

The products on this page are described from their documentation, and none was tested for this page, RedactSure included; the example describes a record type, not an organization, and vendor features change with the page's date. A behavior this page calls not described in the pages reviewed means the pages reviewed do not state it. RedactSure is deploying now with enterprise and government customers. Determinations belong to counsel, assessors and the organization's own security and compliance officers, and nothing here replaces a pilot of one workflow on the organization's own screens.

Frequently asked questions

Can an AI agent code medical claims without seeing protected health information?

No, not the note as it is written. Coding reads the clinical record, and the record identifies the patient, so an agent given the page receives both. What can be kept from the model is the identity, replaced by consistent tokens before the page renders and resolved at the claim. A run that tokenizes the name and the medical record number still codes from the assessment, the plan and the documentation of medical decision-making.

What does an agent read on a coding screen?

Every field the page draws. A coding workspace shows the encounter's documents, the diagnoses and procedures the coder works from, and the patient's identifiers at the top of the chart. Solventum's sheet describes full visibility to all documents associated with the encounter, which is the scope a coding agent inherits. A model given that page receives the identifiers and the narrative together, so the identity has to be replaced before the read rather than filtered afterward.

Can the identifiers be replaced without changing what the model reads?

Yes, when the replacement is a consistent token and the clinical text stays. The code comes from the condition, the treatment and the medical decision, not from the name or the record number. A token preserves the link between the note and the claim while the value behind it stays out of the model's context. Removing the clinical text would change the work; removing the identity does not. That is the difference between de-identifying a note and stripping it.

Who should approve a code set before the claim is submitted?

A named person at the provider, before the claim leaves. The provider that submits a claim is acting on its own behalf as a covered entity, so the responsibility does not move to a coding vendor or to a business associate under a written arrangement. The approval should carry the code set and the note as the model read it, with the approver's name on both.

What record should a coding run leave?

One that shows what the model read, which codes it proposed and who approved them. A claim leaves a trail of codes and amounts, and that trail records the bill rather than the reading. A reviewer asking why a diagnosis code was assigned needs the page the agent saw beside the approver's name, and the exported record is the only artifact that carries both.

Does de-identification make a note safe for the model to read?

It lowers what the model can learn, and it does not reach zero. HHS guidance says de-identified data, even when the methods are properly applied, "retains some risk of identification" and that the risk "is not zero". For a coding run the question is narrower: replacing the identity keeps the code work intact, while stripping the clinical detail stops it.

About the author

Chris Sowa is a founder of RedactSure and a former CEO of an AI company; he started it years before ChatGPT existed. He previously led AI at Accenture, served as Global VP of Strategy & Innovation at Schneider Electric, was CCO of Sovos, and spent more than a decade at Oracle, with earlier roles at SAP and IBM.

How RedactSure Keeps the Patient's Identity Off the Coding Screen

A coding agent needs the note's clinical detail, and the identifiers ride along unless the screen replaces them. Solventum's sheet gives the coder every document on the encounter (Solventum, 2025).

The environment that enforces this is built by RedactSure, an AI agent controls, governance and data protection company.

Before, the agent opens the encounter with the name, the record number and the date of birth on the page, so all of it enters the model's context. Inside the governed environment the page draws PAT_4102 and MRN_8841 and the real values resolve into the claim at the approved submit, after a named person approves the code set.

RedactSure is deploying now with enterprise and government customers.

Everyone else controls where data can go. RedactSure controls what the AI can see.

See it on your own workflow

A coding run is only as defensible as the record of what the model read. Bring one de-identified note and see, with test values, the page as the model receives it, the approval and the record. Book a demo

Book a demo

Book a demo

Having trouble? Open the booking page or email us.