Create medicalchatbot_sample_dataset.json
Browse files
medicalchatbot_sample_dataset.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
|
| 3 |
+
# Sample dataset with cardiology and pediatrics questions
|
| 4 |
+
dataset = {
|
| 5 |
+
"data": [
|
| 6 |
+
{
|
| 7 |
+
"question": "What are the warning signs of a heart attack?",
|
| 8 |
+
"answer": "Warning signs include chest pain, shortness of breath, nausea, lightheadedness, and pain in the arm or jaw."
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"question": "How is congestive heart failure treated?",
|
| 12 |
+
"answer": "Treatment includes lifestyle changes, medications like ACE inhibitors or beta-blockers, and sometimes surgery."
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"question": "What is atrial fibrillation?",
|
| 16 |
+
"answer": "Atrial fibrillation is an irregular and often rapid heart rate that can lead to stroke and other heart complications."
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"question": "What is a normal resting heart rate?",
|
| 20 |
+
"answer": "A normal resting heart rate for adults is between 60 and 100 beats per minute."
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"question": "What lifestyle changes help reduce the risk of heart disease?",
|
| 24 |
+
"answer": "Healthy diet, regular exercise, quitting smoking, managing stress, and controlling blood pressure and cholesterol."
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"question": "What vaccines are recommended for infants?",
|
| 28 |
+
"answer": "Vaccines include Hepatitis B, DTaP, Hib, Polio, Pneumococcal, and Rotavirus, given at specific ages."
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"question": "How much sleep does a toddler need?",
|
| 32 |
+
"answer": "Toddlers typically need 11 to 14 hours of sleep in a 24-hour period, including naps."
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"question": "What are common symptoms of ear infections in children?",
|
| 36 |
+
"answer": "Symptoms include ear pain, fever, trouble sleeping, irritability, and tugging at the ear."
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"question": "What is the normal temperature for a child?",
|
| 40 |
+
"answer": "A normal body temperature for a child is around 98.6°F (37°C), but it can vary slightly."
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"question": "When should a child start solid foods?",
|
| 44 |
+
"answer": "Solid foods can be introduced around 6 months of age, starting with iron-fortified cereals and pureed vegetables."
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
# Save to JSON
|
| 50 |
+
filename = "medicalchatbot_sample_dataset.json"
|
| 51 |
+
with open(filename, "w") as f:
|
| 52 |
+
json.dump(dataset, f, indent=2)
|
| 53 |
+
|
| 54 |
+
print(f"✅ Dataset saved as {filename}")
|