Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    ValueError
Message:      Expected object or value
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 257, in _generate_tables
                  pa_table = paj.read_json(
                             ^^^^^^^^^^^^^^
                File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
              pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 243, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 4376, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2658, in _head
                  return next(iter(self.iter(batch_size=n)))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2836, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2374, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 271, in _generate_tables
                  batch = json_encode_fields_in_json_lines(original_batch, json_field_paths)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/utils/json.py", line 111, in json_encode_fields_in_json_lines
                  examples = [ujson_loads(line) for line in original_batch.splitlines()]
                              ^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/utils/json.py", line 20, in ujson_loads
                  return pd.io.json.ujson_loads(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              ValueError: Expected object or value

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

πŸ₯ AYUVANT Clinical Intelligence and Pharmacy Dataset

Curated, structured, and continuously maintained via Adaptive Data β€” an intelligent dataset management platform that enables versioning, schema validation, and real-time collaboration across clinical data pipelines.


πŸ“‹ Dataset Description

The AYUVANT Clinical Intelligence and Pharmacy Dataset is a structured, multi-config dataset designed to power clinical decision-support systems, drug recommendation engines, and pharmacy intelligence tools. It covers the full clinical data lifecycle β€” from symptom detection through disease mapping to medicine dispensation and transaction logging.

This dataset was built and is actively maintained on Adaptive Data, which provides:

  • πŸ”„ Adaptive versioning β€” every schema change and data update is tracked with full lineage
  • βœ… Automated validation β€” JSON configs are validated against clinical ontologies on every push
  • 🀝 Collaborative curation β€” multi-contributor workflows with conflict resolution built in
  • πŸ“Š Usage analytics β€” real-time monitoring of how each config is consumed downstream

πŸ—‚οΈ Dataset Configs

This dataset is organized into 7 focused configs, each representing a distinct clinical domain:

Config File Description
diseases diseases.json Structured disease ontology with ICD-adjacent categorization
symptoms symptoms.json Granular symptom taxonomy linked to disease clusters
medicines medicines.json Drug catalog with dosage, category, and indication metadata
salt_compositions salt_compositions.json Active pharmaceutical ingredient (API) profiles
side_effects side_effects.json Adverse effect registry mapped to medicines and compositions
suspicious_health_issues suspicious_health_issues.json Flagged symptom patterns for triage and clinical escalation
transaction_records transaction_records.json Anonymized pharmacy dispensation and prescription records

⚑ Quickstart

Load a Single Config

from datasets import load_dataset

# Load the disease ontology
diseases = load_dataset("Anshulpj12/Adaptive_Dataset_med", name="diseases")
print(diseases["train"][0])

# Load the medicine catalog
medicines = load_dataset("Anshulpj12/Adaptive_Dataset_med", name="medicines")
print(medicines["train"][0])

Load All Configs

from datasets import load_dataset

configs = [
    "diseases",
    "symptoms",
    "medicines",
    "salt_compositions",
    "side_effects",
    "suspicious_health_issues",
    "transaction_records",
]

ayuvant = {cfg: load_dataset("Anshulpj12/Adaptive_Dataset_med", name=cfg) for cfg in configs}

# Example: cross-reference symptoms with diseases
for record in ayuvant["symptoms"]["train"]:
    print(record)

Symptom-to-Medicine Pipeline Example

from datasets import load_dataset

symptoms_ds   = load_dataset("Anshulpj12/Adaptive_Dataset_med", name="symptoms")["train"]
diseases_ds   = load_dataset("Anshulpj12/Adaptive_Dataset_med", name="diseases")["train"]
medicines_ds  = load_dataset("Anshulpj12/Adaptive_Dataset_med", name="medicines")["train"]
side_fx_ds    = load_dataset("Anshulpj12/Adaptive_Dataset_med", name="side_effects")["train"]

# Build lookup maps
disease_map  = {d["id"]: d for d in diseases_ds}
medicine_map = {m["id"]: m for m in medicines_ds}

def clinical_lookup(symptom_query: str):
    """Minimal clinical decision-support lookup."""
    matched_symptoms = [
        s for s in symptoms_ds
        if symptom_query.lower() in s.get("name", "").lower()
    ]
    results = []
    for sym in matched_symptoms:
        for disease_id in sym.get("linked_diseases", []):
            disease = disease_map.get(disease_id, {})
            meds    = [medicine_map[m] for m in disease.get("recommended_medicines", [])
                       if m in medicine_map]
            results.append({
                "symptom":  sym["name"],
                "disease":  disease.get("name"),
                "medicines": [m["name"] for m in meds],
            })
    return results

print(clinical_lookup("fever"))

πŸ”¬ Intended Use Cases

  • Drug Recommendation Systems β€” map symptoms β†’ diseases β†’ medicines with side-effect filtering
  • Clinical Triage Tools β€” flag suspicious symptom clusters for escalation
  • Pharmacy Intelligence β€” analyse dispensation patterns from transaction records
  • Medical NLP Training β€” structured labels for symptom extraction and entity recognition
  • Healthcare Tabular ML β€” tabular classification benchmarks on clinical data

πŸ—οΈ Adaptive Data Platform Integration

This dataset is actively managed through Adaptive Data.

What "Active Usage" Means Here

Platform Feature How It's Used in This Dataset
Schema Registry Each config's JSON structure is registered and enforced β€” malformed entries are rejected at ingest
Version Lineage Every medicine, disease, or symptom addition is logged with contributor ID and timestamp
Diff Reviews Pull-request-style reviews gate any changes to medicines.json or suspicious_health_issues.json
Automated QA On every push, Adaptive Data runs null-check, duplicate-ID, and cross-reference integrity tests
Dataset Snapshots Tagged stable releases (e.g., v1.0, v1.1) are pinned so downstream models can lock to a version

Syncing from Adaptive Data

# If you have Adaptive Data CLI configured
# adaptive pull Adaptive_Dataset_med --config medicines --format json

# Or via the Adaptive Data Python SDK
from adaptive_data import AdaptiveClient

client = AdaptiveClient(api_key="YOUR_API_KEY")
dataset = client.dataset("Adaptive_Dataset_med")

medicines_snapshot = dataset.config("medicines").pull(version="latest")
medicines_snapshot.to_json("medicines.json")

πŸ“Š Dataset Statistics

Config Approximate Records Format Updated
diseases β€” JSON array Tracked via Adaptive Data
symptoms β€” JSON array Tracked via Adaptive Data
medicines β€” JSON array Tracked via Adaptive Data
salt_compositions β€” JSON array Tracked via Adaptive Data
side_effects β€” JSON array Tracked via Adaptive Data
suspicious_health_issues β€” JSON array Tracked via Adaptive Data
transaction_records β€” JSON array Tracked via Adaptive Data

Record counts update continuously. See the Adaptive Data dashboard for live statistics.


⚠️ Limitations and Bias

  • This dataset is intended for research and development purposes only and is not a substitute for professional medical advice.
  • Drug recommendations and clinical associations reflect the curation logic at time of release and may not capture the latest clinical guidelines.
  • Transaction records are fully anonymized β€” no personally identifiable information (PII) is present.
  • Coverage is weighted toward common conditions; rare disease representation may be limited.

πŸ“œ License

This dataset is released under the MIT License. See LICENSE for full terms.


πŸ™ Credits and Acknowledgements

Dataset curation and maintenance platform:

Adaptive Data β€” Intelligent dataset lifecycle management for structured and clinical data. Schema validation, version control, collaborative curation, and automated QA pipelines powering the AYUVANT dataset from ingestion to Hugging Face publication.

Project: AYUVANT Clinical Intelligence System Maintainer: (your name / organisation) Contact: (your contact / repo link)


πŸ“Ž Citation

If you use this dataset in your research, please cite:

@dataset{ayuvant_clinical_2025,
  title     = {AYUVANT Clinical Intelligence and Pharmacy Dataset},
  author    = {Anshul Prajapati},
  year      = {2025},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/Anshulpj12/Adaptive_Dataset_med},
  note      = {Curated and maintained via Adaptive Data (https://adaptivedata.io)}
}
Downloads last month
37