Skip to content

Dataset

Healthcare datasets from de-identified EHR records for AI training

A healthcare dataset drawn from electronic health records is a set of longitudinal patient charts: encounters, problem lists, orders, results, medications, vitals and visit notes, linked by a de-identified patient key so each patient's care can be read in order. SourceX sources these to a buyer's specification from established health systems, physician groups and clinics that run the EHR, and from vendors with contractual rights to the data. 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
Longitudinal patient charts: encounters, problems, orders, results, medications, vitals and notes under one patient key
Typical systems
Epic, Oracle Health Millennium, MEDITECH Expanse, athenaOne, eClinicalWorks, NextGen and their reporting databases
Typical history
Specified by the buyer in patients and years of follow-up; limited by each site's go-live date and conversion
Modality
Structured tables or FHIR resources with local and standard codes, plus note text and scanned documents
Delivery formats
Agreed per order; native table extracts as Parquet or CSV, FHIR resources as JSON, C-CDA XML or an OMOP-shaped schema
Preparation
De-identified before delivery under a method recorded per source; keys replaced; dates shifted or reduced
Licensing
Permitted use agreed per license; the holder's right to license reviewed per source
Availability
Sourced to your spec from organizations that hold the charts; 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
patient_keystringPseudonymous key, unrelated to the medical record number, that is the same on every table for one patient.
demographicsobjectBirth year or age band, sex, and region as far as the de-identification method lets them stay.
follow_upobjectFirst and last contact as day numbers, the count of encounters and the longest gap between them.
encountersarrayEach visit or stay with its class (outpatient, emergency, inpatient, telephone or telehealth), specialty, start and end as day numbers, and disposition.
problem_listarrayThe maintained list of conditions with codes, status and the day each was noted or resolved.
ordersarrayLab, imaging, medication, referral and procedure orders with local code, order set, status and the order each one replaced.
resultsarrayResult values tied to the order that produced them, with units, reference range, abnormal flag and standard code where mapped.
medicationsarrayPrescriptions and inpatient medication orders with dose, frequency, start, stop and stop reason, plus administrations where recorded.
flowsheetsarrayVitals and nursing measurements as the site's own row name, value, unit and recorded time.
notesarrayNotes attached to an encounter with note type, author role and signing time, as de-identified text where in scope.
allergies_immunizationsobjectRecorded allergies with reactions, and immunizations.
sourceobjectSite key, the export route (native tables, FHIR or C-CDA) and how far local codes are mapped.
deidobjectThe de-identification method, how dates and high ages were treated, and the record classes left out.
Sample recordIllustrative

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

Example record

{
  "patient_key": "pt_8f3a61c2",
  "demographics": {"birth_year": 1961, "sex": "F"},
  "follow_up": {"first_day": 0, "last_day": 1462, "encounters": 24, "longest_gap_days": 187},
  "encounters": [
    {"enc_key": "enc_0007", "class": "outpatient", "specialty": "family_medicine", "day": 301},
    {"enc_key": "enc_0008", "class": "telephone", "specialty": "family_medicine", "day": 303},
    {"enc_key": "enc_0009", "class": "outpatient", "specialty": "family_medicine", "day": 393}
  ],
  "problem_list": [
    {"code_system": "ICD-10-CM", "code": "E11.65", "text": "Type 2 diabetes mellitus with hyperglycemia", "noted_day": 44}
  ],
  "orders": [
    {"order_key": "ord_0112", "enc_key": "enc_0007", "type": "lab", "local_code": "LAB1234", "text": "Hemoglobin A1c", "order_set": "Diabetes follow-up", "day": 301},
    {"order_key": "ord_0113", "enc_key": "enc_0008", "type": "medication", "text": "metformin 1000 mg tablet, twice daily", "replaces": "ord_0061", "day": 303},
    {"order_key": "ord_0131", "enc_key": "enc_0009", "type": "lab", "local_code": "LAB1234", "text": "Hemoglobin A1c", "day": 393}
  ],
  "results": [
    {"result_key": "res_0240", "order_key": "ord_0112", "loinc": "4548-4", "value": 9.1, "unit": "%", "ref_range": "4.0-5.6", "flag": "H", "day": 302},
    {"result_key": "res_0266", "order_key": "ord_0131", "loinc": "4548-4", "value": 7.6, "unit": "%", "ref_range": "4.0-5.6", "flag": "H", "day": 394}
  ],
  "medications": [
    {"order_key": "ord_0061", "text": "metformin 500 mg tablet, twice daily", "start_day": 44, "stop_day": 303, "stop_reason": "dose_change"}
  ],
  "flowsheets": [
    {"enc_key": "enc_0007", "row": "BP systolic", "value": 138, "unit": "mmHg", "day": 301}
  ],
  "notes": [
    {"note_key": "nt_0031", "enc_key": "enc_0007", "type": "progress_note", "author_role": "physician", "signed_day": 301, "text_ref": "notes/pt_8f3a61c2/nt_0031.txt"}
  ],
  "allergies_immunizations": {"allergies": [{"substance": "sulfonamide antibiotics", "reaction": "rash"}], "immunizations": []},
  "source": {"site_key": "site_03", "export_route": "native_tables", "labs_to_loinc": "partial"},
  "deid": {"method": "expert_determination", "dates": "one_offset_per_patient_as_day_numbers", "excluded": ["substance_use_treatment_records", "patients_under_18"]}
}

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

What AI teams use it for

Model care trajectories

Linked order, result and next-order sequences let a model learn what tends to follow a finding.

Summarize a chart across visits

Problem lists, medication changes and results over several years are the raw material for longitudinal summaries.

Train chart review and abstraction agents

Finding the evidence for a registry field or a quality measure means reading across encounters, tables and notes.

Evaluate clinical reasoning against real follow-up

Cut each chart at a day number and ask a model what it would order. The held-back events show what clinicians did.

Build and test normalization tools

Local lab codes, medication entries and flowsheet rows from several builds are realistic inputs for mapping to LOINC, RxNorm and FHIR.

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

What makes this data valuable

Follow-up per patient

Years between first and last encounter, and encounters per patient, reported as a distribution.

Order-to-result links

Results carry the key of the order that produced them, so sequences are not inferred from timestamps.

Intervals preserved

One date offset per patient, applied to every table and to note text, with time of day kept where needed.

Documented build

Product, modules, go-live dates and conversion history are stated for each site.

Terminology status

Local codes arrive with their standard mappings where those exist, and the unmapped share is stated.

Coverage of care

Organizations with inpatient, emergency and outpatient care see more of each patient than one clinic.

Redaction

Healthcare dataset

This page covers de-identified EHR and patient chart records.Illustrative

Write the spec in patients and years, not rows

The value of a chart is the sequence: an order, its result and the next order, across visits, under one patient key. A clinician orders a hemoglobin A1c, the result comes back high, a dose is raised, and three months later the test is repeated. A lab feed holds the two results, a pharmacy record holds the fills and a claim holds the billed visit. Only the chart holds them in order. Row counts hide whether you have that. One inpatient stay, charted every few hours across many flowsheet rows, can write more rows than years of office visits, so a very large table can describe few people for few days. Specify patients, years between first and last encounter, minimum encounters per patient and care settings, and ask for the distribution, not the average. Ask also what the timeline cannot see. An EHR records care delivered inside one organization, so a patient admitted across town leaves a gap that looks like good health.

De-identification decides whether the timeline survives. HIPAA's Safe Harbor method removes every element of a date tied to a patient except the year, which by itself leaves two events in the same year with no order. Longitudinal datasets therefore often shift all of a patient's dates by one offset, so intervals inside a chart stay exact while dates across patients stop being comparable. Whether shifted dates satisfy the method the holder chose is a question for the holder's expert and your counsel, so ask which method the shift was approved under. Then check a sample: the same offset must apply to every table and to dates written inside note text, and time of day should be kept if you need hourly sequences.

Ask which system and which build each site ran

Two hospitals on the same EHR product do not produce the same data. Each installation is configured locally, with its own order sets, flowsheet rows, custom fields and local codes. Blood pressure can be one flowsheet row at one site and separate rows by body position at another. The same potassium test carries a different local code at each laboratory, mapped to LOINC at some sites and not at others. Emergency, anesthesia or oncology documentation may run in a separate system, and history from a replaced EHR may have been converted as a summary with the old chart attached as scanned PDFs.

The export route decides what you receive. Native reporting tables keep the most: order-set membership, flowsheet rows, order status changes and who documented what. They are vendor-specific tables that need the site's data dictionary, so ask whether the holder's vendor agreement lets it share table and column names. FHIR exports use one resource model across vendors, with resources such as Encounter, Condition, Observation, MedicationRequest and DocumentReference, but they expose a standardized subset of the chart, and local flowsheet rows may be missing. C-CDA documents such as the Continuity of Care Document are summaries generated at one moment. They typically list current problems, medications and recent results, not the event history. Where a holder delivers a mapped research schema such as the OMOP common data model, ask that source codes be kept beside the standard ones.

What to check before licensing

  • Get in writing which de-identification method, Safe Harbor or Expert Determination, was applied to each source and by whom, and have counsel confirm it fits the jurisdictions involved.
  • Ask how the holder's right to license was established: what its notice of privacy practices says and, for a vendor, what its business associate agreements with providers allow. Have counsel read them.
  • Ask whether pediatric, behavioral-health and substance-use treatment records are excluded or handled separately, and which federal and state rules the holder considered.
  • On the sample, follow one patient from an order to its result and to the next order. Check that one date offset holds across encounters, results, medications and dates written inside notes.
  • Ask for the distribution of follow-up: patients by years between first and last encounter and by number of encounters, not total rows.
  • For each site, get the EHR product, the modules live with go-live dates, the export route, and the share of labs, medications and diagnoses that carry standard codes.
  • Search notes and the comment fields on orders, results and flowsheets for surviving names, dates, phone numbers and record numbers.

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

How are EHR records de-identified before delivery?

Records are de-identified before delivery under a method recorded for each source. For US sources that is HIPAA Safe Harbor or Expert Determination, chosen with the data owner. Typically identifiers are replaced with keys unrelated to the originals, dates are shifted or reduced, and note text is scrubbed where notes are in scope. No method is perfect, so confirm the method and the jurisdiction it was designed for with your counsel.

Should I size an EHR dataset in rows, encounters or patients?

In patients and years of follow-up. Row counts are dominated by inpatient flowsheets and medication administrations, so they say little about how many people or how much time a dataset covers. State the number of patients, the minimum span between first and last encounter, the minimum number of encounters and the care settings. Then ask for the distribution, because an average hides single-visit charts.

Will I receive native EHR tables, FHIR resources or C-CDA documents?

It depends on what each holder can export. Native tables keep local detail such as order sets and flowsheet rows but differ by vendor and by site. FHIR resources share one model across vendors and cover a standardized subset. C-CDA documents are point-in-time summaries that suit document tasks more than timeline modeling. State the route you need in the request.

Are clinical notes included with the structured chart?

They can be, where the holder agrees and the de-identification method covers free text. Notes arrive attached to their encounter with note type, author role and signing time, so each can be read beside the orders it discusses. Free text is the hardest part of a chart to de-identify, and some holders release structured data only, so say in the request whether notes are required.

Can charts from several health systems be combined into one dataset?

Yes, but they combine as separate populations. A person treated at two organizations appears under two unrelated patient keys unless the records were linked before de-identification, which is a decision for the data owners and their experts. Local codes and order sets differ by site, so keep a site key on every record.

Who has the right to license EHR data for AI training?

Usually the provider organization that holds the chart. EHR and practice-management vendors can license data only where their contracts with providers allow it. Ask how the holder's privacy notices and business associate agreements treat de-identification and onward licensing. Federal and state rules add limits for some record types, including substance use treatment, behavioral health and minors' records, so have counsel check them for each source.

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 25 November 2026.

See if your company qualifies