Table of Contents
Common Questions
Chat with CodyMD
Cody's Chat with Patient
Cody's AI Summary
Top 3 AI Diagnosis List
Review by Dr Albert DiPiero
Resource Center
Testimonials
Share this Case Study
Meet your host

Albert DiPiero, MD MPH FACP
I am a co-founder and the Chief Medical Officer at CodyMD and your host for this edition of Cody Grand Rounds. I have been a practicing physician and faculty member at medical schools for over 26 years.
About The AI Doctor Case Study
CodyMD is a partnership between Human Doctors and AI Doctors. Cody is an AI Doctor who helps thousands of people every day. At each Cody Grand Rounds, I select a real case and review it with Cody, the AI Doctor.
Each case is based on a real patient but has been modified to maintain privacy and to emphasize certain teaching points.
What could be causing sharp, burning stomach pain?
Why does my stomach pain come and go?
What is the best way to relieve sudden stomach pain?
Can sharp stomach pain be a sign of something serious?
How is nausea related to stomach pain?
How do I know if my stomach pain is an emergency?
Can stress cause stomach pain and nausea?
Click the button below to initiate a conversation with CodyMD, your AI Doctor.
Below is a conversation transcript between the patient and our AI Doctor CodyMd.
Cody, the AI Doctor
So you want to focus on the sharp, burning pain at the top of your stomach and nausea today, is that correct?
Patient
Yes
Cody, the AI Doctor
My goal is to provide you with an accurate assessment and plan. Let's talk about your concerns regarding sharp, burning pain at the top of your stomach, nausea. Can you describe the intensity and duration of your sharp, burning pain? For example, does it come and go, or is it constant? How would you rate the pain on a scale from 1 to 10?
Patient
8, comes and goes
Cody, the AI Doctor
Alright, noted. When did you first start experiencing the sharp, burning pain at the top of your stomach and nausea? For example, did it start 2 days ago or 3 weeks ago?
Patient
2 hours ago
Cody, the AI Doctor
A sudden onset of sharp, burning pain and nausea can sometimes indicate conditions like gastritis or peptic ulcers, which may require prompt evaluation. Have you been diagnosed with any medical conditions related to your gastrointestinal health? For example, acid reflux, gastritis, or peptic ulcers?
Patient
Gastroenteritis
Cody, the AI Doctor
Ah, I see. In what year were you born?
Patient
1971
Cody, the AI Doctor
Got it. Ah, I see. What is your sex?
Patient
Female
Cody, the AI Doctor
Gender can play a role in certain gastrointestinal conditions, as some issues may be more prevalent in females, such as gallbladder disease or certain types of gastritis. Can you describe the exact location of your sharp, burning pain? For example, is it in the center of your upper abdomen, on the right side, or the left side?
Patient
Center of upper abdomen
Cody, the AI Doctor
Hmm. Is your sharp, burning pain at the top of your stomach and nausea getting worse, getting better, staying the same, or does it vary day to day?
Patient
Staying the same but I'm feeling very faint
Cody, the AI Doctor
Feeling faint can be a concerning symptom, especially when combined with sharp, burning pain and nausea. Have you noticed if certain foods or drinks make your sharp, burning pain at the top of your stomach or nausea worse? For example, spicy foods, caffeine, or alcohol?
Patient
No, I haven't eaten or drank anything since it started.
Based on the information and conversations with Cody, we have prepared a top 3 AI Diagnosis List.
1. Gastritis( 50 % probability)
This condition excels as the primary diagnosis, given the sudden onset, location of the pain, and nausea. This aligns well with the patient's history of gastroenteritis.
2. Peptic Ulcer Disease(30 % probability)
The sharp, burning nature of the pain that comes and goes is highly indicative of a peptic ulcer, especially given the intensity (rated as an 8).
3. Gastroenteritis(20 % probability)
While the patient has a history of gastroenteritis, the acute presentation and intensity make this a less likely primary cause but still within consideration.

Dr. Albert DiPiero
The patient's sudden onset of sharp, burning pain in the upper abdomen and nausea, rated as an 8/10, is concerning. The present symptoms of feeling faint add complexity to this case.
1. Gastritis(50% probability)
Symptoms like sharp, burning pain in the upper abdomen and nausea are classic for gastritis. The absence of a trigger like food or drink makes acute gastritis plausible, especially given the patient's medical history of gastroenteritis.
2. Peptic Ulcer Disease(30% probability)
The intense, sharp pain that comes and goes is highly suggestive of a peptic ulcer. The heightened stress may exacerbate the condition leading to the current symptoms.
3. Acid Reflux(20% probability)
While less likely due to the sudden onset and intensity of pain, it could be considered if other diagnoses are ruled out.
Next Steps for Evaluation
Immediate evaluation in a clinical setting is warranted because of the intensity of pain and her feelings of faintness. Blood tests including complete blood count, liver function tests, and amylase/lipase should be conducted. An urgent abdominal ultrasound or endoscopy may be required to rule out peptic ulcer or gallbladder disease. IV fluids could help with the faintness.
Potential Treatment Modalities
Once diagnosis is confirmed, treatment could include proton pump inhibitors (PPI) or H2 blockers for gastritis or peptic ulcer, alongside dietary modifications. Antacids may provide temporary relief, and antibiotics would be necessary if H. pylori infection is detected.
CodyMD Resources:
Other Resources:
Abdominal Pain: Causes, Types & Treatment | Cleveland Clinic
Gastritis: What It Is, Symptoms, Causes & Treatment | Cleveland Clinic
Related Articles
The best part about CodyMD, besides the interaction, is the three options CodyMD gives that best fit your symptoms and the percentage each option fits your symptoms. This helps so much when talking to your doctor about your concerns. Try this free service you won't regret it! They also offer a monthly membership.
TrustPilot Review
Easily confirmed what I suspected. Very thorough, definitely the best thing you can get without speaking to a human. A nurse would ask the exact same questions and give you the exact same answers.
TrustPilot Review
Genuinely saved my life. I went to an Instacare for severe abdominal pain and was told to take Tums for the next two weeks. I left feeling rushed out and unheard. I wrote out my symptoms to CodyMD and was told there’s a 75% chance I have acute appendicitis. I took myself to the hospital and had emergency surgery the same morning. The platform is great, detailed, and really encouraged me to go to the ER.
TrustPilot Review
Table of Contents
Common Questions
Chat with CodyMD
Cody's Chat with Patient
Cody's AI Summary
Top 3 AI Diagnosis List
Review by Dr Albert DiPiero
Resource Center
Testimonials
Share this Case Study
Meet your host

Albert DiPiero, MD MPH FACP
I am a co-founder and the Chief Medical Officer at CodyMD and your host for this edition of Cody Grand Rounds. I have been a practicing physician and faculty member at medical schools for over 26 years.
About The AI Doctor Case Study
CodyMD is a partnership between Human Doctors and AI Doctors. Cody is an AI Doctor who helps thousands of people every day. At each Cody Grand Rounds, I select a real case and review it with Cody, the AI Doctor.
Each case is based on a real patient but has been modified to maintain privacy and to emphasize certain teaching points.
What could be causing sharp, burning stomach pain?
Why does my stomach pain come and go?
What is the best way to relieve sudden stomach pain?
Can sharp stomach pain be a sign of something serious?
How is nausea related to stomach pain?
How do I know if my stomach pain is an emergency?
Can stress cause stomach pain and nausea?
Click the button below to initiate a conversation with CodyMD, your AI Doctor.
Below is a conversation transcript between the patient and our AI Doctor CodyMd.
Cody, the AI Doctor
So you want to focus on the sharp, burning pain at the top of your stomach and nausea today, is that correct?
Patient
Yes
Cody, the AI Doctor
My goal is to provide you with an accurate assessment and plan. Let's talk about your concerns regarding sharp, burning pain at the top of your stomach, nausea. Can you describe the intensity and duration of your sharp, burning pain? For example, does it come and go, or is it constant? How would you rate the pain on a scale from 1 to 10?
Patient
8, comes and goes
Cody, the AI Doctor
Alright, noted. When did you first start experiencing the sharp, burning pain at the top of your stomach and nausea? For example, did it start 2 days ago or 3 weeks ago?
Patient
2 hours ago
Cody, the AI Doctor
A sudden onset of sharp, burning pain and nausea can sometimes indicate conditions like gastritis or peptic ulcers, which may require prompt evaluation. Have you been diagnosed with any medical conditions related to your gastrointestinal health? For example, acid reflux, gastritis, or peptic ulcers?
Patient
Gastroenteritis
Cody, the AI Doctor
Ah, I see. In what year were you born?
Patient
1971
Cody, the AI Doctor
Got it. Ah, I see. What is your sex?
Patient
Female
Cody, the AI Doctor
Gender can play a role in certain gastrointestinal conditions, as some issues may be more prevalent in females, such as gallbladder disease or certain types of gastritis. Can you describe the exact location of your sharp, burning pain? For example, is it in the center of your upper abdomen, on the right side, or the left side?
Patient
Center of upper abdomen
Cody, the AI Doctor
Hmm. Is your sharp, burning pain at the top of your stomach and nausea getting worse, getting better, staying the same, or does it vary day to day?
Patient
Staying the same but I'm feeling very faint
Cody, the AI Doctor
Feeling faint can be a concerning symptom, especially when combined with sharp, burning pain and nausea. Have you noticed if certain foods or drinks make your sharp, burning pain at the top of your stomach or nausea worse? For example, spicy foods, caffeine, or alcohol?
Patient
No, I haven't eaten or drank anything since it started.
Based on the information and conversations with Cody, we have prepared a top 3 AI Diagnosis List.
1. Gastritis( 50 % probability)
This condition excels as the primary diagnosis, given the sudden onset, location of the pain, and nausea. This aligns well with the patient's history of gastroenteritis.
2. Peptic Ulcer Disease(30 % probability)
The sharp, burning nature of the pain that comes and goes is highly indicative of a peptic ulcer, especially given the intensity (rated as an 8).
3. Gastroenteritis(20 % probability)
While the patient has a history of gastroenteritis, the acute presentation and intensity make this a less likely primary cause but still within consideration.

Dr. Albert DiPiero
The patient's sudden onset of sharp, burning pain in the upper abdomen and nausea, rated as an 8/10, is concerning. The present symptoms of feeling faint add complexity to this case.
1. Gastritis(50% probability)
Symptoms like sharp, burning pain in the upper abdomen and nausea are classic for gastritis. The absence of a trigger like food or drink makes acute gastritis plausible, especially given the patient's medical history of gastroenteritis.
2. Peptic Ulcer Disease(30% probability)
The intense, sharp pain that comes and goes is highly suggestive of a peptic ulcer. The heightened stress may exacerbate the condition leading to the current symptoms.
3. Acid Reflux(20% probability)
While less likely due to the sudden onset and intensity of pain, it could be considered if other diagnoses are ruled out.
Next Steps for Evaluation
Immediate evaluation in a clinical setting is warranted because of the intensity of pain and her feelings of faintness. Blood tests including complete blood count, liver function tests, and amylase/lipase should be conducted. An urgent abdominal ultrasound or endoscopy may be required to rule out peptic ulcer or gallbladder disease. IV fluids could help with the faintness.
Potential Treatment Modalities
Once diagnosis is confirmed, treatment could include proton pump inhibitors (PPI) or H2 blockers for gastritis or peptic ulcer, alongside dietary modifications. Antacids may provide temporary relief, and antibiotics would be necessary if H. pylori infection is detected.
CodyMD Resources:
Other Resources:
Abdominal Pain: Causes, Types & Treatment | Cleveland Clinic
Gastritis: What It Is, Symptoms, Causes & Treatment | Cleveland Clinic
Related Articles
The best part about CodyMD, besides the interaction, is the three options CodyMD gives that best fit your symptoms and the percentage each option fits your symptoms. This helps so much when talking to your doctor about your concerns. Try this free service you won't regret it! They also offer a monthly membership.
TrustPilot Review
Easily confirmed what I suspected. Very thorough, definitely the best thing you can get without speaking to a human. A nurse would ask the exact same questions and give you the exact same answers.
TrustPilot Review
Genuinely saved my life. I went to an Instacare for severe abdominal pain and was told to take Tums for the next two weeks. I left feeling rushed out and unheard. I wrote out my symptoms to CodyMD and was told there’s a 75% chance I have acute appendicitis. I took myself to the hospital and had emergency surgery the same morning. The platform is great, detailed, and really encouraged me to go to the ER.
TrustPilot Review