clinic-notes-sample / README.md
jkjarvis's picture
Add sample and dataset card
9039034 verified
|
Raw History Blame Contribute Delete
5.73 kB
metadata
license: cc-by-4.0
pretty_name: 'Datadhara Sample: De-identified Outpatient Clinic Notes with ICD-10 Codes'
language:
  - en
task_categories:
  - text-classification
  - token-classification
  - summarization
size_categories:
  - n<1K
tags:
  - medical
  - clinical
  - clinical-notes
  - clinical-nlp
  - icd-10
  - healthcare
  - de-identified
  - dataset-sample
configs:
  - config_name: default
    data_files:
      - split: train
        path: datadhara-sample-clinic-notes.csv

Outpatient clinic notes: sample

Short outpatient notes with age band, sex, visit month, specialty, free-text note, ICD-10 code and label, and medications. This file shows the schema and labels of the clinical data that Datadhara licenses to AI teams.

What this is

  • 16 rows, one note per row.
  • 8 specialties: general medicine, paediatrics, gastroenterology, orthopaedics, dermatology, pulmonology, endocrinology, ophthalmology.
  • Notes are written the way clinicians write them, with abbreviations such as TDS, BD, OD, SOS, HS, SLR, FBS and Hb.
  • Each note records whether it was captured from a handwritten note (scanned) or a typed clinic EMR export.
  • 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 clinics, and the consent_ref values are format examples. Licensed deliveries contain real records collected under written agreements.

Fields

Column Type Description
note_id string Note identifier, e.g. CN-1001
patient_id string Pseudonymous patient ID, e.g. pt_0ee42548
age_band string Five-year age band, e.g. 30-34
sex string F or M
visit_month string Visit month, YYYY-MM (exact date coarsened)
specialty string Clinical specialty, e.g. General medicine
note_text string Free-text clinical note
diagnosis_icd10 string ICD-10 code, e.g. J06.9
diagnosis_label string ICD-10 description
medications string Prescribed medications with dose and frequency, ;-separated
source_format string handwritten (scanned) or typed (clinic EMR export)
language string Language tag, e.g. en
consent_ref string Reference to the source agreement and its version, e.g. src-0313 / v1

Example row

{
  "note_id": "CN-1001",
  "patient_id": "pt_0ee42548",
  "age_band": "30-34",
  "sex": "F",
  "visit_month": "2026-09",
  "specialty": "General medicine",
  "note_text": "Fever 3 days, sore throat, mild cough. No breathlessness. Throat congested, chest clear. Temp 38.2 C. Advised fluids and rest; review if not better in 3 days.",
  "diagnosis_icd10": "J06.9",
  "diagnosis_label": "Acute upper respiratory infection, unspecified",
  "medications": "Paracetamol 500mg TDS x3d",
  "source_format": "handwritten (scanned)",
  "language": "en",
  "consent_ref": "src-0313 / v1"
}

Load it

from datasets import load_dataset

ds = load_dataset("datadhara/clinic-notes-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:

  • Clinical NLP and summarisation
  • ICD-10 coding and medication extraction
  • Handwriting and form understanding for notes and prescriptions
  • Evaluation sets for medical assistants

Limitations of this sample

  • Text only. The full data can include the scanned forms; none are in this repository.
  • 16 notes is enough to see the format, not to train or benchmark anything.
  • One note per patient; no longitudinal records in this sample.

Full dataset and licensing

This sample file is released under CC BY 4.0, as on the samples page.

The full data is not on Hugging Face. It is available under a commercial licence. Datadhara sources outpatient notes, prescriptions, lab reports and discharge summaries directly from clinics, hospitals and diagnostic labs, as text, scanned forms, PDFs and structured values. Specialty, document types, languages 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 or email hello@datadhara.in.

Consent and de-identification

As described in Datadhara's methodology:

  • 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.
  • Free text is checked with automated detection and then reviewed by a person.
  • 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