Skip to content

Dataset

Clinical laboratory results datasets for AI training

A laboratory results dataset is a set of clinical laboratory records that run from the test order to the reported result: the specimen and its collection time, the analyzer and method, each value with its units, reference range and abnormal flags, plus repeat, reflex and microbiology results. SourceX sources these to a buyer's specification from established hospital laboratories, independent and reference laboratories and other organizations with rights to the records. 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
Order-to-result laboratory records with specimen, method, units, reference ranges, flags, reflex tests and microbiology
Typical systems
Epic Beaker, Oracle Health PathNet, Sunquest and Orchard Harvest (both now Clinisys), SCC SoftLab, MEDITECH, and instrument middleware
Typical history
Specified by the buyer in tests, years and repeat results per patient; limited by LIS conversions and analyzer changes
Modality
Structured results with local and standard codes, plus result comments and narrative reports
Delivery formats
Agreed per order; result-level Parquet or CSV, HL7 v2 result messages, or FHIR Observation and DiagnosticReport JSON
Preparation
De-identified before delivery under a method recorded per source; accession numbers replaced; dates shifted or reduced
Licensing
Permitted use agreed per license; the laboratory's right to license reviewed per source
Availability
Sourced to your spec from laboratories that hold the records; 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
accession_idstringPseudonymous accession number grouping the specimens and tests from one collection.
patient_refobjectPseudonymous patient key, stable across accessions, with the age band and sex that reference ranges depend on.
test_orderobjectThe orderable as placed: local order code, priority, ordering setting, order time, and whether it was an original order, reflex, add-on or repeat.
specimenobjectSpecimen type, container, collection and receipt times, and condition such as hemolysis, clotting, insufficient quantity or rejection.
test_codeobjectThe laboratory's own result code and name, the LOINC code where mapped, and how the mapping was made.
result_valueobjectThe result as reported: raw string, parsed number, comparator for values beyond the measuring range, unit string and UCUM unit.
reference_rangeobjectThe range printed with the result, as text and parsed limits, for the patient's age and sex group.
flagsobjectAbnormal and critical flags, the delta-check outcome against the previous result, and instrument flags.
methodobjectAnalyzer, assay principle and performing laboratory, in-house or send-out, with reagent lot where held.
result_statusobjectPreliminary, final or corrected, with the earlier value on a correction, who or what verified it, and result time.
critical_callobjectCritical value notification: time, the role reached and whether read-back was documented.
reflex_and_addonsarrayTests added by a reflex rule or a later request, and repeat orders that followed, each linked to the result that prompted it.
microbiologyobjectCulture records as successive reports: source site, Gram stain, organisms, quantity, and susceptibilities with MIC and interpretation.
deidobjectThe de-identification method, how dates and times were shifted, and the test classes left out.
Sample recordIllustrative

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

Example record

{
  "accession_id": "acc_5e19b7",
  "deid": {
    "method": "expert_determination",
    "times": "minutes_from_order",
    "excluded_tests": [
      "genetic",
      "hiv",
      "toxicology"
    ]
  },
  "patient_ref": {
    "key": "pt_c40a",
    "age_band": "60-69",
    "sex": "M"
  },
  "test_order": {
    "orderable": "BMP",
    "priority": "stat",
    "setting": "emergency",
    "origin": "original_order",
    "ordered_min": 0
  },
  "specimen": {
    "type": "plasma",
    "container": "lithium_heparin",
    "collected_min": 6,
    "received_min": 19,
    "hemolysis": "none"
  },
  "test_code": {
    "local": "K",
    "local_name": "Potassium",
    "loinc": "2823-3",
    "mapping": "validated_by_lab"
  },
  "result_value": {
    "raw": "2.7",
    "numeric": 2.7,
    "comparator": null,
    "unit": "mmol/L",
    "ucum": "mmol/L"
  },
  "reference_range": {
    "text": "3.5-5.1",
    "low": 3.5,
    "high": 5.1
  },
  "flags": {
    "abnormal": "LL",
    "delta_check": "failed",
    "previous": {
      "numeric": 4.1,
      "days_before": 2
    }
  },
  "method": {
    "analyzer": "chem_02",
    "principle": "indirect_ion_selective_electrode",
    "performing_lab": "main"
  },
  "result_status": {
    "status": "final",
    "rerun_before_release": true,
    "verified_by": "technologist",
    "resulted_min": 41
  },
  "critical_call": {
    "called_min": 44,
    "to_role": "ed_nurse",
    "read_back": true
  },
  "reflex_and_addons": [
    {
      "origin": "add_on",
      "requested_by": "physician",
      "requested_min": 58,
      "local": "MG",
      "raw": "1.4",
      "unit": "mg/dL",
      "flag": "L"
    },
    {
      "origin": "repeat_order",
      "accession_id": "acc_5e1a02",
      "collected_min": 251,
      "local": "K",
      "raw": "3.4",
      "flag": "L"
    }
  ],
  "microbiology": null
}

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

What AI teams use it for

Map local tests to standard codes

Local code, name, specimen, units and method paired with a laboratory-validated LOINC code train and test mapping models.

Model patient trajectories

Repeated measurements with exact intervals support forecasting of the next value, kidney injury or deterioration.

Learn ordering and reflex logic

Result-then-next-order sequences show which follow-up a finding prompted, by rule or by clinician request.

Detect specimen and result errors

Delta-check failures, hemolyzed specimens, reruns and corrected results are labeled examples of numbers not to trust.

Read microbiology reports

Successive culture reports teach extraction of organisms and susceptibilities, and reasoning on preliminary results.

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

What makes this data valuable

Local and standard codes together

Each row keeps the laboratory's own code beside any LOINC code.

Range on every result

The reference range printed at the time travels with the value, not a current lookup table.

Method on record

Analyzer, assay and performing laboratory are stated, with the dates methods changed.

Raw strings kept

The value as reported is preserved beside the parsed number and comparator.

Four timestamps

Order, collection, receipt and result times let turnaround and sequence be rebuilt.

Stable patient key

One key per person across years and client accounts makes series possible.

Process

Laboratory results dataset

This page covers clinical laboratory orders and results.Illustrative

A number needs its units, range and method

A lab value is a measurement made by one method on one analyzer, reported in the units and against the reference range that laboratory validated. Strip those and the number stops being comparable. Hemoglobin is reported in grams per deciliter at one site and grams per liter at another. A high-sensitivity troponin and an older troponin assay differ in scale and in the cutoff that matters. Immunoassay results such as TSH, PSA and tumor markers can differ between manufacturers on the same specimen. In a long series, a replaced analyzer shows up as a step that no patient caused.

Coding is the second problem. Every laboratory information system has its own test dictionary, so glucose may be GLU, GLUC or a numeric code depending on the site. LOINC identifies a test by its component, property, timing, specimen system, scale and method. Mapping local codes to it is manual work done laboratory by laboratory. It is often partial, may stop at a methodless code, and can be wrong on the specimen, so a serum glucose and a fingerstick glucose land under one code. Units repeat the problem: one white cell count unit is written several ways, and results beyond the measuring range are stored as text with a less-than or greater-than sign.

So the main thing to specify is the harmonization level. Raw means values, units, ranges and local codes as reported. Mapped adds a LOINC code and a UCUM unit beside the originals, with the mapping table and who validated it. Converted means values rescaled to common units and pooled across sites, which is convenient and hides the method differences above. Most buyers should ask for mapped data with the raw strings kept, and do any pooling themselves.

Orders, repeats and reflexes carry the reasoning

Which tests were run, in what order and how soon again says more than any single panel. A troponin repeated a few hours after the first is a clinician ruling a heart attack in or out, and the change between the two values is the finding. A potassium rerun on a fresh specimen after a hemolyzed one is the laboratory doubting its own number. A magnesium added to a tube already in the lab follows a low potassium. Reflex rules record policy: an abnormal TSH triggers a free T4, a positive screen triggers its confirmation. Ask that each result say whether it came from the original order, a reflex rule, an add-on or a repeat.

The laboratory's own actions are labels too. A delta check compares a result with the patient's previous one and holds it for review when the change is implausible, which is one way mislabeled specimens are caught. A critical value starts a documented call: who was reached, when, and that the value was read back. Microbiology is a sequence by design, with a Gram stain first, then growth, the organism's identification, and susceptibilities with an interpretation for each drug. A final report alone drops the hours in which treatment was chosen on the preliminary one.

All of this depends on series, so specify repeat results per patient for each test and the span they must cover. A hospital laboratory holds dense inpatient series but little after discharge. A reference laboratory may follow a patient for years, but only through the tests its clients sent, and may hold one person under several client accounts. And absence is not a normal result: a test nobody ordered was never measured.

What to check before licensing

  • Get in writing which de-identification method each source used. Serial results need intervals and time of day, so ask whether one date offset per patient covers every accession, and confirm the method and jurisdiction with counsel.
  • Establish the laboratory's right to license. Results are produced for ordering providers, often under client contracts that may limit other uses, so ask which clients' results are in scope and have counsel read the terms.
  • Ask which test classes were excluded or handled separately, including genetic tests, HIV tests and toxicology screens, and which federal and state rules the holder considered.
  • Request the local-to-LOINC mapping table with who built it, when it was validated and what share of result volume it covers.
  • On the sample, list the distinct unit strings and reference ranges per test code, and look for text values in numeric columns.
  • Ask for the dates of analyzer, method and LIS changes per test, so a step in a series can be explained.
  • Search result comments and narrative reports for names and phone numbers, such as the ordering provider or the person who took a critical call.

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

Are local test codes mapped to LOINC?

Sometimes, and rarely in full, so ask for mapping coverage per source. Laboratories result tests under their own codes and map to LOINC when an interface or a reporting requirement calls for it. Routine chemistry and hematology are more likely to be mapped than send-out, microbiology and newly added tests. Request the local code on every row and the mapping table with who validated it.

Why can't I pool the same test from two laboratories?

Because one test name can hide different methods, units and reference ranges. Two laboratories may report in different units, run assays from different manufacturers that do not read alike, and validate their own ranges. Pooling is safer for well-standardized analytes and riskier for immunoassays. Keep laboratory, analyzer and method on every row, and compare each value with its own range.

Can results be linked over time for the same patient?

Yes, where the laboratory has one identifier for the person, which you should confirm per source. A hospital laboratory usually keys results to the medical record number. A reference laboratory receives patients from many client accounts and may hold one person under several identifiers unless it runs its own matching. Ask how the patient key was built and whether one date offset per patient covers every accession.

Does a laboratory have the right to license results it ran for other providers?

Not always, so treat it as a question for each source. A laboratory produces the result, but for an ordering provider and often under a client contract that may limit other uses. A hospital laboratory's rights may differ between its own patients and its outreach clients, and a laboratory system vendor holds results only on a laboratory's behalf. Ask how the right to license was established and have counsel read the agreements.

How are genetic, HIV and toxicology results handled?

They should be scoped separately and are often left out. Genetic results, HIV tests, drug screens and some reproductive and sexual health tests can be subject to rules beyond the general health privacy framework, depending on the jurisdiction, and genetic data can be identifying in itself. Say in your request whether you need any of them, ask which test classes the holder excluded, and have counsel confirm which federal and state rules apply.

Do laboratory records include diagnoses and outcomes?

Mostly not. A laboratory knows what was ordered, on which specimen and what it reported. It may hold diagnosis codes sent with the order for billing and the ordering location or specialty, but not the clinician's assessment, the treatment or what happened to the patient. If you need those, specify linkage to chart or claims records from the same organization, which is a separate source with its own rights review.

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