Update app.py
Browse files
app.py
CHANGED
@@ -89,3 +89,61 @@ if st.button("Search 🕵️♀️"):
|
|
89 |
html_blocks.append(documentHTML5)
|
90 |
all_html = ''.join(html_blocks)
|
91 |
components.html(all_html, width=1280, height=1024)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
html_blocks.append(documentHTML5)
|
90 |
all_html = ''.join(html_blocks)
|
91 |
components.html(all_html, width=1280, height=1024)
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
+
# Inject HTML5 and JavaScript for styling
|
96 |
+
st.markdown("""
|
97 |
+
<style>
|
98 |
+
.big-font {
|
99 |
+
font-size:24px !important;
|
100 |
+
}
|
101 |
+
</style>
|
102 |
+
""", unsafe_allow_html=True)
|
103 |
+
|
104 |
+
# Markdown and emojis for the case presentation
|
105 |
+
st.markdown("# 🏥 Case Study: 32-year-old Woman's Wellness Check")
|
106 |
+
st.markdown("## 📋 Patient Information")
|
107 |
+
st.markdown("""
|
108 |
+
- **Age**: 32
|
109 |
+
- **Gender**: Female
|
110 |
+
- **Past Medical History**: Asthma, Hypertension, Anxiety
|
111 |
+
- **Current Medications**: Albuterol, Fluticasone, Hydrochlorothiazide, Lisinopril, Fexofenadine
|
112 |
+
- **Vitals**
|
113 |
+
- **Temperature**: 99.5°F (37.5°C)
|
114 |
+
- **Blood Pressure**: 165/95 mmHg
|
115 |
+
- **Pulse**: 70/min
|
116 |
+
- **Respirations**: 15/min
|
117 |
+
- **Oxygen Saturation**: 98% on room air
|
118 |
+
""")
|
119 |
+
|
120 |
+
# Clinical Findings
|
121 |
+
st.markdown("## 📋 Clinical Findings")
|
122 |
+
st.markdown("""
|
123 |
+
- Cardiac exam reveals a S1 and S2 heart sound with a normal rate.
|
124 |
+
- Pulmonary exam is clear to auscultation bilaterally with good air movement.
|
125 |
+
- Abdominal exam reveals a bruit, normoactive bowel sounds, and an audible borborygmus.
|
126 |
+
- Neurological exam reveals cranial nerves II-XII as grossly intact with normal strength and reflexes in the upper and lower extremities.
|
127 |
+
""")
|
128 |
+
|
129 |
+
# Next Step Options
|
130 |
+
st.markdown("## 🤔 What is the best next step in management?")
|
131 |
+
|
132 |
+
# Multiple Choice
|
133 |
+
options = ["Blood Test", "MRI Scan", "Ultrasound with Doppler", "Immediate Surgery"]
|
134 |
+
choice = st.selectbox("", options)
|
135 |
+
|
136 |
+
# Explanation
|
137 |
+
if st.button("Submit"):
|
138 |
+
if choice == "Ultrasound with Doppler":
|
139 |
+
st.success("Correct! 🎉")
|
140 |
+
st.markdown("""
|
141 |
+
### Explanation
|
142 |
+
The patient's high blood pressure coupled with an abdominal bruit suggests the possibility of renal artery stenosis.
|
143 |
+
An **Ultrasound with Doppler** is the best next step for assessing blood flow and evaluating for renal artery stenosis.
|
144 |
+
""")
|
145 |
+
else:
|
146 |
+
st.error("Incorrect. 😞")
|
147 |
+
st.markdown("""
|
148 |
+
The best next step is **Ultrasound with Doppler**.
|
149 |
+
""")
|