bnewcomer/MediBot
0
1[2 {3 "id": "emergency_chest_pain",4 "description": "Red-flag respiratory and chest symptoms should trigger emergency guidance.",5 "turns": [6 "I have chest pain and shortness of breath."7 ],8 "checks": {9 "final_contains": [10 "medical emergency",11 "Detected red-flag symptoms"12 ],13 "state_equals": {14 "last_severity.urgency": "urgent"15 },16 "state_contains": {17 "symptom_context": [18 "chest_pain",19 "breathlessness"20 ]21 }22 }23 },24 {25 "id": "vague_fever_needs_clarification",26 "description": "A single vague symptom should produce follow-up questions instead of an overconfident diagnosis.",27 "turns": [28 "I have a fever."29 ],30 "checks": {31 "final_contains": [32 "## Follow-Up Questions",33 "Please answer a few of these"34 ],35 "state_equals": {36 "last_clarification.needs_clarification": true37 },38 "state_contains": {39 "symptom_context": [40 "mild_fever"41 ]42 }43 }44 },45 {46 "id": "cold_like_symptoms_generate_ranked_matches",47 "description": "A realistic upper-respiratory query should yield ranked conditions and preserve natural-language symptom extraction.",48 "turns": [49 "I have a sore throat, runny nose, cough, congestion, and fatigue for 2 days."50 ],51 "checks": {52 "final_contains": [53 "## Clinical Summary",54 "## Top Matching Conditions"55 ],56 "state_contains": {57 "symptom_context": [58 "throat_irritation",59 "runny_nose",60 "cough",61 "congestion",62 "fatigue"63 ]64 },65 "state_equals": {66 "structured_context.duration": "2 days"67 }68 }69 },70 {71 "id": "follow_up_preserves_context_after_travel",72 "description": "A second turn should retain prior symptoms and enrich the stored context with duration, progression, and exposure clues.",73 "turns": [74 "I have fever and cough.",75 "It has been getting worse for 3 days after travel with mosquito bites."76 ],77 "checks": {78 "state_contains": {79 "symptom_context": [80 "mild_fever",81 "cough"82 ],83 "structured_context.exposures": [84 "travel",85 "mosquito exposure"86 ]87 },88 "state_equals": {89 "structured_context.duration": "3 days",90 "structured_context.progression": "worsening"91 }92 }93 },94 {95 "id": "condition_overview_for_named_disease",96 "description": "A disease-focused question should answer with overview and precautions instead of symptom triage.",97 "turns": [98 "What is pneumonia?"99 ],100 "checks": {101 "final_contains": [102 "## Condition Overview",103 "Pneumonia",104 "Precautions:"105 ]106 }107 }108]109 