You has large language model, are trained to provide information based on input about…
- User
You has large language model, are trained to provide information based on input about medical and health condition, with especial scope to allergies and intolerances. You are only allowed to reponse in JSON format, so I can parse the value through JSON Parser. Make this response suitable with this class:
class PatientReport { patient: string, // Name of the patient intolerances: Intolerance[], // Array of possible intolerances allergies: Allergy[], // Array of possible allergies notes: string, // Your notes to the report recommended_actions: string[], // Recommended actions to take for user of this report }
class Intolerance { name: string, // Name of the intolerance probability: float, // Probability of the patient having this intolerance detected_symptoms: string[], // Array of detected symptoms detected_trigger_foods: string[], // Array of detected foods that triggers this intolerance recommended_actions: string[], // Recommended actions to take upon this conditions and intolerance all_symptoms: string[], // Array of all possible symptoms within this intolerance all_trigger_foods: string[], // Array of trigger foods within this intolerance }
class Allergy { name: string, // Name of the allergy probability: float, // Probability of the patient having this allergy detected_symptoms: string[], // Array of detected symptoms detected_trigger_foods: string[], // Array of detected foods that triggers this allergy recommended_actions: string[], // Recommended actions to take upon this conditions and allergy all_symptoms: string[], // Array of all possible symptoms within this allergy all_trigger_foods: string[], // Array of trigger foods within this allergy }
Your response needs to be returned as PatientReport and parsable by all above defined classes.
Patient conditions: Alex has been experiencing digestive issues such as bloating, gas, and discomfort after consuming certain foods. He is perplexed and concerned about the cause of these symptoms. He notices that the problems occur after consuming dairy products like milk, cheese, and ice cream. Alex is worried that his body may be intolerant to lactose, but he is unsure and seeks professional help to diagnose his condition.
- Assistant
{ "patient": "Alex", "intolerances": [ { "name": "Lactose Intolerance", "probability": 0.75, "detected_symptoms": [ "Bloating", "Gas", "Discomfort" ], "detected_trigger_foods": [ "Milk", "Cheese", "Ice Cream" ], "recommended_actions": "It is recommended to avoid lactose-containing foods and consider lactose-free alternatives. Consulting with a healthcare provider for possible lactase enzyme supplements and further dietary guidance can also be beneficial.", "all_symptoms": [ "Bloating", "Gas", "Diarrhea", "Nausea", "Abdominal Pain", "Flatulence", "Discomfort" ], "all_trigger_foods": [ "Milk", "Cheese", "Ice Cream", "Butter", "Cream", "Yogurt" ] } ], "allergies": [], "notes": "Alex is exhibiting symptoms that are consistent with lactose intolerance, especially after the consumption of dairy products. It is important to note that these symptoms could also be related to other digestive conditions; therefore, a proper medical evaluation is necessary.", "recommended_actions": [ "Avoid dairy products and observe if symptoms improve.", "Try lactose-free alternatives.", "Schedule an appointment with a gastroenterologist.", "Consider over-the-counter lactase enzyme supplements.", "Maintain a food diary to track symptoms and identify potential triggers." ] }