Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -215,7 +215,32 @@ def generate_treatment_plan_letters_ui():
|
|
215 |
username = st.text_input("π€ Username")
|
216 |
|
217 |
|
|
|
|
|
218 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
|
220 |
def generate_surgery_recommendation_letters_ui():
|
221 |
st.title("π₯ Surgery Recommendation Letters")
|
@@ -350,12 +375,3 @@ generate_letter_grid_ui()
|
|
350 |
#generate_health_education_letters_ui()
|
351 |
# Run the Streamlit UI function
|
352 |
#generate_letter_grid_ui()
|
353 |
-
|
354 |
-
# Define the functions for generating the letter UIs (examples)
|
355 |
-
#def generate_referral_letters_ui():
|
356 |
-
# UI code for referral letters
|
357 |
-
# pass
|
358 |
-
|
359 |
-
#def generate_medical_certificate_letters_ui():
|
360 |
-
# UI code for medical certificate letters
|
361 |
-
# pass
|
|
|
215 |
username = st.text_input("π€ Username")
|
216 |
|
217 |
|
218 |
+
def generate_medical_clearance_letters_ui():
|
219 |
+
st.title("πββοΈ Medical Clearance Letters")
|
220 |
|
221 |
+
# Search-style text box
|
222 |
+
search_query = st.text_input("Search Medical Clearance Letters")
|
223 |
+
|
224 |
+
# Buttons with emojis and boldface text
|
225 |
+
st.button("π **First**")
|
226 |
+
st.button("π **Middle**")
|
227 |
+
st.button("π **Last**")
|
228 |
+
|
229 |
+
# Text areas with default values based on letter examples
|
230 |
+
first_default = "Allow Mrs. Anderson to safely participate in a marathon\n" \
|
231 |
+
"Clear Mr. White to begin strength training"
|
232 |
+
middle_default = "The patient has been tested and has no chronic medical conditions or injuries\n" \
|
233 |
+
"The patientβs prior conditions are monitored, and it is advised to begin any physical activity or routine"
|
234 |
+
last_default = "Encourage gradual progression and cautious approach to intense activity\n" \
|
235 |
+
"List exercises that should be avoided, for instance, weightlifting for an individual with a heart condition"
|
236 |
+
|
237 |
+
first_text = st.text_area("First: State clearance conditions", value=first_default, max_chars=None, height=None)
|
238 |
+
middle_text = st.text_area("Middle: Explain clearance Details", value=middle_default, max_chars=None, height=None)
|
239 |
+
last_text = st.text_area("Last: Provide guidance on physical activity", value=last_default, max_chars=None, height=None)
|
240 |
+
|
241 |
+
# Username field with an emoji
|
242 |
+
username = st.text_input("π€ Username")
|
243 |
+
|
244 |
|
245 |
def generate_surgery_recommendation_letters_ui():
|
246 |
st.title("π₯ Surgery Recommendation Letters")
|
|
|
375 |
#generate_health_education_letters_ui()
|
376 |
# Run the Streamlit UI function
|
377 |
#generate_letter_grid_ui()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|