Medical Billing Code Prediction

This dataset provides comprehensive, labeled clinical visit records including patient demographics, provider information, diagnosis and procedure billing codes, and billing outcomes. It is designed for automating and improving medical billing processes, supporting predictive analytics, and enabling robust healthcare revenue cycle management.

  • last updated 20 Aug 2025
  • by GoMask
The brief that made it

Automated billing code prediction for healthcare providers

Sample rows

preview · 8 of 200 rows · all 20 columns
visit_idstringvisit_typestringbilling_amountfloatsecondary_diagnosis_codestringpatient_idstringprovider_idstringvisit_datedatechief_complaintstringdiagnosis_codestringprocedure_codestringprocedure_descriptionstringsecondary_diagnosis_descriptionstringsecondary_procedure_codestringsecondary_procedure_descriptionstringpatient_ageintegerpatient_genderstringinsurance_typestringpayment_statusstringdiagnosis_descriptionstringnotesstring
VISIT0001outpatient175blankPAT1001PROV20012024-06-18Annual physical examinationZ00.0099385Initial comprehensive preventive medicine evaluationblankblankblank34femaleprivatepaidEncounter for general adult medical examinationPatient advised to follow up in one year for next routine checkup.
VISIT0002outpatient120blankPAT1002PROV20022024-05-21Persistent coughJ41.099213Office or other outpatient visit for evaluationblankblankblank27maleprivatepaidSimple chronic bronchitisPrescribed inhaler; advised to return if symptoms worsen.
VISIT0003outpatient95blankPAT1003PROV20032024-06-12Skin rashL30.999212Office visit for problem-focused evaluationblankblankblank22femalemedicaidpaidDermatitis, unspecifiedTopical corticosteroid cream prescribed; follow-up in two weeks.
VISIT0004telehealth135G47.00PAT1004PROV20012024-06-10Insomnia and anxietyF41.199443Telephone evaluation and management serviceInsomnia, unspecifiedblankblank41femaleprivatepaidGeneralized anxiety disorderMedication adjustment discussed; recommend CBT referral.
VISIT0005inpatient17200.5I10PAT1005PROV20042023-11-03Hip fracture after fallS72.001A27130Total hip arthroplastyEssential (primary) hypertension93010Electrocardiogram interpretation82femalemedicarependingFracture of right femurPatient admitted for surgery; discharge planning with PT scheduled.
VISIT0006emergency12850E78.5PAT1006PROV20052023-10-14Chest pain and shortness of breathI21.992928Percutaneous coronary interventionHyperlipidemia, unspecified93005Electrocardiogram, tracing only70malemedicarepartialAcute myocardial infarction, unspecifiedPatient stabilized, transferred to cardiology for observation.
VISIT0007outpatient160blankPAT1007PROV20022024-05-29Follow-up for type 2 diabetesE11.983036Hemoglobin A1c testblankblankblank58maleprivatepaidType 2 diabetes mellitus without complicationsLabs ordered; patient instructed on dietary modifications.
VISIT0008telehealth110blankPAT1008PROV20062024-04-09Depressed moodF32.999444Online evaluation and managementblankblankblank36maleprivatepaidMajor depressive disorder, single episode, unspecifiedStarted SSRI; follow-up scheduled in four weeks.

What the 200 rows show

from the 200-row sample

Inpatient (visit type) stands out: mean billing_amount is 13,172, against 852.1 for the rest.

  • 135.0median billing_amount
  • 3patient genders
  • 4payment statuses
  • 5insurance types
  • 12providers
  • 40median patient_age
Mean billing_amount by visit_type200 rows
010k20k116.9outpat…100 rows13,172inpati…35 rows4,030emerge…31 rows109.3telehe…24 rows134.7other10 rows
billing_amount200 rows, in bands of 2,500
0751501481061059354012.5k22.5kbilling_amount →

Median 135.0, from 60.0 to 21,500.

secondary_diagnosis_code59 rows with a value · 141 left blank
  1. I107
  2. E11.96
  3. E86.05
  4. E78.53
  5. R06.023
  6. T81.43
  7. G47.002
  8. V89.2XXA2
  9. R10.92
  10. J30.12
20 columns by typefrom the column list below
  • string 17
  • integer 1
  • float 1
  • date 1

Columns

20 columns in three groups
blueprint · 20 columns
columntypedescriptionexample
Text 17 columns
visit_idstringUnique identifier for the clinical visit recorduniqueVISIT0001
patient_idstringUnique identifier for the patient associated with the visitPAT1001
provider_idstringUnique identifier for the healthcare provider conducting the visit12 providersPROV2001
visit_typestringType of visit (e.g., outpatient, inpatient, emergency)outpatient · inpatient · emergency · telehealth · otheroutpatient
chief_complaintstringPrimary reason for the clinical visit as described by the patientoptionalPersistent cough
diagnosis_codestringPrimary diagnosis billing code (e.g., ICD-10)Z00.00
diagnosis_descriptionstringText description of the primary diagnosisoptionalDermatitis, unspecified
procedure_codestringPrimary procedure billing code (e.g., CPT)99385
procedure_descriptionstringText description of the primary procedure performedoptionalTotal hip arthroplasty
secondary_diagnosis_codestringSecondary diagnosis billing code, if applicableoptionalG47.00
secondary_diagnosis_descriptionstringText description of the secondary diagnosisoptionalInsomnia, unspecified
secondary_procedure_codestringSecondary procedure billing code, if applicableoptional93010
secondary_procedure_descriptionstringText description of the secondary procedure performedoptionalCT scan, head or brain
patient_genderstringGender of the patientmale · female · other · unknownfemale
insurance_typestringType of insurance coverage for the visitprivate · medicare · medicaid · self-pay · other · optionalprivate
payment_statusstringStatus of billing payment for the visitpaid · pending · denied · partial · unknown · optionalpaid
notesstringAdditional clinical or billing notes relevant to the visitoptionalPatient advised to follow…
Numbers 2 columns
patient_ageintegerAge of the patient at the time of visit0 to 12034
billing_amountfloatTotal amount billed for the visit0 or more175
Dates and times 1 column
visit_datedateDate of the clinical visit2024-06-18

Use it for

  • median billing…135.0200 rowsmean billing amount b…116.9outp…13.2kinpa…4kemer…109.3tele…

    A healthcare dashboard

    Billing_amount by visit_type and a breakdown of secondary_diagnosis_code. Excel, Power BI or Tableau.

  • Why do the 35 inpatient rows have a mean billing_amount of 13,172?

    A root-cause class exercise

    Hand out the rows and one question. The answer is in the data, not in the brief.

  • A software demo

    Believable visits with patient_id, provider_id and visit_date to fill a screen in front of a buyer.

Not quite right?

Make it yours.

Same 20 columns, your size and your rules. See 20 rows before you pay.

Preview 20 rows free

1,000 rows: $1.99 · 10,000: $12.99One-time. No subscription. All prices

This dataset200 rows20 columns
Yours1,000 rows20 columns

blueprint · medical-billing-code-prediction

Behind this dataset

Same schema. As many rows as you need.

These 200 rows came out of a blueprint — 20 columns with generation rules behind each one. Open it in Data Factory to retune a column, add your own, wire in foreign keys, and run it at the size you actually need.

Rules it was built with
  • Visit summary features included
  • ICD/CPT code mapped per case
  • Multi-label outputs supported
  • Synthetic and privacy-compliant
Rows
Open the blueprint in Data Factory

1 credit per row. New accounts start with 25 free credits.

Exports
CSV, JSON, JSONL, Parquet, SQL, Excel, TSV, XML
Licence
yours to use, including commercially
API slug
medical-billing-code-prediction

What should your data show?

Preview 20 rows free
No signup. No card.