Skip to content

Dataset

NextGen EHR and practice management datasets for AI training

A NextGen dataset is a de-identified extract of a medical group's NextGen Enterprise database: person and patient rows, encounters, the template tables that hold each visit's documentation, diagnoses, medications, lab results, generated documents, appointments, and the charges, claims and payment transactions billed from the same encounters. SourceX sources it to a buyer's spec from established medical practices that run NextGen Enterprise. Each dataset is de-identified before delivery and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Encounters from one NextGen Enterprise database with their template rows, diagnoses, medications, labs, generated notes, charges, claims and payments
Typical systems
NextGen Enterprise EHR and NextGen Enterprise PM on Microsoft SQL Server, on the practice's servers or vendor-hosted, with the practice's installed and customized template content; NextGen Office is out of scope
Typical history
Varies by go-live date, content upgrades and what was converted from an earlier system; specify encounter years and specialties
Modality
Structured SQL rows keyed by person and encounter, free-text template fields and generated visit documents
Delivery formats
Agreed per order; table extracts as Parquet or JSONL with keys replaced consistently, documents as text or PDF, plus a template catalog
Preparation
De-identified before delivery under a method recorded per source; person, provider and practice keys replaced; dates shifted or reduced as agreed; free text screened
Licensing
Permitted use agreed per license; the practice's NextGen license terms on database extraction and any code-set license checked per source
Availability
Sourced to your spec from practices that run NextGen Enterprise; template content differs by practice and supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
person_refstringPseudonymous key for the person row, which NextGen uses for patients, guarantors and insured subscribers alike.
patient_practiceobjectThe patient row that ties a person to one practice, with delivery flags for other roles the person holds, such as guarantor.
encounter_rowobjectThe patient_encounter row: shifted date, clinical and billable flags, rendering provider and location keys.
template_rowsarrayRows from the template tables saved on this encounter, each with its table name and column values.
template_catalog_refstringPointer to the catalog entry describing each template table: fields, screen labels, standard or practice-built.
diagnosesarraypatient_diagnosis rows for the encounter: code system and code, numbered in delivery so charges can point to them.
medication_rowsarraypatient_medication rows: drug, sig, start and stop days and the encounter that wrote them.
lab_observationsarraylab_results_obx rows joined to their order: test, value, units, reference range and abnormal flag.
generated_documentsarrayEntries from the documents store: document name, generated day and de-identified text of the visit note.
appointmentobjectThe appointments row linked to the encounter: event type, resource and whether it was kept or cancelled.
charge_linesarraycharges rows on the encounter: procedure code, modifiers, diagnosis pointers, units and amount.
claim_recordsarrayclaims rows that carried those charges: payer key, charge keys and status.
ledger_transactionsarraytransactions rows and their per-charge lines: payment or adjustment, payer or patient source, and amount.
provider_refstringPseudonymous key for the provider_mstr row, with specialty kept and name and identifiers removed.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "person_ref": "ng_per_c41a",
  "patient_practice": {"practice_key": "ng_prac_02", "has_patient_row": true, "also_guarantor": true},
  "encounter_row": {"enc_key": "ng_enc_7f3d", "day": 412, "clinical": true, "billable": true,
   "rendering_provider": "ng_prov_18"},
  "template_rows": [
    {"table": "vital_signs_", "source": "standard content",
     "values": {"bp_systolic": 128, "bp_diastolic": 82, "pulse_rate": 74, "weight_lb": 187}},
    {"table": "ortho_knee_exam_", "source": "practice-built",
     "values": {"side": "Right", "effusion": "Mild", "rom_flexion": "0-115", "txt_comments": "Medial tenderness."}}
  ],
  "diagnoses": [
    {"code_system": "ICD-10-CM", "code": "M17.11", "sequence": 1}
  ],
  "medication_rows": [
    {"medication": "meloxicam 15 mg tablet", "sig": "1 daily with food", "start_day": 412, "stop_day": null}
  ],
  "generated_documents": [
    {"document_key": "ng_doc_91b2", "name": "Ortho Office Visit", "generated_day": 412,
     "excerpt": "Right knee with mild effusion. Flexion to 115 degrees. Plan: meloxicam, recheck 6 weeks."}
  ],
  "appointment": {"appt_key": "ng_appt_55e0", "event": "Established Visit", "status": "kept"},
  "charge_lines": [
    {"charge_key": "ng_chg_a1", "code": "99213", "modifiers": [], "dx_pointers": [1], "units": 1, "amount": 165}
  ],
  "claim_records": [
    {"claim_key": "ng_clm_30c8", "payer_key": "ng_pay_07", "charge_keys": ["ng_chg_a1"], "status": "paid"}
  ],
  "ledger_transactions": [
    {"day": 431, "type": "payment", "source": "payer", "charge_key": "ng_chg_a1", "amount": -92},
    {"day": 431, "type": "adjustment", "source": "contractual", "charge_key": "ng_chg_a1", "amount": -48},
    {"day": 440, "type": "payment", "source": "patient", "charge_key": "ng_chg_a1", "amount": -25}
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Generate visit notes from structured findings

Template rows paired with the generated document give input and output for note drafting.

Suggest codes from documentation

Exam, history and plan fields sit beside the diagnosis and procedure codes billed for the same encounter.

Predict denials and payment

Charges, claims and posted adjustments on the same keys show which documented visits were paid in full.

Map practice-specific schemas

Many practices' template tables for the same specialty are a real test of schema matching and normalization.

Evaluate ambulatory workflow agents

Held-out encounters give tasks with a known answer, such as entering charges for a documented visit.

Use-case guides: Healthcare administration AI, Document AI, enterprise search and RAG, Finance and accounting agents, Private evaluation sets

What makes this data valuable

Template catalog delivered

Every template table arrives with its fields, labels and fill rates.

Keys survive re-keying

Person and encounter keys join clinical, document and billing tables after replacement.

Documents included

Generated visit notes are present, not only the rows behind them.

Product and version stated

The source is confirmed as NextGen Enterprise, with content upgrades dated.

Ledger ties out

Payments and adjustments sum to charge balances on the sample.

Non-patient persons handled

Guarantor and subscriber rows are de-identified or excluded, and the choice is stated.

License terms

NextGen dataset

This page covers nextGen EHR and practice management records.Illustrative

Each template writes to a table of its own

NextGen Enterprise EHR does not store a visit in one fixed chart model. Clinicians document on templates, and each template saves its fields to a SQL Server table that belongs to that template, by convention named for it with a trailing underscore and keyed by person and encounter. A vitals template and a specialty exam each have their own table and columns. The vendor's standard content set, known as KBM, supplies many of them, specialty content adds more, and practices edit the standard ones and build new ones in the Template Editor.

The clinical schema of an extract is therefore the practice's own. An orthopedic group has tables a pediatric group has never seen, and a content upgrade adds and retires templates partway through the history. The fixed part is the core: person, patient, patient_encounter, patient_diagnosis, patient_medication, provider_mstr, and lab results in tables shaped like the HL7 segments they are named for. Person holds everyone the database knows, including guarantors and insured subscribers who were never seen, and a patient row ties a person to a practice. Core tables compare across practices. Template tables carry the richest detail and need a catalog first: each table, its fields, its screen labels and its fill rates.

A template row belongs to one encounter, so visit-by-visit history is kept, but within an encounter the row is updated in place and shows its last saved state with a modify stamp. Many template columns are free-text boxes, check boxes stored as flags, or picklist text stored as words, not codes. Templates can be set to default values forward from the prior visit, so identical rows across visits may be a clinician confirming a finding or nobody touching the field. Ask how the practice used defaults before treating repeats as observations.

Billing shares the encounter key, and the finished note is stored apart

NextGen Enterprise PM runs on the same database and uses the same person and encounter keys as the EHR. Charges hang from the encounter with procedure code, modifiers, diagnosis pointers and amount. Claims gather charges for a payer, and transactions post payments and adjustments against those charges. A visit's documented exam, its coded charges, the claim and what the payer and patient paid join by key with no fuzzy matching. Not every encounter has both sides: a phone call can be clinical with no charge, and some encounters exist only for billing.

The finished visit note is a different object. It is generated from the template rows through a document template and stored as a document, apart from the rows that produced it. If a clinician changes a template after generating, the document can be stale. If they edit the document text, the rows never learn of it. Structure and narrative are two views of one visit that can disagree, and scanned paper is an image with no rows at all. A copy of the SQL tables can miss documents and images held elsewhere, and a C-CDA or FHIR export returns a standards-shaped summary without the template tables or the billing. The vendor's Enterprise APIs return their own JSON format route by route, so for an API pull ask which routes were called.

Ask which route produced the sample and who ran it, since a practice in the vendor's cloud hosting may not be able to query its tables directly. Then test twenty encounters. Confirm that template rows, the generated document and charges still share an encounter key after re-keying. Compare a document's text with the template values. Tie payments and adjustments to their charges. Check that guarantor and subscriber person rows were de-identified with the same care as patients, and that every delivered template table appears in the catalog. Last, confirm the source is NextGen Enterprise. NextGen Office is a separate cloud product for small practices, and none of these table names apply to it.

What to check before licensing

  • Have the practice and your counsel read the practice's NextGen license terms on extracting the database, on API use and on exported data before agreeing a permitted use.
  • Confirm with counsel the de-identification method and the jurisdiction it was assessed under, since these are patient health records, and ask for the method recorded per source.
  • Confirm the product is NextGen Enterprise and not NextGen Office, and ask which template content the practice installed and when it was upgraded.
  • Ask for the template catalog before fixing a scope: each template table, its fields and labels, its fill rate and whether the practice built or changed it.
  • Ask which route produced the extract, a SQL copy, an API or a document export, and whether generated documents and scanned images were included.
  • On a sample, join template rows, documents, charges, claims and transactions on the re-keyed encounter and person, and tie payments to charges.
  • Read free-text template fields and generated documents for names, and ask who holds the license for procedure code descriptions.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Why does the clinical schema differ between NextGen practices?

Because NextGen documentation is template-driven and each template writes to its own table. The tables present depend on which template content a practice installed, which specialties it runs and what it customized or built. Two extracts share the core tables for persons, encounters, diagnoses and medications, and differ in everything documented on templates. A template catalog per source is what makes them comparable.

Can clinical documentation be joined to billing?

Yes. NextGen Enterprise PM shares the person and encounter keys of the EHR, so a visit's template rows join directly to its charges, claims and payment transactions. Check on a sample that the keys were replaced consistently across both sides. Expect some encounters with documentation and no charge, and some that exist only for billing.

Is the finished visit note included?

It can be, and you should ask for it explicitly. The note a clinician signs is a document generated from template rows and stored apart from them, so a table extract alone may not carry it. Where both arrive, compare them on a sample, since a document edited after generation can differ from the structured rows behind it.

Is NextGen Office data the same as NextGen Enterprise data?

No. NextGen Office is a separate cloud product for small practices, with its own storage, its own APIs and its own export routes. This page describes NextGen Enterprise, where the EHR and practice management share one SQL Server database. If a source turns out to run NextGen Office, the tables, keys and template behavior described here do not apply, so confirm the product first.

How is patient health information handled?

Records are de-identified before delivery, and the method is recorded for each source. Person, provider and practice keys are replaced, dates are shifted or reduced as agreed, and free-text template fields and documents are screened. These are patient health records, so confirm the de-identification method and the jurisdiction it was assessed under with your counsel. No method removes all risk.

Is SourceX affiliated with NextGen Healthcare, Inc.?

NextGen Enterprise is named to identify the system the records come from. That does not imply a partnership with or endorsement by NextGen Healthcare, Inc. The records belong to the business that runs NextGen Enterprise, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell 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 26 November 2026.

See if your company qualifies