Datasets:
messages listlengths 3 3 | lang stringclasses 4
values | specialty stringclasses 22
values | case_type stringclasses 4
values |
|---|---|---|---|
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | rheumatology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | neurology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | cardiology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | ophthalmology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | neurology | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | nephrology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | rheumatology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | internal medicine | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | surveillance | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | pediatrics | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | obstetrics and gynecology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | pulmonology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | internal medicine | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | obstetrics and gynecology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | general surgery | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | neurology | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | oncology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | dermatology | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | surveillance | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | ophthalmology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | surveillance | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | psychiatry | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | emergency medicine | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | psychiatry | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | dermatology | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | gastroenterology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | emergency medicine | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | infectious diseases | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | orthopedics | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | dermatology | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | infectious diseases | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | dermatology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | dermatology | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | surveillance | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | rheumatology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | internal medicine | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | endocrinology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | pediatrics | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | hematology | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | gastroenterology | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | hematology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | pulmonology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | endocrinology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | cardiology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | urology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | dermatology | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | oncology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | cardiology | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | general surgery | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | gastroenterology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | gastroenterology | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | surveillance | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | pediatrics | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | pediatrics | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | urology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | surveillance | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | otolaryngology | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | ophthalmology | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | internal medicine | snippet_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | infectious diseases | long_tricky |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | en | nephrology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | infectious diseases | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | surveillance | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | ar | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | dermatology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | dermatology | snippet |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | dermatology | long_clean |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | es | null | null |
[
{
"role": "system",
"content": "You are a deterministic clinical information extraction model. Given clinical text in any language (es/en/fr/ar), extract structured data and output ONLY a JSON object with keys: omop (OMOP CDM: condition_occurrence, drug_exposure, measurement, procedure_occurrence with sourc... | fr | emergency medicine | snippet |
clinical-extraction-sft
A proprietary, fully synthetic corpus I built to fine-tune a small model to turn de-identified Colombian clinical free text into standardized, grounded structure. It is the supervised fine-tuning data (SFT = supervised fine-tuning) behind Lulu, the structuring-and-grounding core of the Athenea clinical architecture. The single most important thing it teaches: extract clinical facts into strict JSON (JSON = JavaScript Object Notation) and ground each one correctly (present vs negated, patient vs relative, right value, right date), without ever asking the model to invent a terminology code.
Author / owner: David Esteban Rebellón Sánchez, SmartEpi EDEUS. License: PROPRIETARY (all rights reserved, not open-source). See LICENSE. Language(s): Spanish (primary), English, with a minority of items in French and Arabic. Patient privacy: fully synthetic and model-distilled. No real patient records were used, so the corpus contains no protected health information (PHI = protected health information).
You can see the models this corpus trained running live on Spanish clinical notes here: https://huggingface.co/spaces/derebellon/athenea-demo
What it is and what it is for
clinical-extraction-sft trains a small model to do two jobs on clinical free text:
- Extraction: turn a note into a strict JSON object that conforms to the clinical standards the downstream pipeline needs. Those standards are OMOP (OMOP = Observational Medical Outcomes Partnership common data model), FHIR (FHIR = Fast Healthcare Interoperability Resources), ICD-10 (ICD-10 = International Classification of Diseases, 10th revision), and CTCAE (CTCAE = Common Terminology Criteria for Adverse Events).
- Assertion and subject grounding: decide whether a finding is present or negated, current or past, and whether it belongs to the patient or to a relative, plus pick the correct value or date when several are stated.
I built it because the clinical speech I need to structure is Colombian, and general or English-language clinical data does not cover it. Colombian notes carry local drug names, local abbreviations, colloquial patient wording, and entangled negations and family history that generic corpora do not contain. To produce OMOP output faithfully, a model has to recognize concepts expressed in Colombian Spanish and place them in the right OMOP table, which off-the-shelf data does not teach.
It is not for free-form note generation. The corpus teaches extraction and grounding only, so a model trained on it is off-task for rewriting or drafting prose.
Provenance: how it was built
I distilled the corpus from several teacher models, each chosen for a specific job, and I anchored the labels to objective ground truth wherever one exists so the student never learns a hallucinated code.
The core anti-hallucination property. The model is never asked to invent a terminology code. Every ICD-10 code used in generation is drawn from the official catalogue and given to the teacher. The student learns to extract and ground, not to recall identifiers. Concept mapping to an OMOP concept_id is left to a downstream deterministic mapper. This is what makes the data safe for training a small on-device model: the model is rewarded for faithful extraction, not for guessing numbers it cannot reliably memorize.
The three source sets and their teacher models:
dataset_finalwas generated with OpenAI gpt-4o-mini (a compact general-purpose instruction model), producing full-note extraction from clinical text into OMOP (with SNOMED, RxNorm, LOINC, the standard clinical vocabularies, plusassertion_status), FHIR, ICD-10, and CTCAE. Every ICD-10 code is validated against the official catalogue, and the item is rejected if the code is absent.dataset_madrewas generated with gpt-oss-20b (an open-weight 20-billion-parameter model served through Groq), as a per-code multi-task set covering OMOP extraction, typo correction, reasoning-correction, named-entity recognition (NER = named-entity recognition), and negatives or tricky cases. Each item carries one real ICD-10 code, given rather than generated, in Spanish and English.reasoning_datasetwas generated with gpt-oss-120b (the 120-billion-parameter open-weight model, also through Groq), which writes the note and the rationale only. The gold answer for serial-value and temporal reasoning (repeated dates and lab values, for example "the creatinine on day 5") is computed deterministically in code, giving perfect labels rather than an LLM vote.
Scripts (reproducible pipeline). Generation: extraction/gen_extraction_dataset.py, coder-dataset/gen_dataset_madre.py, coder-dataset/gen_reasoning_dataset.py. Merge and split: extraction/build_sft.py with random.seed(42). The generation plan for dataset_madre was "2,000 codes x 5 tasks x 2 languages = 20,000 jobs", which yielded 80,608 usable examples after per-task expansion and empty-output filtering.
Generation axes. For dataset_final: disease (from diseases_master.json) x language (es/en/ar/fr) x case type, where roughly one third of case types are tricky by construction (realistic typos, rare or colloquial patient wording, entangled negations and family history). For reasoning_dataset: same-day conflict, first/last value, temporal-day grounding, and culture-source attribution.
Schema and fields
Each row is a {"messages": [...]} object in chat format (system / user / assistant):
- system: states the extraction and grounding task.
- user: carries the synthetic, de-identified clinical text.
- assistant: the target. For extraction tasks it is a strict JSON object. For reasoning and assertion tasks it is a short grounded answer.
Task-level metadata (task, lang, code, scenario) is preserved in the source sets.
Size and splits
The corpus is the union of the three independently generated source sets, merged and split by build_sft.py.
| Source set | Rows | What it teaches | Teacher model | Grounding |
|---|---|---|---|---|
dataset_final |
15,816 | full-note extraction: clinical text to {OMOP (SNOMED/RxNorm/LOINC + assertion_status), FHIR, ICD-10, CTCAE} | OpenAI gpt-4o-mini | ICD-10 validated against the official catalogue, rejected if absent |
dataset_madre |
80,608 | per-code multi-task set, A: OMOP extraction, B: typo correction, C: reasoning-correction, D: NER, E: negatives/tricky | gpt-oss-20b (Groq) | one real ICD-10 code per item, given not generated, ES + EN |
reasoning_dataset |
5,960 | serial-value / temporal reasoning (repeated dates and lab values, "the creatinine on day 5") | gpt-oss-120b (Groq) writes the note + rationale only | gold answer computed deterministically in code, giving perfect labels |
| Split | File | Rows | Purpose |
|---|---|---|---|
| train | sft_train.jsonl |
116,302 (about 100,956 unique after dedup) | SFT |
| validation | sft_eval.jsonl |
600 | held-out (about 0.5% residual overlap measured against train) |
| adversarial | sft_hard.jsonl |
499 | the tricky subset, 100% held-out |
The held-out guarantee: the adversarial split is fully disjoint from train, and the validation split retains only about 0.5% residual overlap after dedup. The adversarial split is the one that matters for honest numbers, because it is the tricky-by-construction subset the model never saw.
How the gold was constructed and adjudicated
Gold is never a single LLM vote. It is built differently for each source set, which is the point:
- ICD-10 codes are not generated by the teacher. They are drawn from the official ICD-10 catalogue, given to the teacher, and the item is rejected if the emitted code is not the given one. The gold is the catalogue, not the model.
- Serial-value and temporal reasoning (
reasoning_dataset) has its gold answer computed deterministically in code (which date, which lab value), so the label is exact rather than a model's best guess. - Extraction structure is validated for schema conformance at build time, and empty or malformed outputs are filtered before merge.
This layering is why the student can be small and still safe: wherever an objective ground truth exists, the label is anchored to it rather than to the teacher's opinion.
Intended use
What it trained. In the base bake-off (train_extraction.py, using LoRA = low-rank adaptation, bf16, cosine schedule, warmup 0.03), Qwen2.5-0.5B-Instruct and Qwen3-0.6B both succeed. A medical-DPO variant (DPO = direct preference optimization) and NuExtract-tiny fail to produce valid JSON and were dropped. The two shipped models are:
derebellon/edeus-lulu-onnx(Qwen2.5-0.5B, on-device, ONNX runtime)derebellon/edeus-lulu-qwen3(Qwen3-0.6B, server)
What eval it supports. The held-out evaluation lives in derebellon/athenea-eval (suites 03-lulu-json, 04-lulu-qa): https://huggingface.co/datasets/derebellon/athenea-eval
Results on independent held-out evaluation:
| Model | JSON-valid (hard, n=60) | ICD-10 F1 | Assertion acc (n=200) | Subject-grounding |
|---|---|---|---|---|
edeus-lulu (Qwen2.5-0.5B, on-device) |
0.983 | 0.678 | 0.805 | 0.678 |
edeus-lulu-qwen3 (Qwen3-0.6B, server) |
0.967 | 0.689 | 0.895 | 0.978 |
You can feed the live demo your own Spanish clinical notes and watch these two models structure and ground them: https://huggingface.co/spaces/derebellon/athenea-demo
Metrics: definition and interpretation
JSON-valid rate. Fraction of outputs that parse as valid JSON. It is a precondition, not a nicety: if the object does not parse, the deterministic mapper downstream cannot run at all. At 0.983 on the hard split, the on-device student almost always emits a parseable object even on adversarial text.
Precision, Recall, F1 (used for ICD-10). With true positives $TP$, false positives $FP$, false negatives $FN$: Precision is, of the codes the model asserted, how many were correct. Recall is, of the codes that were true, how many it caught. $F_1$ is their harmonic mean (it punishes imbalance). For ICD-10 extraction, $F_1$ over the set of codes is the headline, because it tells you whether the diagnosis coding is both complete and clean.
Assertion accuracy. Fraction of present-vs-negated (and current-vs-past) decisions that are correct. Clinically this is the difference between recording a disease the patient has and recording one the note explicitly rules out.
Subject-grounding accuracy. Fraction of entities assigned to the correct subject (patient vs mother/father/other) with the correct assertion. This is the core safety job: it decides whether a finding becomes part of the patient's own record. The gap between the two models here (0.678 on-device vs 0.978 server) is the honest cost of shrinking to an on-device footprint: the small model keeps a relative's disease off the patient's chart less reliably than the server model does.
Strengths
- Code-grounded by construction: the model never invents an identifier, which is the single most dangerous failure mode for a small clinical model.
- Built for Colombian Spanish: local drug names, abbreviations, and colloquial wording that generic corpora lack.
- Honest adversarial split: a fully held-out, tricky-by-construction set so reported numbers are not inflated by leakage.
- Layered gold: catalogue-anchored codes and code-computed reasoning labels instead of a single LLM vote.
Limitations
- The corpus is synthetic and distilled, so it reflects the teacher models' clinical phrasing and the generation axes rather than the full variability of real Colombian records.
- Labs is the weakest extraction domain, with ICD-10 F1 around 0.55 on the adversarial split.
- Subject grounding degrades on the smallest on-device model (0.678 vs 0.978 on the server model).
- It trains extraction and grounding only. Models trained on it are off-task for free-form note generation or rewriting.
Ideal use case
Fine-tuning a small (0.5B to 0.6B parameter) model to run on-device or on a light server and turn Spanish clinical free text into standardized, grounded structure (OMOP / FHIR / ICD-10 / CTCAE), as the structuring stage of a pipeline whose final concept mapping is handled by a separate deterministic mapper.
Reproducibility and provenance
- Evaluation record (scripts, gold sets, rubrics): https://huggingface.co/datasets/derebellon/athenea-eval
- Live demo (all Athenea models running on Spanish clinical notes): https://huggingface.co/spaces/derebellon/athenea-demo
- Gold adjudication: ICD-10 against the official catalogue, serial/temporal labels computed deterministically in code, schema-validated at build time with empty/malformed outputs filtered.
- The full Athenea agent architecture and harness are proprietary to EDEUS and are not disclosed here. This card documents the dataset.
License
Proprietary. All rights reserved, not open-source. The full agent architecture is proprietary to EDEUS and is not disclosed here. See LICENSE.
Citation
David Esteban Rebellón Sánchez. clinical-extraction-sft: a distilled, code-grounded SFT corpus for on-device clinical extraction and assertion in Spanish. SmartEpi EDEUS, 2026. Proprietary.
- Downloads last month
- 26