Knowing when not to use an AI agent in healthcare saves a team from a costly design mistake. An eligibility table, a coverage list or a coding edit must give the same answer every time the same inputs arrive, so a deterministic rules engine owns it. An agent may read the result. It may not rewrite the rule.
Written for digital health founders and hospital CTOs planning AI features, it gives a decision test, the engine's input and output record, table versioning, and a worked claim example.
When should you not use an AI agent in healthcare?
You should not use an AI agent in healthcare when the same inputs must always produce the same output, as with eligibility, published coverage lists and coding edits. Agnotic Technologies puts those decisions in a deterministic rules engine and lets an agent read, quote or route the result, never change it.
Choosing between an agent and a rules engine?
We put eligibility, coverage lists, and coding edits in a deterministic engine. The agent may read the result. It does not write the rule.
- Eligibility: covered or not, against the table the payer published.
- Coverage list: codes the payer named. Not a model guess.
- Coding edit: a reject or a flag the edit table already states.
- Agent later: summarise, route, or ask a human. Never overwrite the engine's yes or no.
Agent policies decide what an allowed agent may do once a tool is connected. A table lookup comes before that question: when the answer is already written down, no agent needs the tool at all.
What are the common mistakes when an AI agent owns a rule?
The common mistakes are asking an agent to decide coverage, eligibility or a coding edit, letting it paraphrase a table, and treating a regenerated answer as an override. Agnotic returns the engine result and, if a person is in the loop, that person's recorded override.
- No: 'does this look covered?' as a prompt.
- Yes: 'the engine said not covered, here is the list row.'
- Override: a named person, a timestamp, and the row they changed. Not a regenerated answer.
- Stale tables: a table pasted into a prompt keeps being used after the publisher's next update.
Which test tells you a decision belongs in a rules engine?
A decision belongs in a rules engine when someone with authority has already written the answer down and a reviewer must be able to replay it later. If two runs on the same claim line could differ, the workflow has failed that test.
| Question | Points to the engine | Points to an agent or a person |
|---|---|---|
| Who wrote the answer? | A payer, CMS, or the client's own policy table | Nobody yet; it needs judgement on free text |
| Must the same input give the same output? | Yes, every time | Some variation is acceptable |
| Will an auditor replay it? | Yes, against the table version in force | No replay beyond a reviewer's note |
| What does a wrong answer cost? | A denied claim, a wrong coverage message, a compliance finding | A draft someone rereads before it goes anywhere |
Agnotic runs this test on each step of a workflow, not on the workflow as a whole. One intake process can hold an engine step, an agent step, and a human step in sequence.
What does the engine's input and output record look like?
The engine takes a small set of typed fields and returns a decision with the rule and table version that produced it. Free text never enters the evaluation path.
- Inputs: member or patient identifier, plan identifier, date of service, procedure or service code, units, place of service, and the requesting system.
- Outputs: decision code, the rule id that fired, the table name and version, the effective date range of that version, and a reason code a person can read.
- Missing input: the engine returns 'cannot decide' with the missing field named. It does not guess a default plan or date.
An explicit output is what lets a later agent pass the result along without restating it. The agent forwards the rule id and reason code; it never has to describe the rule in its own words.
How should table versions and effective dates be handled?
Every table row carries an effective date range, and the engine picks the version by date of service, not by the day the request arrives. Old versions stay loaded so a past claim can be replayed against the rules in force at the time.
CMS updates the NCCI procedure-to-procedure and Medically Unlikely Edit files quarterly, and issues replacement files when a change is needed outside the quarterly cycle.
- Load: a new table version arrives as a new record set with its own effective dates. The previous version is never edited in place.
- Replacement: when a publisher replaces a file mid-cycle, the replacement becomes its own version with the dates the publisher states.
- Diff: before activation, a report lists rows added, removed and changed between versions, and the table owner signs it.
A prompt cannot do this. A model that was shown a table last quarter keeps no record of which version it is applying today.
Why is eligibility a parsed response and not a prompt?
Eligibility answers arrive from the payer as a structured transaction, so the engine reads fields from that response instead of asking a model what it means. The HIPAA transaction standards fix the format.
45 CFR 162.1202 adopts the ASC X12 270/271 Health Care Eligibility Benefit Inquiry and Response, version 005010X279, as the HIPAA standard for dental, professional and institutional eligibility transactions.
- Parse: a parser splits the 271 response into benefit segments, coverage dates and plan identifiers. Nothing is summarised.
- Evaluate: the engine compares those fields with the service requested and the client's own rules, such as which plans the practice accepts.
- Explain: a person or an agent may present the decision and the benefit segment it relied on, quoted rather than paraphrased.
If the 271 is ambiguous or incomplete, the engine returns 'cannot decide' and routes the case to a person. It never asks a model to fill the gap.
How do coding edits fit a deterministic engine?
Coding edits fit an engine because they are lookups: a code pair that may not be billed together, or a unit count above a published limit. The table states the result, so a model has nothing to infer.
CMS states that NCCI procedure-to-procedure edits exist to prevent improper payment when incorrect code combinations are reported, and that Medically Unlikely Edits prevent improper payment when services are reported with incorrect units of service.
- Code-pair edit: the engine checks each pair of lines on the claim against the pair table and returns the row that matched.
- Unit edit: the engine compares billed units with the limit for that code and returns the limit and the row id.
- Modifier: where the table allows a bypass with a modifier, the engine checks that the modifier is present. Whether it is clinically justified is a coder's call, recorded as an override.
The client's internal billing edits go into the same engine under their own table names, so payer edits and house edits are versioned and replayed the same way.
What can an agent safely do with the engine's result?
An agent can read the result, explain it with the row it came from, and route the case. It cannot change the result, call the engine again with altered inputs, or present its own view as the decision.
| Action | Allowed | Why |
|---|---|---|
| Quote the decision, rule id and reason code | Yes | The text comes from the engine record |
| Draft a message to the patient or coder | Yes, for human review | A person sends it |
| Route a 'cannot decide' case to a queue | Yes | Routing does not change the decision |
| Re-run the engine with edited inputs | No | That is shopping for a different answer |
| Say 'this will probably be covered' | No | The engine already said yes or no |
A worked example: an outpatient claim line
A worked example: a practice submits an outpatient claim with two procedure lines on the same date of service. The engine checks the pair against the code-pair table version in force on that date and returns an edit with the row id and reason code.
The agent receives that record and drafts a note for the coding queue: the two lines, the edit row, and the modifier the table would accept. It does not suggest whether the modifier applies.
A coder reviews the chart, adds the modifier, and records the override with their name and a reason. The engine re-evaluates the corrected claim and passes it. Both evaluations, the override, and the agent's draft stay attached to the claim id.
What should be logged for each decision?
Each decision is logged with its inputs, the table version, the rule that fired, and any human override, so the result can be replayed and the person who changed it can be named.
- Engine record: request id, inputs, decision, rule id, table name and version, timestamp.
- Override record: who, when, the original decision, the new decision, and the reason.
- Agent record: which engine record the agent read and what text it produced. It never replaces the engine record.
Why was a claim flagged? That answer is a lookup by request id. Keep these records with the client's other audit logs, under the same access rules as the claim data they describe.
How do you test a rules engine before go-live?
Test the engine with cases built straight from the published tables, then with past claims whose outcomes are already known. Passing both is the bar for go-live.
- Step 1, table cases: for a sample of rows in each table, build one input that should hit the row and one that should not.
- Step 2, date boundaries: run the same input on the last day of one version and the first day of the next.
- Step 3, missing fields: remove each required input in turn and confirm the engine returns 'cannot decide'.
- Step 4, replay: run a set of historical claims and compare decisions with what the payer actually returned.
- Step 5, regression: rerun the full suite whenever a new table version is loaded.
Who owns the tables, the engine and the agent?
A named person on the client's side owns each table and signs every new version. Engineering owns the engine and its tests. The agent's owner is responsible only for what the agent reads and drafts.
- Revenue cycle or compliance lead: table versions, effective dates, and the client's own edits.
- Engineering: the engine, the parsers, the replay suite, and the logs.
- Coders and eligibility staff: overrides, each recorded with a reason.
- Agent owner: prompts, the read-only connection to engine records, and review of drafts.
How does Agnotic split the work?
Agnotic builds the rules engine, the parsers and the replay suite for the client, loads each table version the client's owner signs, and connects any agent to engine records as a read-only consumer.
Tables in the engine, agent off the write
Eligibility, coverage, coding edits. Same input, same output. The agent does not own that.
Related reading on Agnotic
What an allowed agent may do, the signature before any tool is connected, and HIPAA-ready AI apps.


