Datasets:
File size: 3,834 Bytes
97a3114 5387ec6 97a3114 5387ec6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
---
license: mit
task_categories:
- question-answering
- multiple-choice
language:
- en
tags:
- medical
- healthcare
- ehr
- diagnosis
- medication
- clinical
size_categories:
- 10K<n<100K
---
# Medical Question Answering Dataset (QA Pairs MVD 10K)
## Dataset Description
This dataset contains medical question-answering tasks based on Electronic Health Record (EHR) data. The dataset focuses on three main prediction tasks in clinical settings:
1. **Missing Medication MCQ**: Predicting which medication should be added to a patient's current regimen
2. **Next Diagnosis MCQ**: Predicting the most likely future diagnosis for a patient
3. **Next Measurement Value MCQ**: Predicting future laboratory or vital sign values
## Dataset Structure
### Data Splits
| Split | Examples |
|-------|----------|
| Train | 17,158 |
| Validation | 3,754 |
| Test | 3,683 |
| **Total** | **24,595** |
### Data Fields
- `prompt`: The full question prompt including patient medical history
- `prompt_type`: Type of question (missing_medication_mcq, next_diagnosis_mcq, next_measurement_value_mcq)
- `choices`: List of multiple choice options (typically 5 options A-E)
- `answer_idx`: Index of the correct answer (0-based)
- `completion`: The correct answer choice letter (A, B, C, D, or E)
- `id`: Unique identifier for each example
### Example
```json
{
"prompt": "You are an assistant tasked with analyzing medical histories to determine which medication is missing from the patient's current regimen....",
"prompt_type": "missing_medication_mcq",
"choices": ["Cisplatin 50 MG Injection", "Tacrine 10 MG Oral Capsule", ...],
"answer_idx": 4,
"completion": "E",
"id": "2543984390693637980missing_medication_mcq"
}
```
## Task Types
### 1. Missing Medication MCQ
Analyzes a patient's medical history including demographics, visits, measurements, procedures, and current medications to predict which medication should be added to their regimen.
### 2. Next Diagnosis MCQ
Predicts the most likely future diagnosis based on a patient's medical trajectory and history.
### 3. Next Measurement Value MCQ
Predicts future laboratory values or vital signs based on historical measurement trends.
## Patient Data Structure
Each prompt includes structured patient data with:
- **Demographics**: Race, gender, year of birth
- **Visit History**: Outpatient visits, ER visits with dates
- **Measurements**: Height, weight, BMI, blood pressure, lab values with timestamps
- **Procedures**: Medical procedures performed with dates
- **Medications**: Current and past medications with start/end dates
- **Diagnoses**: Prior medical conditions with dates
## Usage
```python
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("your_username/qa-pairs-mvd-10k")
# Access different splits
train_data = dataset['train']
val_data = dataset['validation']
test_data = dataset['test']
# Example usage
example = train_data[0]
print(f"Question type: {example['prompt_type']}")
print(f"Prompt: {example['prompt'][:200]}...")
print(f"Choices: {example['choices']}")
print(f"Correct answer: {example['completion']}")
```
## Ethical Considerations
This dataset contains synthetic or anonymized medical data. Users should:
- Ensure compliance with healthcare data regulations (HIPAA, etc.)
- Use the dataset responsibly for research and educational purposes
- Not use for actual medical diagnosis without proper validation
- Consider potential biases in the synthetic data generation process
## Citation
If you use this dataset in your research, please cite:
```bibtex
@dataset{qa_pairs_mvd_10k,
title={Medical Question Answering Dataset (QA Pairs MVD 10K)},
year={2024},
url={https://huggingface.co/datasets/your_username/qa-pairs-mvd-10k}
}
```
## License
This dataset is released under the MIT License.
|