---
title: "AI for billing and coding that sees the codes, not the patient"
description: "Billers and coders use ChatGPT for codes and denials. Locke masks names, birth dates, MRNs and member IDs on your device and can let CPT codes through."
url: "https://sonomos.ai/who-its-for/medical-billing/"
source: "https://sonomos.ai/who-its-for/medical-billing/"
---

# AI for billing and coding that sees the codes, not the patient

Locke masks the patient's name, birth date, MRN and member ID on your computer. You decide if codes go through.

[Download Locke free](https://sonomos.ai/downloads/)[See how it works](https://sonomos.ai/locke/#demo)

For

Billers, coders, revenue cycle teams, billing companies and practice billing staff

Runs on

x64 Windows and Linux. macOS is coming soon.

Screens

AI websites, through the free Locke Extension. Coding agents and SDK calls, through a local proxy.

Sent to Sonomos

Account, licence check, settings. Never prompts, files or detections.

Price

Free for one person. Teams is $12.99 per user a month. [Pricing](https://sonomos.ai/pricing/)

## What HIPAA asks of billing and coding work

A billing company is a business associate; an AI vendor it uses needs a BAA; payment work gets only the PHI it needs. A coding question needs the codes, not the patient.

Read more:

- [ChatGPT and HIPAA](https://sonomos.ai/blog/is-chatgpt-hipaa-compliant-2026/)
- [Claude](https://sonomos.ai/blog/is-claude-hipaa-compliant-2026/)
- [Gemini](https://sonomos.ai/blog/is-gemini-hipaa-compliant-2026/)
- [Microsoft Copilot](https://sonomos.ai/blog/is-microsoft-copilot-hipaa-compliant-2026/)
- [PHI vs PII](https://sonomos.ai/blog/phi-vs-pii-vs-personal-data-glossary/)

## What goes into a billing prompt

With the code types let through, this is what the AI receives.

What you write

Is 99214 with F41.1 supported by this note? Patient Dana Whitfield, DOB 03/14/1979, MRN 00731942.

What the AI gets

Is 99214 with F41.1 supported by this note? Patient `PER_ywxp`, DOB `DOB_hivj`, MRN `MRN_5j2f`.

- `PER` name
- `DOB` date of birth
- `MRN` medical record number
- CPT, ICD-10 found, sent as written

Code types switched off: the codes go through, the patient does not. Invented example.

| The work | What the prompt carries | What the AI receives |
| --- | --- | --- |
| Check codes against the documentation | Visit note, CPT and ICD-10 codes, name, MRN. | Note and codes; name and MRN masked. |
| Draft a denial appeal | Name, member ID, claim number, service dates. | Name and member ID masked; claim number and dates go as written. |
| Work a denials or AR export | Names, birth dates, member IDs, codes. | Identifiers masked; codes and amounts kept. |
| Prepare a prior authorization | Patient, member ID, codes, the ordering NPI. | Codes kept; patient IDs and NPI masked. |
| Answer a patient's billing question | Name, address, phone, the bill. | The reply; contacts masked. |
| Debug a claims integration (health tech) | Sample claims with patient and provider IDs. | The structure; identifiers masked. |

## What Locke finds in billing data

Six groups of its 67 types. [Full catalog](https://sonomos.ai/support/locke/data-types/).

Patient identity

Names, contacts, birth dates

Record and member numbers

MRNs, member IDs

Government IDs

SSN, license, passport

Medical codes

CPT, ICD-10, HCPCS, NDC; each has its own switch

Provider identifiers

NPI, DEA

Payment details

Bank account, routing, card numbers

Claim numbers, account numbers and service dates are not detected; Safe Harbor counts the last two as identifiers.

## Let the codes through, keep the patient out

Every type starts masked. On Free, set the switches in [Controls](https://sonomos.ai/support/locke/controls/) › Sensitive data › Health & medical.

### Switch off: found, sent as written

- CPT Procedure Code
- ICD-10 Diagnosis Code
- HCPCS Code
- NDC Drug Code

### Leave on: masked

- Person Name
- Date of Birth
- Medical Record Number
- Health Plan ID
- Social Security Number (US)
- Address / Location

1. 1Check the split in the [Sandbox](https://sonomos.ai/support/locke/sandbox/): each value shows as masked or disclosed.
2. 2On Teams, members cannot change these; the admin's policy sets them, for the billing office or everyone. Confirm in the Sandbox on a biller's computer.

There is no half-setting: a type switched off goes out in the clear everywhere.

## The rules that apply

| Rule | What it asks | Source |
| --- | --- | --- |
| Business associates and subcontractors | The business associate definition names billing and claims processing. Disclosing PHI to a subcontractor needs satisfactory assurance, so an AI vendor needs a BAA first. | Source: [45 CFR 160.103](https://www.law.cornell.edu/cfr/text/45/160.103); [45 CFR 164.502(e)](https://www.law.cornell.edu/cfr/text/45/164.502) |
| HIPAA minimum necessary standard | Limit PHI to the minimum necessary. Treatment disclosures are exempt; payment work is not. | Source: [45 CFR 164.502(b)](https://www.law.cornell.edu/cfr/text/45/164.502) |
| HIPAA code sets and de-identification | ICD-10-CM, CPT, HCPCS and NDC are standard code sets, not Safe Harbor identifiers; names, service dates and record, beneficiary and account numbers are. | Source: [45 CFR 162.1002](https://www.law.cornell.edu/cfr/text/45/162.1002); [45 CFR 164.514(b)](https://www.law.cornell.edu/cfr/text/45/164.514) |

Masking some identifiers does not de-identify a claim. Locke is not a covered entity or business associate and does not decide what is PHI or whether a BAA covers a tool. Not legal advice.

## How Locke works on a biller's computer

### Finds

67 types of sensitive data, as each request leaves your computer.

### Masks

Each value becomes a one-way token, the same every time, so the AI can follow who is who. Requests Locke cannot check are refused.

### Stays on your device

**Patient data never reaches Sonomos.** Detection runs on your computer, not our servers. Our position is that Sonomos is not a business associate for what Locke inspects. [Security review pack](https://sonomos.ai/security/review/)

## What Locke does not do

- It does not detect claim numbers, patient account numbers or dates of service.
- PDF, Excel and Word files, how EOBs often arrive, are blocked, not read; export to CSV.
- Images are not screened; a card photo goes as is unless images are set to Block.
- AI inside a billing system runs on the vendor's servers, out of reach.
- Masking is one-way; reversible tokenization is planned.
- It runs on x64 Windows and Linux; macOS is coming soon.

Full list: [known limitations](https://sonomos.ai/known-limitations/).

## For a billing office or an RCM company

Free

One person, full protection, no card, no time limit.

Teams

$12.99 per user a month, up to 20 seats, 30-day free trial, US only. Admin policies for everyone or selected members. HIPAA reports are evidence about the tool, not an audit.

Programs

Revenue cycle and health tech startups: six months free ([startup program](https://sonomos.ai/startups/)).

[Compare Free and Teams](https://sonomos.ai/pricing/)[See the compliance reports](https://sonomos.ai/compliance/)

## Questions billers and coders ask

### Can I use ChatGPT for medical coding?

Sending PHI to an AI provider needs a business associate agreement, and consumer ChatGPT plans do not offer one. A coding question without the patient's identifiers is a different matter. Locke can send the codes and mask names, dates of birth, MRNs and member IDs on your computer. Check every code the AI suggests against the documentation and the official coding guidelines.

### Are medical billing companies business associates under HIPAA?

Generally yes, when they do billing or claims processing for a covered entity: HIPAA's definition of a business associate lists both. An AI vendor a billing company sends PHI to is a subcontractor and needs its own business associate agreement first.

### Can Locke let CPT and ICD-10 codes through and still mask the patient?

Yes. Each code type has its own switch in Controls, under Sensitive data. Switch off the code types your work needs and leave names, dates of birth, record numbers and member IDs switched on. On Teams the admin sets this in a team policy; confirm the result in the Sandbox before relying on it.

### Does Locke detect claim numbers or dates of service?

No. Claim numbers, patient account numbers and dates of service follow each practice's or payer's own format and are not among Locke's data types. They reach the AI as written, so remove them when the task does not need them.

### Does HIPAA cover billing records?

Yes. Information that identifies a patient and relates to payment for their health care is protected health information when a covered entity or business associate holds it, and payment is one of the purposes the Privacy Rule governs.

### Does Sonomos receive patient data?

No. Detection and masking run on your computer. Sonomos receives your account details, a licence check and your settings. Prompts, files and detections stay on your device.

Give the AI the codes. Keep the patient on your computer.

[Download Locke free](https://sonomos.ai/downloads/)[Or try the interactive demo first](https://sonomos.ai/locke/#demo)

## Reading for billers and coders

- [PII vs PHI vs Personal Data (PI): Definitions and Which Law Applies](https://sonomos.ai/blog/phi-vs-pii-vs-personal-data-glossary/)
- [Is Claude HIPAA Compliant? BAA Plans and Covered Features (2026)](https://sonomos.ai/blog/is-claude-hipaa-compliant-2026/)
- [Is ChatGPT HIPAA Compliant? A 2026 Guide for Clinicians and Health Tech Teams](https://sonomos.ai/blog/is-chatgpt-hipaa-compliant-2026/)

## See also

### Other professions

- [Healthcare](https://sonomos.ai/who-its-for/healthcare/)
- [Insurance](https://sonomos.ai/who-its-for/insurance/)
- [Accounting](https://sonomos.ai/who-its-for/accounting/)
- [Therapists](https://sonomos.ai/who-its-for/therapists/)
- [Financial services](https://sonomos.ai/who-its-for/financial-services/)

### Terms on this page

- [What is PHI?](https://sonomos.ai/glossary/protected-health-information/)
- [Business associate agreement](https://sonomos.ai/glossary/business-associate-agreement/)
- [De-identification](https://sonomos.ai/glossary/de-identification/)
- [Data minimization](https://sonomos.ai/glossary/data-minimization/)
- [HIPAA](https://sonomos.ai/glossary/hipaa/)

### Locke, tools and comparisons

- [Locke for ChatGPT](https://sonomos.ai/for/chatgpt/)
- [Locke for Claude](https://sonomos.ai/for/claude/)
- [Controls: choosing what is masked](https://sonomos.ai/support/locke/controls/)
- [Sandbox: test before you send](https://sonomos.ai/support/locke/sandbox/)
- [Locke vs cloud DLP](https://sonomos.ai/compare/sonomos-vs-cloud-dlp/)
