lab-reports-sample / README.md
jkjarvis's picture
Add sample and dataset card
7af9b06 verified
|
Raw History Blame Contribute Delete
5.39 kB
---
license: cc-by-4.0
pretty_name: "Datadhara Sample: De-identified Diagnostic Lab Results"
language:
- en
task_categories:
- table-question-answering
- tabular-classification
- document-question-answering
size_categories:
- n<1K
tags:
- medical
- healthcare
- lab-results
- clinical
- information-extraction
- de-identified
- dataset-sample
configs:
- config_name: default
data_files:
- split: train
path: datadhara-sample-lab-reports.csv
---
# Diagnostic lab reports: sample
Structured lab results: test name, value, unit, reference range, high/low flag and method, one row per test. This file shows the schema and labels of the lab data that [Datadhara](https://datadhara.in/healthcare-data-for-ai?utm_source=huggingface&utm_medium=dataset&utm_campaign=nov26-global) licenses to AI teams.
## What this is
- 32 rows: 8 reports with 4 tests each, one row per test.
- 11 tests: HbA1c, fasting plasma glucose, LDL cholesterol, TSH, vitamin D (25-OH), haemoglobin, WBC count, platelet count, serum creatinine, ALT (SGPT), C-reactive protein.
- Each result has a `flag` (`high`, `low` or `normal`) against its reference range, and the assay method (for example HPLC, CLIA, Jaffe, IFCC).
- Each row records whether it was taken from a PDF report or a scanned printed report.
- Patients are identified only by a pseudonymous ID. Ages are five-year bands and dates are months.
The rows in this file were created to show the format, labels and de-identification. They do not come from real patients or labs, and the `consent_ref` values are format examples. Licensed deliveries contain real records collected under written agreements.
## Fields
| Column | Type | Description |
|---|---|---|
| `report_id` | string | Report identifier, e.g. `LR-5001` |
| `patient_id` | string | Pseudonymous patient ID, e.g. `pt_063dc1dc` |
| `age_band` | string | Five-year age band, e.g. `45-49` |
| `sex` | string | `F` or `M` |
| `collected_month` | string | Sample collection month, `YYYY-MM` (exact date coarsened) |
| `test_name` | string | Test name as reported |
| `value` | number | Result value |
| `unit` | string | Unit, e.g. `mg/dL`, `mIU/L`, `x10^9/L` |
| `ref_range` | string | Reference range as printed, e.g. `4.0-5.6`, `<100`, or sex-specific ranges |
| `flag` | string | `high`, `low` or `normal` |
| `method` | string | Assay or measurement method |
| `source_format` | string | `PDF report` or `printed report (scanned)` |
| `consent_ref` | string | Reference to the source agreement and its version, e.g. `src-0414 / v1` |
## Example row
```json
{
"report_id": "LR-5002",
"patient_id": "pt_2c0aff4b",
"age_band": "30-34",
"sex": "M",
"collected_month": "2026-09",
"test_name": "HbA1c",
"value": 8.5,
"unit": "%",
"ref_range": "4.0-5.6",
"flag": "high",
"method": "HPLC",
"source_format": "PDF report",
"consent_ref": "src-0414 / v1"
}
```
## Load it
```python
from datasets import load_dataset
ds = load_dataset("datadhara/lab-reports-sample", split="train")
```
## Intended uses
Use this sample to check the schema and label set against your pipeline before requesting real data. The licensed data is used for:
- Lab-result extraction and structuring from PDFs and scans
- Clinical NLP over structured and semi-structured results
- Evaluation sets for medical assistants
## Limitations of this sample
- Structured values only. The full data can include the source PDFs and scans; none are in this repository.
- 8 reports is enough to see the format, not to train or benchmark anything.
- Reference ranges are stored as printed strings, not parsed into numbers.
## Full dataset and licensing
This sample file is released under CC BY 4.0, as on the [samples page](https://datadhara.in/samples?utm_source=huggingface&utm_medium=dataset&utm_campaign=nov26-global).
The full data is not on Hugging Face. It is available under a commercial licence. Datadhara sources lab reports, outpatient notes, prescriptions and discharge summaries directly from diagnostic labs, clinics and hospitals, as PDFs, scans and structured values. Test panels, document types and volume are agreed per project. Licences cover training and evaluating commercial models, and can be exclusive or non-exclusive.
To request data, describe what you need at [datadhara.in/healthcare-data-for-ai](https://datadhara.in/healthcare-data-for-ai?utm_source=huggingface&utm_medium=dataset&utm_campaign=nov26-global) or email hello@datadhara.in.
## Consent and de-identification
As described in Datadhara's [methodology](https://datadhara.in/methodology?utm_source=huggingface&utm_medium=dataset&utm_campaign=nov26-global):
- Every source organisation signs a written agreement that explicitly covers use for AI training.
- Patient names, record numbers, phone numbers, addresses and ID numbers are removed before data leaves the source. Exact dates are shifted or coarsened, and rare conditions in small clinics are reviewed so they can't single a patient out.
- The identifier categories in the U.S. HIPAA Safe Harbor method are used as a baseline checklist, alongside the requirements of the law that applies to the source.
- Every record carries a `consent_ref` linking it to its source agreement. In a real delivery, that reference resolves to the signed agreement.
## Citation
The same sample files are archived on Zenodo: https://doi.org/10.5281/zenodo.24349905