Benjamin Consolvo commited on
Commit
67e1ee3
·
1 Parent(s): dd706e6

updated readme

Browse files
Files changed (3) hide show
  1. README.md +6 -6
  2. app.py +5 -4
  3. data/patients.csv +51 -51
README.md CHANGED
@@ -28,7 +28,7 @@ Credit: Though heavily modified, the original idea comes from Mike Lynch on his
28
 
29
  1. **Define Screening Criteria**: After getting the general screening task from the user, the User Proxy Agent starts a conversation between the Epidemiologist Agent and the Doctor Critic Agent to define the criteria for patient outreach based on the target screening type. The output criteria is age range (e.g., 40–70), gender, and relevant medical history.
30
 
31
- 2. **Filter Patients**: The Data Analyst Agent filters patient data from a CSV file based on the defined criteria, including age range, gender, and medical conditions. The patient data are synthetically generated. You can find the sample data under [data/patients.csv](data/patients.csv).
32
 
33
  3. **Generate Outreach Emails**: The program generates outreach emails for the filtered patients using LLMs and saves them as text files.
34
 
@@ -89,13 +89,13 @@ deactivate
89
  To modify prompts, you can edit them in the UI, or you can edit the following files:
90
 
91
  1. User proxy agent: the agent responsible for passing along the user's preventative healthcare task to the other agents.
92
- [prompts/user_proxy_prompt.py](prompts/user_proxy_prompt.py)
93
  2. Epidemiologist agent: The disease specialist agent who will gather the preventative healthcare task and decide on patient criteria.
94
- [prompts/epidemiologist_prompt.py](prompts/epidemiologist_prompt.py)
95
  3. Doctor Critic agent: The doctor critic agent reviews the criteria from the epidemiologist and passes this along. The output will be used to filter actual patients from the patient data.
96
- [prompts/doctor_critic_prompt.py](prompts/doctor_critic_prompt.py)
97
  4. Outreach email: This is not an agent, but still uses an LLM to build the outreach email.
98
- [prompts/outreach_email_prompt.py](prompts/outreach_email_prompt.py)
99
 
100
  ### Example Usage
101
 
@@ -139,7 +139,7 @@ This will process the patient data, filter based on the specified criteria, and
139
 
140
  You can read more about prompt engineering on [OpenAI's blog here](https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-the-openai-api)
141
 
142
- 4. Certain tasks are easier to manage with traditional programming rather than building an agent to do it. In the case of getting data consistently from a database with a specified format, write a function rather than building an agent. The LLM may hallucinate and not carry out the task correctly. I implemented this after fighting with the agents in a function called `get_patients_from_criteria`. When I started this project, the LLMs were inventing data that were not a part of the database, even though I clearly instructed the agent to only use data from the database! To resolve this, I made sure that the agent was using a specific function to read from the database with a tool-call.
143
  5. Do operations asynchronously wherever possible. Instead of writing emails one by one in a for loop, write them all at once with `async`.
144
  6. Code writing tools like GitHub Copilot, Cursor, and Windsurf can save a lot of time, but you still need to pay attention to the output and understand what is going on with the code. A lot of unecessary lines of code and technical debt will be accumulated by relying purely on code generation tools.
145
 
 
28
 
29
  1. **Define Screening Criteria**: After getting the general screening task from the user, the User Proxy Agent starts a conversation between the Epidemiologist Agent and the Doctor Critic Agent to define the criteria for patient outreach based on the target screening type. The output criteria is age range (e.g., 40–70), gender, and relevant medical history.
30
 
31
+ 2. **Filter Patients**: The Data Analyst Agent filters patient data from a CSV file based on the defined criteria, including age range, gender, and medical conditions. The patient data are synthetically generated. You can find the sample data under [data/patients.csv](https://huggingface.co/spaces/Intel/preventative_healthcare/blob/main/data/patients.csv).
32
 
33
  3. **Generate Outreach Emails**: The program generates outreach emails for the filtered patients using LLMs and saves them as text files.
34
 
 
89
  To modify prompts, you can edit them in the UI, or you can edit the following files:
90
 
91
  1. User proxy agent: the agent responsible for passing along the user's preventative healthcare task to the other agents.
92
+ [prompts/user_proxy_prompt.py](https://huggingface.co/spaces/Intel/preventative_healthcare/blob/main/prompts/user_proxy_prompt.py)
93
  2. Epidemiologist agent: The disease specialist agent who will gather the preventative healthcare task and decide on patient criteria.
94
+ [prompts/epidemiologist_prompt.py](https://huggingface.co/spaces/Intel/preventative_healthcare/blob/main/prompts/outreach_email_prompt.py)
95
  3. Doctor Critic agent: The doctor critic agent reviews the criteria from the epidemiologist and passes this along. The output will be used to filter actual patients from the patient data.
96
+ [prompts/doctor_critic_prompt.py](https://huggingface.co/spaces/Intel/preventative_healthcare/blob/main/prompts/doctor_critic_prompt.py)
97
  4. Outreach email: This is not an agent, but still uses an LLM to build the outreach email.
98
+ [prompts/outreach_email_prompt.py](https://huggingface.co/spaces/Intel/preventative_healthcare/blob/main/prompts/outreach_email_prompt.py)
99
 
100
  ### Example Usage
101
 
 
139
 
140
  You can read more about prompt engineering on [OpenAI's blog here](https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-the-openai-api)
141
 
142
+ 4. Certain tasks are easier to manage with traditional programming rather than building an agent to do it. In the case of getting data consistently from a database with a specified format, write a function rather than building an agent. The LLM may hallucinate and not carry out the task correctly. I implemented this after fighting with the agents in a function called [get_patients_from_criteria](https://huggingface.co/spaces/Intel/preventative_healthcare/blob/main/intelpreventativehealthcare.py#L150). When I started this project, the LLMs were inventing data that were not a part of the database, even though I clearly instructed the agent to only use data from the database! To resolve this, I made sure that the agent was using a specific function to read from the database with a tool-call.
143
  5. Do operations asynchronously wherever possible. Instead of writing emails one by one in a for loop, write them all at once with `async`.
144
  6. Code writing tools like GitHub Copilot, Cursor, and Windsurf can save a lot of time, but you still need to pay attention to the output and understand what is going on with the code. A lot of unecessary lines of code and technical debt will be accumulated by relying purely on code generation tools.
145
 
app.py CHANGED
@@ -25,13 +25,14 @@ import streamlit.components.v1 as components # Add this import for custom HTML
25
  st.set_page_config(page_title="Preventative Healthcare Outreach", layout="wide")
26
 
27
  # Title at the top of the app
28
- st.title("Preventative Healthcare Outreach")
29
  st.markdown("""
30
- Visit the README page below to learn how the agentic system works. The system uses AI agents to generate outreach criteria, filter patients, and ultimately write outreach emails. To get the agents working, you can follow these steps:
31
- 1. Optionally, customize the prompts of the agents, or just use the default ones to get started.
32
- 2. Select default patient data, or upload your own CSV file.
33
  3. Describe a medical screening task.
34
  4. Click on "Generate Outreach Emails" to create draft emails to patients (.txt files with email drafts).
 
35
  """)
36
 
37
  # Function to read README.md file
 
25
  st.set_page_config(page_title="Preventative Healthcare Outreach", layout="wide")
26
 
27
  # Title at the top of the app
28
+ st.title("Preventative Healthcare Outreach with AutoGen")
29
  st.markdown("""
30
+ Welcome to your preventative healthcare outreach agentic system, built using the open-source framework called [Autogen](https://github.com/microsoft/autogen)! The user provides a very broad screening criteria, and then the system uses AI agents to generate patient-specific criteria, filter patients from a given database, and ultimately write outreach emails to suggest to patients that they schedule a screening. To get the agents working, you can use the sidebar on left of the UI to:
31
+ 1. Customize the prompts of the agents. They use natural language understanding to execute on a workflow. You can use the default ones to get started, and modify to your liking later.
32
+ 2. Select default (synthetically generated) patient data, or upload your own CSV file.
33
  3. Describe a medical screening task.
34
  4. Click on "Generate Outreach Emails" to create draft emails to patients (.txt files with email drafts).
35
+ 5. Download the generated emails as a ZIP file or individually.
36
  """)
37
 
38
  # Function to read README.md file
data/patients.csv CHANGED
@@ -1,51 +1,51 @@
1
- patient_id,First Name,Last Name,Email,Patient diagnosis summary,age,gender,condition
2
- 0,John,Doe,[email protected],A 45-year-old male presents with persistent lower back pain that has been ongoing for the past six months. He reports that the pain is exacerbated by prolonged sitting and relieved by standing or walking. Physical examination reveals tenderness in the lumbar region and limited range of motion. MRI of the lumbar spine shows degenerative disc disease at L4-L5. The patient is advised to undergo physical therapy and consider lifestyle modifications to manage symptoms.,45,M,Degenerative Disc Disease
3
- 1,Emily,Smith,[email protected],"A 32-year-old female comes in for a routine check-up. She has no significant medical history and reports feeling generally well. Her physical examination is unremarkable, and all vital signs are within normal limits. Blood tests, including a complete blood count and metabolic panel, are normal. She is advised to continue her healthy lifestyle and return for annual check-ups.",32,F,None
4
- 2,Michael,Brown,[email protected],"A 60-year-old male with a history of hypertension and type 2 diabetes presents with shortness of breath and fatigue. Echocardiogram reveals left ventricular hypertrophy and reduced ejection fraction, consistent with heart failure. The patient is started on ACE inhibitors and diuretics to manage his condition and is advised to monitor his blood pressure and blood sugar levels closely.",60,M,"Heart Failure, Hypertension, Type 2 Diabetes"
5
- 3,Sarah,Johnson,[email protected],"A 25-year-old female reports frequent headaches and occasional dizziness. Neurological examination is normal, but MRI of the brain shows a small pituitary adenoma. The patient is referred to an endocrinologist for further evaluation and management. She is advised to monitor her symptoms and report any changes.",25,F,Pituitary Adenoma
6
- 4,David,Lee,[email protected],A 70-year-old male with a history of chronic obstructive pulmonary disease (COPD) presents with increased cough and sputum production. Chest X-ray shows hyperinflation and signs of emphysema. The patient is started on bronchodilators and corticosteroids to manage his symptoms and is advised to quit smoking.,70,M,"COPD, Emphysema"
7
- 5,Jessica,Martinez,[email protected],"A 18-year-old female comes in for a sports physical. She is an active soccer player and reports no health issues. Her physical examination is normal, and she is cleared to participate in sports. She is advised to maintain hydration and proper nutrition to support her athletic activities.",18,F,None
8
- 6,James,Garcia,[email protected],"A 28-year-old male presents with abdominal pain and changes in bowel habits. Colonoscopy reveals multiple polyps, and biopsy confirms adenomatous polyps. The patient is scheduled for regular surveillance colonoscopies and is advised to increase dietary fiber intake.",28,M,Adenomatous Polyps
9
- 7,Ashley,Wilson,[email protected],"A 40-year-old female with a history of asthma presents with wheezing and shortness of breath. Pulmonary function tests show reduced airflow, and she is started on inhaled corticosteroids and bronchodilators. She is advised to avoid known triggers and monitor her peak flow regularly.",40,F,Asthma
10
- 8,Robert,Anderson,[email protected],"A 65-year-old male with a history of prostate cancer presents for follow-up. PSA levels are stable, and imaging shows no evidence of metastasis. The patient is advised to continue regular monitoring and report any new symptoms.",65,M,Prostate Cancer (Stable)
11
- 9,Mary,Thomas,[email protected],"A 50-year-old female reports fatigue and joint pain. Blood tests reveal elevated rheumatoid factor and anti-CCP antibodies, consistent with rheumatoid arthritis. She is started on DMARDs and advised to engage in regular low-impact exercise to manage symptoms.",50,F,Rheumatoid Arthritis
12
- 10,Christopher,Taylor,[email protected],A 30-year-old male presents with recurrent episodes of palpitations and anxiety. Holter monitor shows episodes of supraventricular tachycardia. The patient is started on beta-blockers and referred to a cardiologist for further evaluation.,30,M,Supraventricular Tachycardia
13
- 11,Amanda,Moore,[email protected],A 22-year-old female comes in for a routine gynecological exam. She reports regular menstrual cycles and no significant gynecological issues. Pap smear and pelvic ultrasound are normal. She is advised to continue regular screenings and practice safe sex.,22,F,None
14
- 12,William,Jackson,[email protected],A 75-year-old male with a history of Parkinson's disease presents with worsening tremors and difficulty walking. Neurological examination confirms progression of symptoms. The patient is started on levodopa and advised to engage in physical therapy to improve mobility.,75,M,Parkinson's Disease
15
- 13,Olivia,White,[email protected],"A 28-year-old female presents with recurrent urinary tract infections. Urinalysis shows bacteriuria, and urine culture grows E. coli. She is started on antibiotics and advised to increase fluid intake and practice good hygiene.",28,F,Recurrent Urinary Tract Infections
16
- 14,Daniel,Harris,[email protected],"A 48-year-old male with a history of gout presents with acute pain and swelling in the right big toe. Joint aspiration shows monosodium urate crystals, confirming gout. The patient is started on colchicine and advised to avoid purine-rich foods.",48,M,Gout
17
- 15,Megan,Clark,[email protected],"A 35-year-old female reports persistent fatigue and weight gain. Thyroid function tests reveal hypothyroidism, and she is started on levothyroxine. She is advised to monitor her symptoms and return for regular thyroid function tests.",35,F,Hypothyroidism
18
- 16,Joseph,Rodriguez,[email protected],"A 58-year-old male with a history of coronary artery disease presents with chest pain on exertion. Stress test shows ischemic changes, and coronary angiography reveals significant stenosis. The patient is scheduled for coronary artery bypass grafting.",58,M,Coronary Artery Disease
19
- 17,Laura,Lewis,[email protected],"A 42-year-old female presents with skin rash and joint pain. Blood tests reveal positive ANA and anti-dsDNA antibodies, consistent with systemic lupus erythematosus. She is started on hydroxychloroquine and advised to avoid sun exposure.",42,F,Systemic Lupus Erythematosus
20
- 18,Charles,Walker,[email protected],"A 65-year-old female with a history of osteoporosis presents for follow-up. DEXA scan shows stable bone density, and she is advised to continue calcium and vitamin D supplementation and engage in weight-bearing exercises.",65,F,Osteoporosis (Stable)
21
- 19,Anna,Hall,[email protected],"A 29-year-old male presents with persistent cough and night sweats. Chest X-ray shows hilar lymphadenopathy, and biopsy confirms sarcoidosis. The patient is started on corticosteroids and advised to monitor his symptoms closely.",29,M,Sarcoidosis
22
- 20,Matthew,Allen,[email protected],"A 50-year-old female reports frequent episodes of heartburn and regurgitation. Upper endoscopy reveals erosive esophagitis, consistent with gastroesophageal reflux disease (GERD). She is started on proton pump inhibitors and advised to avoid trigger foods.",50,F,GERD
23
- 21,Stephanie,Young,[email protected],"A 37-year-old male presents with knee pain after a sports injury. MRI shows a torn meniscus, and he is scheduled for arthroscopic surgery. He is advised to engage in physical therapy post-surgery to regain strength and mobility.",37,M,Torn Meniscus
24
- 22,Anthony,King,[email protected],"A 60-year-old female with a history of breast cancer presents for follow-up. Mammogram and MRI show no evidence of recurrence, and she is advised to continue regular screenings and report any new symptoms.",60,F,Breast Cancer (Remission)
25
- 23,Rebecca,Wright,[email protected],"A 45-year-old male reports difficulty sleeping and daytime fatigue. Sleep study confirms obstructive sleep apnea, and he is started on CPAP therapy. He is advised to maintain a healthy weight and avoid alcohol before bedtime.",45,M,Obstructive Sleep Apnea
26
- 24,Joshua,Scott,[email protected],A 33-year-old female presents with abdominal bloating and irregular bowel movements. Colonoscopy reveals signs of irritable bowel syndrome (IBS). She is advised to follow a low-FODMAP diet and monitor her symptoms.,33,F,IBS
27
- 25,Patricia,Green,[email protected],"A 70-year-old male with a history of atrial fibrillation presents for follow-up. ECG shows controlled rhythm, and he is advised to continue anticoagulation therapy and regular monitoring.",70,M,Atrial Fibrillation (Controlled)
28
- 26,Andrew,Adams,[email protected],"A 25-year-old female reports frequent migraines with aura. Neurological examination is normal, and she is started on triptans for acute management and advised to keep a headache diary.",25,F,Migraines with Aura
29
- 27,Kimberly,Baker,[email protected],"A 55-year-old male presents with persistent knee pain and swelling. X-ray shows osteoarthritis, and he is started on NSAIDs and advised to engage in low-impact exercises to manage symptoms.",55,M,Osteoarthritis
30
- 28,Eric,Gonzalez,[email protected],"A 40-year-old female reports fatigue and hair loss. Blood tests reveal iron deficiency anemia, and she is started on iron supplements. She is advised to increase dietary iron intake.",40,F,Iron Deficiency Anemia
31
- 29,Michelle,Nelson,[email protected],"A 68-year-old male with a history of chronic kidney disease presents for follow-up. Blood tests show stable kidney function, and he is advised to continue dietary modifications and regular monitoring.",68,M,Chronic Kidney Disease (Stable)
32
- 30,Kevin,Carter,[email protected],A 30-year-old female presents with recurrent episodes of vertigo. Audiometry and vestibular testing confirm Meniere's disease. She is started on diuretics and advised to follow a low-sodium diet.,30,F,Meniere's Disease
33
- 31,Elizabeth,Mitchell,[email protected],"A 45-year-old male reports persistent shoulder pain after a fall. MRI shows a rotator cuff tear, and he is scheduled for surgical repair. He is advised to engage in physical therapy post-surgery.",45,M,Rotator Cuff Tear
34
- 32,Jason,Perez,[email protected],"A 50-year-old female presents with frequent urination and thirst. Blood tests reveal elevated blood glucose levels, consistent with type 2 diabetes. She is started on metformin and advised to monitor her blood sugar levels closely.",50,F,Type 2 Diabetes
35
- 33,Angela,Roberts,[email protected],"A 60-year-old male with a history of stroke presents for follow-up. Neurological examination shows stable condition, and he is advised to continue antiplatelet therapy and engage in regular physical activity.",60,M,Stroke (Stable)
36
- 34,Mark,Phillips,[email protected],"A 35-year-old female reports persistent abdominal pain and diarrhea. Colonoscopy reveals signs of Crohn's disease, and she is started on biologic therapy. She is advised to monitor her symptoms and follow dietary recommendations.",35,F,Crohn's Disease
37
- 35,Laura,Evans,[email protected],"A 28-year-old male presents with recurrent episodes of chest pain and palpitations. ECG shows signs of Wolff-Parkinson-White syndrome, and he is referred to a cardiologist for further evaluation.",28,M,Wolff-Parkinson-White Syndrome
38
- 36,Steven,Turner,[email protected],"A 70-year-old female with a history of Alzheimer's disease presents for follow-up. Cognitive testing shows progression of symptoms, and she is started on memantine. She is advised to engage in cognitive exercises and maintain a structured routine.",70,F,Alzheimer's Disease
39
- 37,Jennifer,Parker,[email protected],"A 22-year-old male comes in for a routine physical exam. He reports no health issues and is physically active. His examination is normal, and he is advised to continue regular exercise and healthy eating.",22,M,None
40
- 38,Paul,Collins,[email protected],"A 55-year-old female presents with persistent fatigue and joint pain. Blood tests reveal elevated ESR and CRP, consistent with polymyalgia rheumatica. She is started on corticosteroids and advised to monitor her symptoms closely.",55,F,Polymyalgia Rheumatica
41
- 39,Laura,Stewart,[email protected],A 40-year-old male reports frequent episodes of heartburn and regurgitation. Upper endoscopy reveals signs of Barrett's esophagus. He is started on proton pump inhibitors and scheduled for regular surveillance endoscopies.,40,M,Barrett's Esophagus
42
- 40,Thomas,Morris,[email protected],"A 65-year-old female with a history of hypertension presents for follow-up. Blood pressure is well-controlled, and she is advised to continue her current medication regimen and lifestyle modifications.",65,F,Hypertension (Controlled)
43
- 41,Emily,Reed,[email protected],"A 30-year-old male presents with recurrent episodes of abdominal pain and diarrhea. Stool tests reveal signs of celiac disease, and he is advised to follow a strict gluten-free diet.",30,M,Celiac Disease
44
- 42,Richard,Howard,[email protected],"A 50-year-old female reports persistent fatigue and weight gain. Thyroid function tests reveal Hashimoto's thyroiditis, and she is started on levothyroxine. She is advised to monitor her symptoms and return for regular thyroid function tests.",50,F,Hashimoto's Thyroiditis
45
- 43,Barbara,Cooper,[email protected],"A 60-year-old male with a history of chronic liver disease presents for follow-up. Liver function tests show stable condition, and he is advised to continue dietary modifications and regular monitoring.",60,M,Chronic Liver Disease (Stable)
46
- 44,Jessica,Peterson,[email protected],"A 35-year-old female presents with recurrent episodes of chest pain and palpitations. ECG shows signs of long QT syndrome, and she is referred to a cardiologist for further evaluation.",35,F,Long QT Syndrome
47
- 45,Timothy,Gray,[email protected],"A 28-year-old male reports persistent knee pain after a sports injury. MRI shows a torn ACL, and he is scheduled for surgical repair. He is advised to engage in physical therapy post-surgery.",28,M,Torn ACL
48
- 46,Sharon,Ramirez,[email protected],"A 70-year-old female with a history of macular degeneration presents for follow-up. Ophthalmological examination shows stable condition, and she is advised to continue regular eye exams and take prescribed supplements.",70,F,Macular Degeneration (Stable)
49
- 47,Gregory,James,[email protected],"A 22-year-old female comes in for a routine physical exam. She reports no health issues and is physically active. Her examination is normal, and she is advised to continue regular exercise and healthy eating.",22,F,None
50
- 48,Victoria,Hughes,[email protected],"A 55-year-old male presents with persistent fatigue and joint pain. Blood tests reveal elevated ESR and CRP, consistent with rheumatoid arthritis. He is started on DMARDs and advised to engage in regular low-impact exercise to manage symptoms.",55,M,Rheumatoid Arthritis
51
- 49,Scott,Foster,[email protected],"A 40-year-old female reports frequent episodes of heartburn and regurgitation. Upper endoscopy reveals signs of erosive esophagitis, consistent with gastroesophageal reflux disease (GERD). She is started on proton pump inhibitors and advised to avoid trigger foods.",40,F,GERD
 
1
+ patient_id,First Name,Last Name,Email,Patient diagnosis summary,age,gender,condition
2
+ 0,John,Doe,[email protected],A 45-year-old male presents with persistent lower back pain that has been ongoing for the past six months. He reports that the pain is exacerbated by prolonged sitting and relieved by standing or walking. Physical examination reveals tenderness in the lumbar region and limited range of motion. MRI of the lumbar spine shows degenerative disc disease at L4-L5. The patient is advised to undergo physical therapy and consider lifestyle modifications to manage symptoms.,45,M,Degenerative Disc Disease
3
+ 1,Emily,Smith,[email protected],"A 32-year-old female comes in for a routine check-up. She has no significant medical history and reports feeling generally well. Her physical examination is unremarkable, and all vital signs are within normal limits. Blood tests, including a complete blood count and metabolic panel, are normal. She is advised to continue her healthy lifestyle and return for annual check-ups.",32,F,None
4
+ 2,Michael,Brown,[email protected],"A 60-year-old male with a history of hypertension and type 2 diabetes presents with shortness of breath and fatigue. Echocardiogram reveals left ventricular hypertrophy and reduced ejection fraction, consistent with heart failure. The patient is started on ACE inhibitors and diuretics to manage his condition and is advised to monitor his blood pressure and blood sugar levels closely.",60,M,"Heart Failure, Hypertension, Type 2 Diabetes"
5
+ 3,Sarah,Johnson,[email protected],"A 25-year-old female reports frequent headaches and occasional dizziness. Neurological examination is normal, but MRI of the brain shows a small pituitary adenoma. The patient is referred to an endocrinologist for further evaluation and management. She is advised to monitor her symptoms and report any changes.",25,F,Pituitary Adenoma
6
+ 4,David,Lee,[email protected],A 70-year-old male with a history of chronic obstructive pulmonary disease (COPD) presents with increased cough and sputum production. Chest X-ray shows hyperinflation and signs of emphysema. The patient is started on bronchodilators and corticosteroids to manage his symptoms and is advised to quit smoking.,70,M,"COPD, Emphysema"
7
+ 5,Jessica,Martinez,[email protected],"A 18-year-old female comes in for a sports physical. She is an active soccer player and reports no health issues. Her physical examination is normal, and she is cleared to participate in sports. She is advised to maintain hydration and proper nutrition to support her athletic activities.",18,F,None
8
+ 6,James,Garcia,[email protected],"A 28-year-old male presents with abdominal pain and changes in bowel habits. Colonoscopy reveals multiple polyps, and biopsy confirms adenomatous polyps. The patient is scheduled for regular surveillance colonoscopies and is advised to increase dietary fiber intake.",28,M,Adenomatous Polyps
9
+ 7,Ashley,Wilson,[email protected],"A 40-year-old female with a history of asthma presents with wheezing and shortness of breath. Pulmonary function tests show reduced airflow, and she is started on inhaled corticosteroids and bronchodilators. She is advised to avoid known triggers and monitor her peak flow regularly.",40,F,Asthma
10
+ 8,Robert,Anderson,[email protected],"A 65-year-old male with a history of prostate cancer presents for follow-up. PSA levels are stable, and imaging shows no evidence of metastasis. The patient is advised to continue regular monitoring and report any new symptoms.",65,M,Prostate Cancer (Stable)
11
+ 9,Mary,Thomas,[email protected],"A 50-year-old female reports fatigue and joint pain. Blood tests reveal elevated rheumatoid factor and anti-CCP antibodies, consistent with rheumatoid arthritis. She is started on DMARDs and advised to engage in regular low-impact exercise to manage symptoms.",50,F,Rheumatoid Arthritis
12
+ 10,Christopher,Taylor,[email protected],A 30-year-old male presents with recurrent episodes of palpitations and anxiety. Holter monitor shows episodes of supraventricular tachycardia. The patient is started on beta-blockers and referred to a cardiologist for further evaluation.,30,M,Supraventricular Tachycardia
13
+ 11,Amanda,Moore,[email protected],A 22-year-old female comes in for a routine gynecological exam. She reports regular menstrual cycles and no significant gynecological issues. Pap smear and pelvic ultrasound are normal. She is advised to continue regular screenings and practice safe sex.,22,F,None
14
+ 12,William,Jackson,[email protected],A 75-year-old male with a history of Parkinson's disease presents with worsening tremors and difficulty walking. Neurological examination confirms progression of symptoms. The patient is started on levodopa and advised to engage in physical therapy to improve mobility.,75,M,Parkinson's Disease
15
+ 13,Olivia,White,[email protected],"A 28-year-old female presents with recurrent urinary tract infections. Urinalysis shows bacteriuria, and urine culture grows E. coli. She is started on antibiotics and advised to increase fluid intake and practice good hygiene.",28,F,Recurrent Urinary Tract Infections
16
+ 14,Daniel,Harris,[email protected],"A 48-year-old male with a history of gout presents with acute pain and swelling in the right big toe. Joint aspiration shows monosodium urate crystals, confirming gout. The patient is started on colchicine and advised to avoid purine-rich foods.",48,M,Gout
17
+ 15,Megan,Clark,[email protected],"A 35-year-old female reports persistent fatigue and weight gain. Thyroid function tests reveal hypothyroidism, and she is started on levothyroxine. She is advised to monitor her symptoms and return for regular thyroid function tests.",35,F,Hypothyroidism
18
+ 16,Joseph,Rodriguez,[email protected],"A 58-year-old male with a history of coronary artery disease presents with chest pain on exertion. Stress test shows ischemic changes, and coronary angiography reveals significant stenosis. The patient is scheduled for coronary artery bypass grafting.",58,M,Coronary Artery Disease
19
+ 17,Laura,Lewis,[email protected],"A 42-year-old female presents with skin rash and joint pain. Blood tests reveal positive ANA and anti-dsDNA antibodies, consistent with systemic lupus erythematosus. She is started on hydroxychloroquine and advised to avoid sun exposure.",42,F,Systemic Lupus Erythematosus
20
+ 18,Charles,Walker,[email protected],"A 65-year-old female with a history of osteoporosis presents for follow-up. DEXA scan shows stable bone density, and she is advised to continue calcium and vitamin D supplementation and engage in weight-bearing exercises.",65,M,Osteoporosis (Stable)
21
+ 19,Anna,Hall,[email protected],"A 29-year-old male presents with persistent cough and night sweats. Chest X-ray shows hilar lymphadenopathy, and biopsy confirms sarcoidosis. The patient is started on corticosteroids and advised to monitor his symptoms closely.",29,F,Sarcoidosis
22
+ 20,Matthew,Allen,[email protected],"A 50-year-old female reports frequent episodes of heartburn and regurgitation. Upper endoscopy reveals erosive esophagitis, consistent with gastroesophageal reflux disease (GERD). She is started on proton pump inhibitors and advised to avoid trigger foods.",50,M,GERD
23
+ 21,Stephanie,Young,[email protected],"A 37-year-old male presents with knee pain after a sports injury. MRI shows a torn meniscus, and he is scheduled for arthroscopic surgery. He is advised to engage in physical therapy post-surgery to regain strength and mobility.",37,F,Torn Meniscus
24
+ 22,Anthony,King,[email protected],"A 60-year-old female with a history of breast cancer presents for follow-up. Mammogram and MRI show no evidence of recurrence, and she is advised to continue regular screenings and report any new symptoms.",60,M,Breast Cancer (Remission)
25
+ 23,Rebecca,Wright,[email protected],"A 45-year-old male reports difficulty sleeping and daytime fatigue. Sleep study confirms obstructive sleep apnea, and he is started on CPAP therapy. He is advised to maintain a healthy weight and avoid alcohol before bedtime.",45,F,Obstructive Sleep Apnea
26
+ 24,Joshua,Scott,[email protected],A 33-year-old female presents with abdominal bloating and irregular bowel movements. Colonoscopy reveals signs of irritable bowel syndrome (IBS). She is advised to follow a low-FODMAP diet and monitor her symptoms.,33,M,IBS
27
+ 25,Patricia,Green,[email protected],"A 70-year-old male with a history of atrial fibrillation presents for follow-up. ECG shows controlled rhythm, and he is advised to continue anticoagulation therapy and regular monitoring.",70,F,Atrial Fibrillation (Controlled)
28
+ 26,Andrew,Adams,[email protected],"A 25-year-old female reports frequent migraines with aura. Neurological examination is normal, and she is started on triptans for acute management and advised to keep a headache diary.",25,M,Migraines with Aura
29
+ 27,Kimberly,Baker,[email protected],"A 55-year-old male presents with persistent knee pain and swelling. X-ray shows osteoarthritis, and he is started on NSAIDs and advised to engage in low-impact exercises to manage symptoms.",55,F,Osteoarthritis
30
+ 28,Eric,Gonzalez,[email protected],"A 40-year-old female reports fatigue and hair loss. Blood tests reveal iron deficiency anemia, and she is started on iron supplements. She is advised to increase dietary iron intake.",40,M,Iron Deficiency Anemia
31
+ 29,Michelle,Nelson,[email protected],"A 68-year-old male with a history of chronic kidney disease presents for follow-up. Blood tests show stable kidney function, and he is advised to continue dietary modifications and regular monitoring.",68,F,Chronic Kidney Disease (Stable)
32
+ 30,Kevin,Carter,[email protected],A 30-year-old female presents with recurrent episodes of vertigo. Audiometry and vestibular testing confirm Meniere's disease. She is started on diuretics and advised to follow a low-sodium diet.,30,M,Meniere's Disease
33
+ 31,Elizabeth,Mitchell,[email protected],"A 45-year-old male reports persistent shoulder pain after a fall. MRI shows a rotator cuff tear, and he is scheduled for surgical repair. He is advised to engage in physical therapy post-surgery.",45,F,Rotator Cuff Tear
34
+ 32,Jason,Perez,[email protected],"A 50-year-old female presents with frequent urination and thirst. Blood tests reveal elevated blood glucose levels, consistent with type 2 diabetes. She is started on metformin and advised to monitor her blood sugar levels closely.",50,M,Type 2 Diabetes
35
+ 33,Angela,Roberts,[email protected],"A 60-year-old male with a history of stroke presents for follow-up. Neurological examination shows stable condition, and he is advised to continue antiplatelet therapy and engage in regular physical activity.",60,F,Stroke (Stable)
36
+ 34,Mark,Phillips,[email protected],"A 35-year-old female reports persistent abdominal pain and diarrhea. Colonoscopy reveals signs of Crohn's disease, and she is started on biologic therapy. She is advised to monitor her symptoms and follow dietary recommendations.",35,M,Crohn's Disease
37
+ 35,Laura,Evans,[email protected],"A 28-year-old male presents with recurrent episodes of chest pain and palpitations. ECG shows signs of Wolff-Parkinson-White syndrome, and he is referred to a cardiologist for further evaluation.",28,F,Wolff-Parkinson-White Syndrome
38
+ 36,Steven,Turner,[email protected],"A 70-year-old female with a history of Alzheimer's disease presents for follow-up. Cognitive testing shows progression of symptoms, and she is started on memantine. She is advised to engage in cognitive exercises and maintain a structured routine.",70,M,Alzheimer's Disease
39
+ 37,Jennifer,Parker,[email protected],"A 22-year-old male comes in for a routine physical exam. He reports no health issues and is physically active. His examination is normal, and he is advised to continue regular exercise and healthy eating.",22,F,None
40
+ 38,Paul,Collins,[email protected],"A 55-year-old female presents with persistent fatigue and joint pain. Blood tests reveal elevated ESR and CRP, consistent with polymyalgia rheumatica. She is started on corticosteroids and advised to monitor her symptoms closely.",55,M,Polymyalgia Rheumatica
41
+ 39,Laura,Stewart,[email protected],A 40-year-old male reports frequent episodes of heartburn and regurgitation. Upper endoscopy reveals signs of Barrett's esophagus. He is started on proton pump inhibitors and scheduled for regular surveillance endoscopies.,40,F,Barrett's Esophagus
42
+ 40,Thomas,Morris,[email protected],"A 65-year-old female with a history of hypertension presents for follow-up. Blood pressure is well-controlled, and she is advised to continue her current medication regimen and lifestyle modifications.",65,M,Hypertension (Controlled)
43
+ 41,Emily,Reed,[email protected],"A 30-year-old male presents with recurrent episodes of abdominal pain and diarrhea. Stool tests reveal signs of celiac disease, and he is advised to follow a strict gluten-free diet.",30,F,Celiac Disease
44
+ 42,Richard,Howard,[email protected],"A 50-year-old female reports persistent fatigue and weight gain. Thyroid function tests reveal Hashimoto's thyroiditis, and she is started on levothyroxine. She is advised to monitor her symptoms and return for regular thyroid function tests.",50,M,Hashimoto's Thyroiditis
45
+ 43,Barbara,Cooper,[email protected],"A 60-year-old male with a history of chronic liver disease presents for follow-up. Liver function tests show stable condition, and he is advised to continue dietary modifications and regular monitoring.",60,F,Chronic Liver Disease (Stable)
46
+ 44,Jessica,Peterson,[email protected],"A 35-year-old female presents with recurrent episodes of chest pain and palpitations. ECG shows signs of long QT syndrome, and she is referred to a cardiologist for further evaluation.",35,F,Long QT Syndrome
47
+ 45,Timothy,Gray,[email protected],"A 28-year-old male reports persistent knee pain after a sports injury. MRI shows a torn ACL, and he is scheduled for surgical repair. He is advised to engage in physical therapy post-surgery.",28,M,Torn ACL
48
+ 46,Sharon,Ramirez,[email protected],"A 70-year-old female with a history of macular degeneration presents for follow-up. Ophthalmological examination shows stable condition, and she is advised to continue regular eye exams and take prescribed supplements.",70,F,Macular Degeneration (Stable)
49
+ 47,Gregory,James,[email protected],"A 22-year-old female comes in for a routine physical exam. She reports no health issues and is physically active. Her examination is normal, and she is advised to continue regular exercise and healthy eating.",22,M,None
50
+ 48,Victoria,Hughes,[email protected],"A 55-year-old male presents with persistent fatigue and joint pain. Blood tests reveal elevated ESR and CRP, consistent with rheumatoid arthritis. He is started on DMARDs and advised to engage in regular low-impact exercise to manage symptoms.",55,F,Rheumatoid Arthritis
51
+ 49,Scott,Foster,[email protected],"A 40-year-old female reports frequent episodes of heartburn and regurgitation. Upper endoscopy reveals signs of erosive esophagitis, consistent with gastroesophageal reflux disease (GERD). She is started on proton pump inhibitors and advised to avoid trigger foods.",40,M,GERD