Dataset
Chart-to-claim medical coding datasets for AI training
A medical coding dataset is a set of coded encounters in which the source documentation, such as visit notes, operative reports and orders, is paired with the ICD-10, CPT, HCPCS and modifier codes a credentialed coder assigned, plus physician queries, audit corrections and the claim lines that resulted. SourceX sources these to a buyer's specification from established provider coding departments, outsourced coding firms and coding audit vendors with rights to the records. Each dataset is de-identified before delivery and licensed for an agreed permitted use. Buyers should confirm the de-identification method and jurisdiction with counsel.
Dataset manifest
Sourced to your spec- What it is
- Coded encounters: source documents, first-pass and audited codes, physician queries, audit findings and claim lines
- Typical systems
- Solventum 360 Encompass (formerly 3M), Optum and Dolbey coding tools, TruBridge (formerly TruCode) encoders, and coding modules in Epic, Oracle Health and MEDITECH
- Typical history
- Specified by the buyer in encounters by service year, setting and specialty; audit records exist for a subset
- Modality
- Note text and scanned documents paired with structured code sets, query threads and audit worksheets
- Delivery formats
- Agreed per order; encounter-level JSONL with document text, code tables as Parquet or CSV
- Preparation
- De-identified before delivery under a method recorded per source; test chart text on a sample and specify how coders and physicians are keyed
- Licensing
- Permitted use agreed per license; the holder's right to license reviewed per source; check CPT content licensing separately
- Availability
- Sourced to your spec from coding departments, coding firms and auditors; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| coding_case_id | string | Random key tying one encounter's documents, queries, audit and claim together. |
| encounter_context | object | Setting (inpatient, outpatient facility or professional), specialty, payer class and service year. |
| code_set_versions | object | ICD-10-CM and PCS year, CPT year, grouper version and guideline set in force on the date of service. |
| source_documents | array | The documents the coder had, each with type, author role, signing time and de-identified text. |
| cac_suggestions | array | Codes proposed by a computer-assisted coding engine, and whether the coder accepted or rejected each. |
| first_pass_codes | object | Codes the coder assigned before any review, in sequence, with modifiers, units and present-on-admission indicators. |
| physician_queries | array | Query threads: clinical indicators cited, the question and options, the physician's reply, any addendum and the codes that changed. |
| audit_findings | array | Second-level review: why the chart was sampled, each code change with error type, and the auditor's rationale. |
| audited_codes | object | The code set after queries and audit, the label most buyers train on. |
| evidence_spans | array | For each code, the document and character offsets or quoted passage that supports it, where recorded. |
| grouping | object | DRG, APC or HCC assignment before and after changes, and what caused the change. |
| claim_result | object | Claim form and lines as billed, coding edits hit before submission, and any coding-related denial. |
| coder_profile | object | Pseudonymous coder and auditor keys with credential type and experience band. |
| deid | object | The de-identification method, how chart text and dates were treated, and whether offsets were recomputed after scrubbing. |
Field names from the table above; values are masked placeholders.
Example record
{
"coding_case_id": "cc_7d2e41",
"deid": {
"method": "expert_determination",
"dates": "day_offsets_from_admission",
"offsets": "recomputed_after_scrubbing"
},
"encounter_context": {
"setting": "inpatient_facility",
"specialty": "hospital_medicine",
"payer_class": "medicare",
"service_year": 2024
},
"code_set_versions": {
"icd10cm": "fy2024",
"ms_drg_grouper": "fy2024"
},
"source_documents": [
{
"doc": "doc_03",
"type": "progress_note",
"signed_day": 2
},
{
"doc": "doc_05",
"type": "discharge_summary",
"signed_day": 4,
"addendum_day": 7
}
],
"cac_suggestions": [
{
"code": "J18.9",
"accepted": true
},
{
"code": "R09.02",
"accepted": false
}
],
"first_pass_codes": {
"coded_day": 6,
"dx": [
{
"code": "J18.9",
"poa": "Y"
},
{
"code": "N17.9",
"poa": "Y"
},
{
"code": "E11.9",
"poa": "Y"
}
]
},
"physician_queries": [
{
"day": 6,
"indicators": "SpO2 86% on room air at arrival, respiratory rate 28, 4 L oxygen started.",
"question": "Please clarify the condition treated with supplemental oxygen.",
"options": [
"acute hypoxic respiratory failure",
"hypoxemia without respiratory failure",
"unable to determine"
],
"reply": "acute hypoxic respiratory failure",
"code_added": "J96.01"
}
],
"audit_findings": [
{
"sample_reason": "new_coder_review",
"change": "added",
"code": "E87.1",
"error_type": "missed_secondary_diagnosis",
"rationale": "Hyponatremia documented and treated with fluid restriction on day 2."
}
],
"audited_codes": {
"dx": [
"J18.9",
"J96.01",
"N17.9",
"E87.1",
"E11.9"
]
},
"evidence_spans": [
{
"code": "E87.1",
"doc": "doc_03",
"start": 1290,
"end": 1342
}
],
"grouping": {
"drg_first_pass": "194",
"drg_final": "193"
},
"claim_result": {
"form": "837I",
"coding_denial": null
},
"coder_profile": {
"coder": "cdr_112",
"credential": "CCS",
"experience_band": "under_2_years"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train coding models on audited labels
Documents paired with the audited code set give a model the answer a compliance review would accept.
Teach a model when to query
Charts as they stood before the physician replied show when the right output is a question.
Ground each code in evidence
Offsets from coding engines and audit worksheets train models to cite the passage behind every code.
Automate coding audit
First-pass and audited sets with error types train a reviewer model to find missed, unsupported and missequenced codes.
Evaluate by year, setting and specialty
Held-out encounters graded against the rules of their own service date show where a coding agent fails.
Use-case guides: Healthcare administration AI, Document AI, enterprise search and RAG, Private evaluation sets
What makes this data valuable
Audit trail present
Second-level changes are recorded per code with error type and rationale, and the sampling reason is stated.
Chart frozen at coding
Document timestamps show what the coder could read, with later addenda marked.
Complete query threads
Each query has its indicators, wording, reply and the code change that followed.
Version stamps
Code set, grouper and guideline versions are fields, not inferred from dates.
Evidence offsets
Codes point to document passages, and offsets still line up after scrubbing.
Engine and human separated
Engine-suggested codes are distinguished from codes a coder entered, with rejections kept.
Value drivers
Medical coding dataset
The audited code set is the label
First-pass coding is production work. Coders are measured on charts per hour, many start from codes proposed by a computer-assisted coding engine, and two credentialed coders reading one chart can differ on sequencing, specificity or visit level. A model trained on first-pass output learns those habits, including engine suggestions a hurried coder accepted. In second-level review an experienced auditor rereads the chart and records each change, a code added, removed, replaced or resequenced, with an error category and the guideline behind it. That worksheet is a set of corrected labels with reasons, and a selected sample. Charts are pulled because the coder is new, the payment is large or a focused review is under way, so ask how audited encounters were chosen.
Evidence matters as much as the code. A code is valid only when a provider's documentation supports it. An abnormal sodium in the results does not let a coder report hyponatremia unless a clinician wrote the diagnosis. Coding engines store the text that triggered each suggestion and audit worksheets usually quote the passage, so stored offsets can make each code checkable. Conditions mentioned and correctly left uncoded, such as a history item, a ruled-out diagnosis or, in outpatient coding, a diagnosis stated as probable, are the negative examples a model most needs.
Physician queries cover the case where the right answer is not yet a code. When the chart shows clinical indicators without a diagnosis, the coder or a documentation specialist asks the physician, in wording that must not steer the answer. The physician replies, often adds an addendum, and the codes change. Keep both states. A dataset that pairs final codes with the final chart has absorbed the addendum and never shows the moment when the documentation was not enough.
A code is only correct for its date, setting and payer
Code sets are revised on fixed cycles. ICD-10-CM and ICD-10-PCS are reissued each federal fiscal year, with some codes added mid-year. CPT changes with the calendar year, and HCPCS Level II is updated quarterly. A code that was correct on the date of service can be invalid today, and a model graded against the current set will mark good historical labels wrong. The rules for leveling office visits were rewritten around medical decision making or total time in place of counting history and exam elements, so the same note can earn a different level on either side of the change. In risk adjustment, each version of the HCC model changes which diagnoses map to a payment category.
Setting and payer change the task itself. Inpatient facility coding uses ICD-10-PCS for procedures, a present-on-admission indicator on each diagnosis and a grouper that turns the sequenced codes into a DRG. Outpatient facility and professional coding use CPT and HCPCS with modifiers, checked against bundling edits such as Medicare's National Correct Coding Initiative tables, which are updated quarterly. Payers differ on which codes and modifiers they accept for one service. Specialty matters as much: an orthopedic operative report and a primary care visit follow different conventions, and coders usually specialize.
Every record therefore needs its date of service, the code set and grouper versions in force, the setting, the specialty and the payer class. De-identification can remove exactly this. HIPAA's Safe Harbor method reduces a date to its year, and because the ICD-10-CM year does not start in January, the year alone does not say which version applied. Ask for an explicit code set version field, written before dates are reduced, and validate a sample of codes against that version.
What to check before licensing
- Get in writing which de-identification method each source used, and test sample notes, operative reports and query text for names, dates and record numbers. Confirm the method and jurisdiction with counsel.
- Establish whose records they are. A coding or audit firm works on client charts under contracts and business associate agreements, so ask whether each provider client approved licensing and have counsel read the terms.
- Ask whether the delivery includes CPT codes or descriptors, and confirm with counsel what license from the American Medical Association your intended use needs.
- Ask what share of encounters had second-level audit and how they were sampled.
- Compare document signing and addendum times with the time of first-pass coding, to confirm the chart can be rebuilt as the coder saw it.
- Check that each record carries service year, code set and grouper versions, setting, specialty and payer class, then validate sample codes against that year's set.
- Ask how engine-suggested codes are marked, whether rejected suggestions are kept, and what share of codes carry an evidence offset.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Why are audited codes better labels than first-pass codes?
Because an audit is a second expert reading with the differences written down. First-pass codes reflect production pressure and, in many departments, suggestions from a coding engine. An auditor's worksheet records each code added, removed or changed, the error type and the reference behind it. Audited encounters are a selected subset, so ask how they were chosen.
Do the records show which text supports each code?
Only where the coding tool or the auditor recorded it, so specify it. Computer-assisted coding tools keep the passage that triggered each suggestion, and audit worksheets often quote the documentation behind a change. Codes typed directly by a coder usually have no stored link. Ask what share of codes carry a document and character offset, and whether offsets still line up after de-identification changed the text.
Can I combine coded encounters from several years?
Yes, if every record carries the versions it was coded under. Code sets and guidelines are revised each year, so a correct historical label can look invalid against the current set. Keep service year, code set version, setting and specialty on each record, and grade each prediction against the rules of its own date.
Does a coding company have the right to license charts it coded?
Usually not by itself, and it is a point to settle with counsel. An outsourced coding or audit firm works on its clients' charts as a service provider, typically under business associate agreements and contracts that limit use of the records to that service. Ask whether each provider client approved licensing, and whether the firm's own audit findings are treated differently from the chart. Ask for the basis of the right to license each part and have counsel read it.
Do I need a CPT license to use a coding dataset?
You may, so check before you take delivery. CPT is maintained and copyrighted by the American Medical Association, which licenses its use, and a holder's license to use CPT in its own operations may not extend to a recipient of the data. Ask whether the delivery includes CPT codes, descriptors or both, and confirm with counsel what your intended use requires.
How is this different from claims or revenue cycle data?
A coding dataset holds what happened before the claim, while claims data holds the final codes and what the payer did with them. It carries the documentation the coder read, the codes first assigned, the queries sent to physicians and the auditor's corrections. Use claims and remittance records to learn payment and denial behavior, and coding records to learn how a chart becomes a code set.
Related datasets
- Healthcare revenue cycle and prior authorization records
Linked prior authorizations, claims, remittances, denials and appeals for real encounters
- De-identified EHR and patient chart records
Longitudinal patient charts: encounters, problems, orders, results, medications, vitals and notes under one patient key
- De-identified clinical notes
Clinician-written notes as text, with note type, author role, specialty, encounter key and signing time
- Explanation of benefits and remittance documents
EOB and remittance documents as received, with keyed fields, matched 835s and posting results
- Medical dictation audio with final transcripts
Clinician dictation audio paired with the typed or recognized draft and the final signed document
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.