Skip to content

Dataset

Oracle Health (Cerner Millennium) EHR datasets for AI training

A Cerner dataset is a de-identified extract of the tables behind a hospital's Oracle Health Millennium EHR, formerly Cerner Millennium: PERSON and ENCOUNTER rows, ORDERS with their ORDER_ACTION history, CLINICAL_EVENT results, vitals and documents with note text from CE_BLOB, DIAGNOSIS, PROCEDURE and CHARGE, plus the CODE_VALUE code sets that explain them. SourceX sources it to a buyer's spec from established hospitals that run Millennium. 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
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
Typical systems
Oracle Health Millennium (Cerner Millennium) with PowerChart, FirstNet, SurgiNet, PharmNet, PathNet and RadNet where the hospital runs them
Typical history
From the hospital's Millennium go-live; earlier history may exist only as loaded documents; specify encounter dates and patient classes
Modality
Structured encounter, order and event rows; note and report text decompressed from CE_BLOB
Delivery formats
One Parquet or CSV file per Millennium table with its CODE_VALUE rows, or JSONL per encounter with nested orders, events and plain-text note bodies
Preparation
PERSON_ID, ENCNTR_ID and PRSNL keys pseudonymized consistently; alias identifiers removed; dates treated per the agreed method; note text de-identified after decompression, before delivery
Licensing
Scoped per Millennium domain, facility set, table list and date range; permitted use agreed per license
Availability
Sourced to your spec; depends on a hospital whose agreements permit the extract, 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_keystringPseudonym for PERSON.PERSON_ID, the same on every table, issued after combined persons are resolved.
encounterobjectThe ENCOUNTER row: ENCNTR_TYPE_CD, MED_SERVICE_CD, location codes, REG_DT_TM, DISCH_DT_TM and DISCH_DISPOSITION_CD.
encounter_aliasesarrayENCNTR_ALIAS rows reduced to alias type, such as FIN NBR or MRN, and a token in place of the alias.
ordersarrayORDERS rows for the encounter: CATALOG_CD, CATALOG_TYPE_CD, ORDER_MNEMONIC, ORDER_STATUS_CD, CLINICAL_DISPLAY_LINE and any TEMPLATE_ORDER_ID parent.
order_actionsarrayORDER_ACTION rows by ACTION_SEQUENCE: ACTION_TYPE_CD, ACTION_DT_TM, ordering provider token and COMMUNICATION_TYPE_CD.
clinical_eventsarrayCLINICAL_EVENT rows: EVENT_ID, EVENT_CD, EVENT_CLASS_CD, RESULT_VAL as stored text, RESULT_UNITS_CD, NORMALCY_CD, RESULT_STATUS_CD, EVENT_END_DT_TM and ORDER_ID.
parent_event_idstringPARENT_EVENT_ID from CLINICAL_EVENT, tying a document section, form answer or panel component to its parent event.
event_versionsobjectVALID_FROM_DT_TM and VALID_UNTIL_DT_TM of each CLINICAL_EVENT row, with a flag for the current version.
document_textstringText decompressed from CE_BLOB.BLOB_CONTENTS for a document event, sequence rows joined, converted to plain text and de-identified.
diagnosesarrayDIAGNOSIS rows with DIAG_TYPE_CD, priority and the NOMENCLATURE source vocabulary, identifier and string.
proceduresarrayPROCEDURE rows with the NOMENCLATURE code, PROC_DT_TM and priority.
chargesarrayCHARGE rows: CHARGE_DESCRIPTION, ITEM_QUANTITY, ITEM_PRICE, SERVICE_DT_TM, CHARGE_TYPE_CD and the ORDER_ID behind the charge.
personnelobjectPRSNL tokens with POSITION_CD display for whoever performed, verified or signed an event.
code_valuesarrayCODE_VALUE rows for every code referenced: CODE_VALUE, CODE_SET, DISPLAY, DISPLAY_KEY, CDF_MEANING and ACTIVE_IND.
Sample recordIllustrative

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

Example record

{
  "person_key": "p_7c21e09a",
  "encounter": {
    "encntr_key": "e_41bb7f",
    "encntr_type": {
      "code_value": 309308,
      "display": "Inpatient"
    },
    "reg_dt_tm": "2024-02-10T22:41:00Z",
    "disch_dt_tm": "2024-02-14T16:05:00Z"
  },
  "orders": [
    {
      "order_key": "o_90117",
      "catalog": {
        "code_value": 2752871,
        "display": "Potassium Level"
      },
      "order_status": "Completed",
      "clinical_display_line": "Blood, Stat collect, Once"
    }
  ],
  "order_actions": [
    {
      "order_key": "o_90117",
      "action_sequence": 1,
      "action_type": "Order",
      "action_dt_tm": "2024-02-11T03:14:00Z"
    },
    {
      "order_key": "o_90117",
      "action_sequence": 2,
      "action_type": "Complete",
      "action_dt_tm": "2024-02-11T04:02:00Z"
    }
  ],
  "clinical_events": [
    {
      "event_id": "ev_55120",
      "event_cd": {
        "code_value": 2700653,
        "display": "Potassium Lvl"
      },
      "event_class": "NUM",
      "result_val": "6.4",
      "result_units": "mmol/L",
      "result_status": "Auth (Verified)",
      "order_key": "o_90117",
      "valid_until_dt_tm": "2024-02-11T05:20:00Z",
      "current": false
    },
    {
      "event_id": "ev_55120",
      "result_val": "5.1",
      "result_status": "Modified",
      "valid_until_dt_tm": "2100-12-31T00:00:00Z",
      "current": true
    },
    {
      "event_id": "ev_55388",
      "parent_event_id": "ev_55387",
      "event_cd": {
        "code_value": 2820507,
        "display": "Hospitalist Progress Note"
      },
      "event_class": "DOC",
      "result_status": "Auth (Verified)",
      "document_text": "Hospital day 2. Initial potassium hemolyzed, corrected value 5.1. Holding lisinopril. Discussed with [NAME]."
    }
  ],
  "code_values": [
    {
      "code_value": 2700653,
      "code_set": 72,
      "display": "Potassium Lvl",
      "display_key": "POTASSIUMLVL",
      "cdf_meaning": null
    }
  ]
}

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

What AI teams use it for

Ground note models in the chart

Note text from CE_BLOB joins by encounter and time to the orders and results around it.

Learn order-to-result sequences

ORDER_ACTION rows and the CLINICAL_EVENT rows carrying the same ORDER_ID show an order placed, resulted and corrected.

Train local code mapping

Site-built event codes with displays, units and example values are inputs for models that map local codes to LOINC.

Support charge capture

CHARGE rows tied to orders and encounters, beside DIAGNOSIS and PROCEDURE rows, show which care became a billed line.

Evaluate chart question answering

Versioned events give ground truth for questions such as the latest verified value at a stated time.

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

What makes this data valuable

Code sets delivered

Every _CD value in the extract resolves to a CODE_VALUE row with code set, display and meaning.

Version columns kept

VALID_UNTIL_DT_TM is present, so current rows can be selected or corrections studied.

Blob coverage reported

The delivery reports the share of document events that came with text, by document type.

Parent links intact

PARENT_EVENT_ID resolves inside the delivery, so form answers keep their parent.

In-error results labeled

RESULT_STATUS_CD is delivered, and results charted in error are flagged, not removed.

One key per patient

Combined persons are resolved before pseudonyms are issued, and inactive rows are marked.

Process

Cerner dataset

This page covers oracle Health (Cerner) EHR records.Illustrative

One CLINICAL_EVENT table, read through each site's code sets

Millennium does not keep one table for lab results, another for vital signs and another for notes. Nearly everything charted about a patient is a row in CLINICAL_EVENT: a potassium value, a blood pressure, a medication administration, an answer on a nursing form, a physician note. Two codes say what a row is. EVENT_CD names the thing observed and EVENT_CLASS_CD names the kind of row, such as numeric, text, medication or document. RESULT_VAL holds the value as text, numeric results included. Rows nest through PARENT_EVENT_ID: a document has child events for its sections and a charted form sits above its answers, so an extract that drops that column delivers answers without their form.

Those codes mean something only inside one Millennium domain. Every column whose name ends in _CD holds a number from CODE_VALUE. Values that ship with the product can repeat from client to client, but the ones a hospital builds are numbered in its own domain. Event codes live in code set 72 and each client builds its own, so the same test carries a different number at each one. One hospital has a single event code for potassium, another has separate codes for serum, whole blood and point of care. CDF_MEANING gives some code sets a vendor-defined meaning, but most event codes have none, so DISPLAY is often all there is. Combining two hospitals therefore means mapping each site's event codes one by one, to LOINC or to your own concept list.

A corrected result does not overwrite its row. A new CLINICAL_EVENT row is written under the same EVENT_ID and the earlier row's VALID_UNTIL_DT_TM is closed, while the current row carries a far-future date. An extract with no filter on that column counts corrected results twice, and one filtered to current rows loses the corrections, so decide which you want. Orders work differently: ORDERS holds each order's current state and ORDER_ACTION holds one row per action, which is where order, modify and discontinue times live.

Note text sits compressed in CE_BLOB, apart from its event rows

The CLINICAL_EVENT row for a note carries its type, author, time and status, but not its words. The body is in CE_BLOB under the same EVENT_ID, in BLOB_CONTENTS, usually compressed with Cerner's own routine and flagged by COMPRESSION_CD. A long body can span several rows ordered by BLOB_SEQ_NUM, and CE_BLOB rows carry their own VALID_UNTIL_DT_TM, so a revised note has more than one body. A generic database export copies those bytes as they are. Without decompression they are unreadable, and without the join back to the document event nobody can say which note, encounter or patient a body belongs to.

Extracts are typically written in CCL, the Cerner Command Language behind Discern Explorer. Hospitals whose Millennium is remotely hosted commonly work through CCL instead of a SQL connection to the database, and CCL has its own routines for uncompressing blobs and resolving code displays. Decompressed bodies are often rich text that still needs converting, and a marker the compression routine leaves at the end of a body needs trimming. Not every document is in CE_BLOB. CE_BLOB_RESULT records where and in what format a document is stored, and scanned or outside documents are often in a separate image store with only a handle in Millennium.

To test a sample, count document-class events per encounter and the share that arrived with a body. Search the bodies for rich text control words and the leftover compression marker, and confirm that multi-row blobs were joined before decompression. Then resolve every _CD value in the sample against the delivered CODE_VALUE rows. Last, ask whether the rows came from Millennium tables or from another route, such as the FHIR APIs or a reporting warehouse, which return a mapped subset.

What to check before licensing

  • Have the hospital and your counsel check its Oracle Health agreement, and any remote hosting terms, on table-level extracts, sharing of table and column names, and the intended use of exported data.
  • Confirm the extract is from Millennium and not the separate product Oracle's documentation lists as Oracle Health EHR, which domain it came from, that the domain is production and not test, the facilities in scope and the encounter date range.
  • Confirm with counsel the de-identification method and jurisdiction, since these are patient health records, and ask how dates, ages, alias identifiers and personnel names were treated.
  • Request the CODE_VALUE rows for every code referenced, with CODE_SET, DISPLAY and CDF_MEANING, and resolve every _CD column in the sample.
  • Ask how CE_BLOB bodies were decompressed, joined across BLOB_SEQ_NUM and converted from rich text, and measure the share of document events delivered with text.
  • Ask whether CLINICAL_EVENT was filtered to current rows on VALID_UNTIL_DT_TM, and whether in-error results and inactive, combined persons were kept, dropped or flagged.
  • Ask which records entered Millennium through interfaces or a legacy data load, as CONTRIBUTOR_SYSTEM_CD indicates, and which systems outside Millennium hold the rest.

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 can't Cerner extracts from two hospitals be merged directly?

Because the codes that matter most are local. Coded columns in Millennium hold CODE_VALUE numbers, and event codes and order catalog entries are built by each client and numbered in its own domain. The same lab test has different numbers, names and granularity at each site. Merging needs each site's CODE_VALUE rows and a mapping to a shared vocabulary.

Does a Cerner dataset include the text of clinical notes?

Only if the extract handles CE_BLOB. Note metadata is a CLINICAL_EVENT row and the body is a compressed blob in CE_BLOB under the same EVENT_ID. A delivery needs decompression, conversion from rich text and de-identification of the result. Scanned and outside documents may sit in an image store, so ask for coverage by document type.

How are corrected or in-error results represented?

As versions and statuses, not overwrites. A correction writes a new CLINICAL_EVENT row under the same EVENT_ID and closes the earlier row's VALID_UNTIL_DT_TM, and RESULT_STATUS_CD marks rows as modified or in error. Ask whether the extract kept only current rows. Keep earlier versions if you want examples of corrections, and filter them if you want the final chart.

What is CCL and why does it matter for an extract?

CCL is the Cerner Command Language, the query language of Discern Explorer, and Millennium extracts are typically written in it. It reads Millennium tables with SQL-like statements and has routines for resolving code displays and uncompressing blobs. Whoever writes the CCL decides which tables, filters and joins you receive, so ask for a description of each program.

Can the data come through FHIR instead of Millennium tables?

Yes, but it is a different dataset. Oracle documents FHIR R4 APIs for the Millennium platform that return resources such as Encounter, Observation and DocumentReference. They present a mapped subset built for interoperability, and site-specific events, order action history and version rows may not appear. A table extract keeps more structure and takes more site knowledge to read, so state the route in your spec.

Is SourceX affiliated with Oracle Corporation?

Oracle Health Millennium, formerly Cerner Millennium, is named to identify the system the records come from. That does not imply a partnership with or endorsement by Oracle Corporation. The records belong to the business that runs Oracle Health Millennium, 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.

  • 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

  • Epic EHR records

    Clarity or Caboodle tables for a patient cohort: contacts, orders, results, flowsheets, notes, messages and billing accounts

  • MEDITECH hospital EHR records

    Hospital module records joined per account: registration, orders, nursing and physician documentation, lab, pharmacy, imaging, abstracting and billing

  • Veradigm (Allscripts) EHR records

    Ambulatory chart records from one practice's Allscripts-lineage EHR, with the task list that routed the work around each encounter

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