jkjarvis commited on
Commit
7af9b06
·
verified ·
1 Parent(s): bc24c88

Add sample and dataset card

Browse files
Files changed (2) hide show
  1. README.md +120 -0
  2. datadhara-sample-lab-reports.csv +33 -0
README.md ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ pretty_name: "Datadhara Sample: De-identified Diagnostic Lab Results"
4
+ language:
5
+ - en
6
+ task_categories:
7
+ - table-question-answering
8
+ - tabular-classification
9
+ - document-question-answering
10
+ size_categories:
11
+ - n<1K
12
+ tags:
13
+ - medical
14
+ - healthcare
15
+ - lab-results
16
+ - clinical
17
+ - information-extraction
18
+ - de-identified
19
+ - dataset-sample
20
+ configs:
21
+ - config_name: default
22
+ data_files:
23
+ - split: train
24
+ path: datadhara-sample-lab-reports.csv
25
+ ---
26
+
27
+ # Diagnostic lab reports: sample
28
+
29
+ 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.
30
+
31
+ ## What this is
32
+
33
+ - 32 rows: 8 reports with 4 tests each, one row per test.
34
+ - 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.
35
+ - Each result has a `flag` (`high`, `low` or `normal`) against its reference range, and the assay method (for example HPLC, CLIA, Jaffe, IFCC).
36
+ - Each row records whether it was taken from a PDF report or a scanned printed report.
37
+ - Patients are identified only by a pseudonymous ID. Ages are five-year bands and dates are months.
38
+
39
+ 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.
40
+
41
+ ## Fields
42
+
43
+ | Column | Type | Description |
44
+ |---|---|---|
45
+ | `report_id` | string | Report identifier, e.g. `LR-5001` |
46
+ | `patient_id` | string | Pseudonymous patient ID, e.g. `pt_063dc1dc` |
47
+ | `age_band` | string | Five-year age band, e.g. `45-49` |
48
+ | `sex` | string | `F` or `M` |
49
+ | `collected_month` | string | Sample collection month, `YYYY-MM` (exact date coarsened) |
50
+ | `test_name` | string | Test name as reported |
51
+ | `value` | number | Result value |
52
+ | `unit` | string | Unit, e.g. `mg/dL`, `mIU/L`, `x10^9/L` |
53
+ | `ref_range` | string | Reference range as printed, e.g. `4.0-5.6`, `<100`, or sex-specific ranges |
54
+ | `flag` | string | `high`, `low` or `normal` |
55
+ | `method` | string | Assay or measurement method |
56
+ | `source_format` | string | `PDF report` or `printed report (scanned)` |
57
+ | `consent_ref` | string | Reference to the source agreement and its version, e.g. `src-0414 / v1` |
58
+
59
+ ## Example row
60
+
61
+ ```json
62
+ {
63
+ "report_id": "LR-5002",
64
+ "patient_id": "pt_2c0aff4b",
65
+ "age_band": "30-34",
66
+ "sex": "M",
67
+ "collected_month": "2026-09",
68
+ "test_name": "HbA1c",
69
+ "value": 8.5,
70
+ "unit": "%",
71
+ "ref_range": "4.0-5.6",
72
+ "flag": "high",
73
+ "method": "HPLC",
74
+ "source_format": "PDF report",
75
+ "consent_ref": "src-0414 / v1"
76
+ }
77
+ ```
78
+
79
+ ## Load it
80
+
81
+ ```python
82
+ from datasets import load_dataset
83
+
84
+ ds = load_dataset("datadhara/lab-reports-sample", split="train")
85
+ ```
86
+
87
+ ## Intended uses
88
+
89
+ Use this sample to check the schema and label set against your pipeline before requesting real data. The licensed data is used for:
90
+
91
+ - Lab-result extraction and structuring from PDFs and scans
92
+ - Clinical NLP over structured and semi-structured results
93
+ - Evaluation sets for medical assistants
94
+
95
+ ## Limitations of this sample
96
+
97
+ - Structured values only. The full data can include the source PDFs and scans; none are in this repository.
98
+ - 8 reports is enough to see the format, not to train or benchmark anything.
99
+ - Reference ranges are stored as printed strings, not parsed into numbers.
100
+
101
+ ## Full dataset and licensing
102
+
103
+ 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).
104
+
105
+ 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.
106
+
107
+ 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.
108
+
109
+ ## Consent and de-identification
110
+
111
+ As described in Datadhara's [methodology](https://datadhara.in/methodology?utm_source=huggingface&utm_medium=dataset&utm_campaign=nov26-global):
112
+
113
+ - Every source organisation signs a written agreement that explicitly covers use for AI training.
114
+ - 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.
115
+ - 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.
116
+ - Every record carries a `consent_ref` linking it to its source agreement. In a real delivery, that reference resolves to the signed agreement.
117
+
118
+ ## Citation
119
+
120
+ The same sample files are archived on Zenodo: https://doi.org/10.5281/zenodo.24349905
datadhara-sample-lab-reports.csv ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ report_id,patient_id,age_band,sex,collected_month,test_name,value,unit,ref_range,flag,method,source_format,consent_ref
2
+ LR-5001,pt_063dc1dc,45-49,M,2026-08,Vitamin D (25-OH),17.9,ng/mL,30-100,low,CLIA,printed report (scanned),src-0414 / v1
3
+ LR-5001,pt_063dc1dc,45-49,M,2026-08,TSH,3.11,mIU/L,0.4-4.0,normal,CLIA,printed report (scanned),src-0414 / v1
4
+ LR-5001,pt_063dc1dc,45-49,M,2026-08,LDL cholesterol,178,mg/dL,<100,high,Direct enzymatic,printed report (scanned),src-0414 / v1
5
+ LR-5001,pt_063dc1dc,45-49,M,2026-08,Platelet count,178,x10^9/L,150-450,normal,Automated analyser,printed report (scanned),src-0414 / v1
6
+ LR-5002,pt_2c0aff4b,30-34,M,2026-09,HbA1c,8.5,%,4.0-5.6,high,HPLC,PDF report,src-0414 / v1
7
+ LR-5002,pt_2c0aff4b,30-34,M,2026-09,Fasting plasma glucose,85,mg/dL,70-99,normal,Hexokinase,PDF report,src-0414 / v1
8
+ LR-5002,pt_2c0aff4b,30-34,M,2026-09,TSH,10.96,mIU/L,0.4-4.0,high,CLIA,PDF report,src-0414 / v1
9
+ LR-5002,pt_2c0aff4b,30-34,M,2026-09,WBC count,14.9,x10^9/L,4.0-11.0,high,Automated analyser,PDF report,src-0414 / v1
10
+ LR-5003,pt_ce516d40,60-64,M,2026-08,Serum creatinine,0.81,mg/dL,0.6-1.2,normal,Jaffe,PDF report,src-0412 / v1
11
+ LR-5003,pt_ce516d40,60-64,M,2026-08,Fasting plasma glucose,187,mg/dL,70-99,high,Hexokinase,PDF report,src-0412 / v1
12
+ LR-5003,pt_ce516d40,60-64,M,2026-08,LDL cholesterol,180,mg/dL,<100,high,Direct enzymatic,PDF report,src-0412 / v1
13
+ LR-5003,pt_ce516d40,60-64,M,2026-08,ALT (SGPT),94,U/L,7-56,high,IFCC,PDF report,src-0412 / v1
14
+ LR-5004,pt_7777460e,35-39,F,2026-06,TSH,6.71,mIU/L,0.4-4.0,high,CLIA,PDF report,src-0410 / v1
15
+ LR-5004,pt_7777460e,35-39,F,2026-06,WBC count,4.7,x10^9/L,4.0-11.0,normal,Automated analyser,PDF report,src-0410 / v1
16
+ LR-5004,pt_7777460e,35-39,F,2026-06,Platelet count,184,x10^9/L,150-450,normal,Automated analyser,PDF report,src-0410 / v1
17
+ LR-5004,pt_7777460e,35-39,F,2026-06,HbA1c,9.3,%,4.0-5.6,high,HPLC,PDF report,src-0410 / v1
18
+ LR-5005,pt_588d835d,60-64,F,2026-07,TSH,3.14,mIU/L,0.4-4.0,normal,CLIA,printed report (scanned),src-0413 / v1
19
+ LR-5005,pt_588d835d,60-64,F,2026-07,C-reactive protein,40.5,mg/L,<5,high,Immunoturbidimetry,printed report (scanned),src-0413 / v1
20
+ LR-5005,pt_588d835d,60-64,F,2026-07,Vitamin D (25-OH),36.5,ng/mL,30-100,normal,CLIA,printed report (scanned),src-0413 / v1
21
+ LR-5005,pt_588d835d,60-64,F,2026-07,Platelet count,246,x10^9/L,150-450,normal,Automated analyser,printed report (scanned),src-0413 / v1
22
+ LR-5006,pt_715ba1f4,35-39,F,2026-04,Fasting plasma glucose,144,mg/dL,70-99,high,Hexokinase,PDF report,src-0410 / v1
23
+ LR-5006,pt_715ba1f4,35-39,F,2026-04,Serum creatinine,1.52,mg/dL,0.6-1.2,high,Jaffe,PDF report,src-0410 / v1
24
+ LR-5006,pt_715ba1f4,35-39,F,2026-04,HbA1c,5.1,%,4.0-5.6,normal,HPLC,PDF report,src-0410 / v1
25
+ LR-5006,pt_715ba1f4,35-39,F,2026-04,Haemoglobin,9.2,g/dL,"12.0-15.5 (F), 13.5-17.5 (M)",low,Automated analyser,PDF report,src-0410 / v1
26
+ LR-5007,pt_f1be21f7,35-39,M,2026-07,TSH,8.7,mIU/L,0.4-4.0,high,CLIA,PDF report,src-0411 / v1
27
+ LR-5007,pt_f1be21f7,35-39,M,2026-07,Platelet count,139,x10^9/L,150-450,low,Automated analyser,PDF report,src-0411 / v1
28
+ LR-5007,pt_f1be21f7,35-39,M,2026-07,Vitamin D (25-OH),22.2,ng/mL,30-100,low,CLIA,PDF report,src-0411 / v1
29
+ LR-5007,pt_f1be21f7,35-39,M,2026-07,Haemoglobin,15.7,g/dL,"12.0-15.5 (F), 13.5-17.5 (M)",normal,Automated analyser,PDF report,src-0411 / v1
30
+ LR-5008,pt_42a6a985,45-49,F,2026-09,Serum creatinine,0.85,mg/dL,0.6-1.2,normal,Jaffe,PDF report,src-0411 / v1
31
+ LR-5008,pt_42a6a985,45-49,F,2026-09,Fasting plasma glucose,125,mg/dL,70-99,high,Hexokinase,PDF report,src-0411 / v1
32
+ LR-5008,pt_42a6a985,45-49,F,2026-09,Haemoglobin,10.6,g/dL,"12.0-15.5 (F), 13.5-17.5 (M)",low,Automated analyser,PDF report,src-0411 / v1
33
+ LR-5008,pt_42a6a985,45-49,F,2026-09,WBC count,12.9,x10^9/L,4.0-11.0,high,Automated analyser,PDF report,src-0411 / v1