Dataset
Epic EHR records datasets for AI training
An Epic dataset is a de-identified extract of a health system's Epic records, usually tables from the Clarity or Caboodle reporting databases instead of the live system. It covers patient encounters and hospital stays, procedure and medication orders, result components, flowsheet measures, clinical notes, problem lists, MyChart messages and hospital and professional billing transactions. SourceX sources it to a buyer's spec from established healthcare organizations that run Epic. Each dataset is de-identified before delivery and licensed for an agreed permitted use, and buyers should confirm the de-identification method and jurisdiction with counsel.
Dataset manifest
Sourced to your spec- What it is
- Clarity or Caboodle tables for a patient cohort: contacts, orders, results, flowsheets, notes, messages and billing accounts
- Typical systems
- Epic with EpicCare Ambulatory and Inpatient, ASAP, Beaker, Willow, MyChart and Resolute billing, read through Clarity or Caboodle
- Typical history
- Varies by organization; specify patients and years, and ask the go-live date and what was converted
- Modality
- Relational tables keyed on patient and contact, with note and message text stored as numbered lines
- Delivery formats
- Parquet or CSV per table with category lookups and dictionaries, or JSONL nested per patient
- Preparation
- De-identified before delivery; patient, contact, account, order and provider IDs re-keyed; dates handled under the chosen method
- Licensing
- Scoped per cohort and table set; permitted use agreed per license; Epic license terms and third-party code sets checked by owner and buyer
- Availability
- Sourced to your spec; note, flowsheet and MyChart text depend on what the organization extracts, and 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 |
|---|---|---|
| pat_key | string | Re-keyed PATIENT.PAT_ID, the internal patient ID that Clarity tables join on; the PAT_MRN_ID record number is removed. |
| contact | object | One PAT_ENC row: re-keyed PAT_ENC_CSN_ID, contact date, ENC_TYPE_C resolved through its ZC_ category table, department key and appointment status. |
| hospital_stay | object | PAT_ENC_HSP columns for a hospital contact: admission and discharge times, ADT patient class and dispositions, with CLARITY_ADT transfer events. |
| proc_orders | array | ORDER_PROC rows on the contact with the CLARITY_EAP procedure, order type, status, ordering time and the parent or child order each is tied to. |
| result_components | array | ORDER_RESULTS lines under a procedure order: component, ORD_VALUE text, ORD_NUM_VALUE number, reference range, unit and abnormal flag. |
| med_orders | array | ORDER_MED rows with the CLARITY_MEDICATION record, sig, dose, route and ordering mode, plus MAR_ADMIN_INFO administration lines. |
| flowsheet_measures | array | IP_FLWSHT_MEAS rows: FLO_MEAS_ID, recorded and entry times, MEAS_VALUE as stored text and the template charted on. |
| flowsheet_dictionary | object | IP_FLO_GP_DATA and IP_FLT_DATA rows for every flowsheet row and template delivered: display name, value type and, where the site filled them in, units and list choices. |
| note_contacts | array | HNO_INFO notes with their NOTE_ENC_INFO revisions (status, author type, filed time) and text rebuilt from HNO_NOTE_TEXT lines. |
| problem_entries | array | PROBLEM_LIST rows for the patient: CLARITY_EDG diagnosis, noted and resolved dates, status and chronic flag. |
| mychart_messages | array | MYC_MESG rows with message type, created time, direction and parent message, the linked contact where one exists, and body text where extracted. |
| hospital_account | object | HSP_ACCOUNT for the stay: account class, totals, final DRG and coded diagnoses, with HSP_TRANSACTIONS charges, payments and adjustments. |
| pb_transaction_lines | array | CLARITY_TDL_TRAN detail lines for professional billing: detail type, post and service dates, procedure, amount and matched transaction. |
| extract_source | object | Whether tables came from Clarity or Caboodle, the extract date and the tables and columns delivered. |
Field names from the table above; values are masked placeholders.
Example record
{
"pat_key": "pt_58c1f0",
"contact": {
"csn_key": "csn_7731a9",
"contact_date": "2023-02-11",
"enc_type": "Hospital Encounter",
"department_key": "dep_ed_02"
},
"hospital_stay": {
"hosp_admsn_time": "2023-02-11T21:42:00",
"hosp_disch_time": "2023-02-14T13:05:00",
"adt_pat_class": "Inpatient",
"ed_disposition": "Admit"
},
"proc_orders": [
{
"order_proc_key": "op_41aa07",
"proc_name": "LACTIC ACID, PLASMA",
"order_status": "Completed",
"parent_order_key": "op_41a9f2"
}
],
"result_components": [
{
"order_proc_key": "op_41aa07",
"component": "LACTATE",
"ord_value": "3.4",
"ord_num_value": 3.4,
"reference_high": "2.2",
"result_flag": "High"
}
],
"med_orders": [
{
"medication": "CEFTRIAXONE 2 G IVPB",
"ordering_mode": "Inpatient",
"mar_admins": [
{
"taken_time": "2023-02-11T22:26:00",
"mar_action": "New Bag"
}
]
}
],
"flowsheet_measures": [
{
"flo_meas_id": "fm_bp",
"template": "ED VITALS",
"recorded_time": "2023-02-11T21:50:00",
"meas_value": "92/58"
},
{
"flo_meas_id": "fm_wt",
"meas_value": "2716.8"
},
{
"flo_meas_id": "fm_3040112",
"template": "ED SEPSIS SCREEN",
"meas_value": "Positive"
}
],
"flowsheet_dictionary": {
"fm_wt": {
"disp_name": "Weight",
"unit": "oz"
},
"fm_3040112": {
"disp_name": "Sepsis screen result",
"site_built": true
}
},
"note_contacts": [
{
"ip_note_type": "H&P",
"revisions": [
{
"note_status": "Signed",
"author_type": "Resident"
},
{
"note_status": "Addendum",
"author_type": "Physician"
}
],
"text": "[NAME] is a 67 y.o. female who presents with fever and flank pain x 2 days. ***"
}
],
"mychart_messages": [
{
"msg_type": "Patient Medical Advice Request",
"from_patient": true
}
],
"extract_source": {
"database": "Clarity"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Model care as a sequence of contacts
Contacts in date order, with orders, results and administrations under each, show what was done next after each finding.
Draft replies to patient portal messages
MyChart threads with type and direction pair patient questions with the care team's answers.
Predict deterioration from nursing documentation
Flowsheet measures with recorded times give vital sign series ahead of transfers recorded as ADT events.
Summarize a hospital course
Daily notes, orders and results for one stay, with the signed discharge summary as reference, support training and grading.
Evaluate agents on Epic-shaped data
Agents that query charts can be tested on real Clarity joins and site-built flowsheet rows, not a tidy synthetic schema.
Use-case guides: Healthcare administration AI, Document AI, enterprise search and RAG, Private evaluation sets
What makes this data valuable
Lookups delivered
ZC_ category tables and master tables for procedures, medications and departments come with the facts, so no column is a bare number.
Flowsheet dictionary complete
Every measure row resolves to a named flowsheet row with a value type and unit.
Note revisions kept
Notes carry revisions with status and author type, so signed text can be told from addenda.
Parent and child orders linked
Standing and future orders are tied to the child orders that carry their results.
Encounter types labeled
Contacts carry encounter type and appointment status, so visits, calls and no-shows separate.
Billing reconciles
Hospital account totals match their transactions, and professional lines net by detail type.
License terms
Epic dataset
In Epic, every visit, call and message is a contact
Epic's live database, Chronicles, is not relational. It is a hierarchical store of master files whose records can hold contacts, the dated instances of a record. A patient is a record, and every office visit, hospital stay, telephone call, patient message encounter and refill request is a contact on it. An extract job copies Chronicles into Clarity, a relational database of thousands of tables, typically overnight, and a second job builds the dimensional Caboodle warehouse, largely from Clarity. A licensed extract is nearly always a set of those tables, so it shows the chart as of the last load.
The contact serial number holds the tables together. PAT_ENC has one row per contact, keyed by PAT_ENC_CSN_ID, and orders, encounter diagnoses and notes carry that key back. So PAT_ENC is not a list of visits: an encounter type column separates office visits from telephone encounters, refills and no-show appointments, and a row count overstates care until it is filtered. A hospital stay is generally one contact however long it lasts. Its detail sits in PAT_ENC_HSP, in ADT events and in flowsheet rows that join through an inpatient data ID instead of the serial number.
What history survives depends on whether Chronicles stored a change as a new contact or overwrote an item. Each signed revision or addendum of a note is its own contact, so edit history can be delivered. A standing order spawns child orders and results attach to the child, so order-to-result timing needs that link. The PATIENT table holds one current row, so address and primary care provider reflect the day of the extract, not the visit.
Epic flowsheets and notes need the site's own build
Vital signs, nursing assessments and scores are charted in flowsheets, and Clarity returns them as IP_FLWSHT_MEAS rows: a row ID, a template ID, a recorded time, an entry time and a value held as text. Nothing in the row says what it measures. That is in the flowsheet dictionary, and each organization builds most of its own rows, so the same pain score or sepsis screen has a different ID, name and value list at every site. Values keep their stored form: blood pressure as one string with a slash, weight commonly in ounces, temperature commonly in Fahrenheit.
Note text arrives as numbered lines in HNO_NOTE_TEXT that must be joined in order for each note revision, and much of it came from SmartTools. A SmartText is a whole-note template, a SmartPhrase is a stored block expanded by typing a dot and a short name, and a SmartLink pulls chart data such as the medication list into the note as it is written. Pulled-in values are frozen as text, unfilled blanks can survive as three asterisks, and a note copied forward repeats most of its predecessor. SmartLinks can also write the patient's name and age into the body, so de-identification has to read note text, not only columns.
On a sample, list the distinct flowsheet row IDs and check that each resolves in the delivered dictionary, then ask the holder for every row ID that carries one concept, such as heart rate. Rebuild a week of progress notes for one stay, measure how much text is new each day, and search for asterisk blanks. Ask whether the organization extracts note text and MyChart message bodies to Clarity at all.
What to check before licensing
- Have the health system and your counsel check that its Epic license and data-sharing policies allow the extract, and read Epic's terms on exported data and API use.
- Ask how Epic's proprietary Clarity or Caboodle table definitions and third-party code sets such as CPT are handled under their own licenses.
- Confirm with counsel the de-identification method and jurisdiction, and check that patient IDs and contact serial numbers were re-keyed the same way in every table.
- Ask whether the source was Clarity, Caboodle, a FHIR API or an electronic health information export, and get the list of tables and columns delivered.
- Check that every flowsheet row ID in IP_FLWSHT_MEAS resolves in the delivered IP_FLO_GP_DATA dictionary, and that ZC_ lookup tables cover every category column.
- Filter PAT_ENC by encounter type and appointment status, and compare completed visits with the raw row count.
- Net professional billing detail lines by detail type before adding amounts, since voids and matches appear as their own lines.
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
Should an Epic extract come from Clarity or Caboodle?
It depends on whether you need Epic's full detail or a modeled view. Clarity mirrors Chronicles closely and holds nearly everything the organization extracts, including note text lines and raw flowsheet measures, at the cost of many joins. Caboodle's fact and dimension tables are easier to query but hold only what was modeled into them.
Why does the same vital sign have different IDs at different Epic sites?
Because each organization builds most of its own flowsheet rows. Epic releases some standard rows, and sites add their own for assessments, scores and devices. A measure row holds only a row ID and a text value, so ask for the flowsheet dictionary and the holder's mapping to the concepts you need.
Are clinical notes and MyChart messages included?
They can be, where the organization extracts their text and agrees to release it. Note text is stored as numbered lines per note revision, and MyChart messages carry a type, a direction and a thread. Free text is the hardest part to de-identify, so specify note and message types and review a sample first.
Can records from several Epic organizations be combined?
Yes, but they do not line up by ID. Each organization's build has its own patient IDs, contact serial numbers, flowsheet rows, order records and category values. Vocabularies such as LOINC and RxNorm help only where a site mapped them. A patient seen at two organizations appears as two unlinked patients after de-identification.
How is patient information in Epic data de-identified?
Records are de-identified before delivery, and the method used is recorded for each dataset. In Epic tables that means re-keying patient IDs, contact serial numbers and account, order and note IDs, removing record numbers and contact details, and handling dates. Notes and messages need review at the text level, because templates write names into the body. Confirm the method and jurisdiction with counsel.
Is SourceX affiliated with Epic Systems Corporation?
Epic is named to identify the system the records come from. That does not imply a partnership with or endorsement by Epic Systems Corporation. The records belong to the business that runs Epic, 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.
Related datasets
- 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
- Oracle Health (Cerner) EHR records
Persons, encounters, orders with action history, clinical events (results, vitals, medication administrations, documents), diagnoses, procedures and charges from one Millennium domain, with its code sets
- MEDITECH hospital EHR records
Hospital module records joined per account: registration, orders, nursing and physician documentation, lab, pharmacy, imaging, abstracting and billing
- athenaOne practice and clinical records
Scheduling, clinical and billing records of a medical group on athenaOne: appointments, encounters, classed clinical documents, orders, results, claims and transactions
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 26 November 2026.