Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,416 +2,111 @@ import streamlit as st
|
|
2 |
|
3 |
# Set the page configuration to use the full width of the screen
|
4 |
st.set_page_config(layout="wide")
|
|
|
5 |
|
6 |
-
# Define the letter types and their corresponding definitions and fields
|
7 |
-
letter_types = {
|
8 |
-
"Referral Letters": {
|
9 |
-
"Definition": "Letters asking for more help or treatment",
|
10 |
-
"Fields": ["Patient info", "Referral details"]
|
11 |
-
},
|
12 |
-
"Medical Certificate Letters": {
|
13 |
-
"Definition": "Letters about a patient's health problem or limits",
|
14 |
-
"Fields": ["Patient info", "Health problem details"]
|
15 |
-
},
|
16 |
-
"Prescription Letters": {
|
17 |
-
"Definition": "Letters allowing medicine",
|
18 |
-
"Fields": ["Patient info", "Medicine details"]
|
19 |
-
},
|
20 |
-
"Diagnosis Letters": {
|
21 |
-
"Definition": "Letters explaining a patient's health problem",
|
22 |
-
"Fields": ["Patient info", "Health problem details"]
|
23 |
-
},
|
24 |
-
"Treatment Plan Letters": {
|
25 |
-
"Definition": "Letters with a plan for getting better",
|
26 |
-
"Fields": ["Patient info", "Treatment details"]
|
27 |
-
},
|
28 |
-
"Surgery Recommendation Letters": {
|
29 |
-
"Definition": "Letters saying a patient needs surgery",
|
30 |
-
"Fields": ["Patient info", "Surgery details"]
|
31 |
-
},
|
32 |
-
"Medical Clearance Letters": {
|
33 |
-
"Definition": "Letters saying a patient can do activities",
|
34 |
-
"Fields": ["Patient info", "Activity details"]
|
35 |
-
},
|
36 |
-
"Follow-up Appointment Letters": {
|
37 |
-
"Definition": "Letters reminding about appointments",
|
38 |
-
"Fields": ["Patient info", "Appointment details"]
|
39 |
-
},
|
40 |
-
"Disability Support Letters": {
|
41 |
-
"Definition": "Letters about a patient's disability",
|
42 |
-
"Fields": ["Patient info", "Disability details"]
|
43 |
-
},
|
44 |
-
"Health Education Letters": {
|
45 |
-
"Definition": "Letters teaching about health",
|
46 |
-
"Fields": ["Patient info", "Education topic"]
|
47 |
-
}
|
48 |
-
}
|
49 |
-
|
50 |
-
# Streamlit UI
|
51 |
-
st.title("AI Letter Generation")
|
52 |
-
|
53 |
-
# User selects the letter type
|
54 |
-
selected_letter_type = st.selectbox("Select Letter Type", list(letter_types.keys()))
|
55 |
-
|
56 |
-
# Display the definition and fields for the selected letter type
|
57 |
-
st.write("Definition:", letter_types[selected_letter_type]["Definition"])
|
58 |
-
st.write("Fields Usually Needed:")
|
59 |
-
for field in letter_types[selected_letter_type]["Fields"]:
|
60 |
-
st.button(field)
|
61 |
-
|
62 |
-
|
63 |
-
def generate_referral_letters_ui():
|
64 |
-
st.title("π€ Referral Letters")
|
65 |
-
|
66 |
-
# Create columns for layout
|
67 |
-
col1, col2 = st.columns([3, 1]) # Adjust the ratio of column widths as needed
|
68 |
-
|
69 |
-
# Search-style text box
|
70 |
-
with col2:
|
71 |
-
search_query = st.text_input("Search Referral Letters")
|
72 |
-
|
73 |
-
# Buttons with emojis and boldface text
|
74 |
-
st.button("π **First**")
|
75 |
-
st.button("π **Middle**")
|
76 |
-
st.button("π **Last**")
|
77 |
-
|
78 |
-
# Text areas with default values based on letter examples
|
79 |
-
first_default = "Urgent need for further diagnostic testing for Mrs. Smith, who has persistent stomach issues\n" \
|
80 |
-
"Request for an audiological assessment for Mr. Johnson, aged 60"
|
81 |
-
middle_default = "The patient has symptoms that suggest a more comprehensive review is required\n" \
|
82 |
-
"The patientβs issue requires specialized care beyond the scope of the referring physician"
|
83 |
-
last_default = "Patient demographics, Referral details\n" \
|
84 |
-
"Diagnostic test reports, Medication details"
|
85 |
-
|
86 |
-
with col2:
|
87 |
-
first_text = st.text_area("First: State the request for consultation/treatment", value=first_default, max_chars=None, height=None)
|
88 |
-
middle_text = st.text_area("Middle: Explain the reason for referral", value=middle_default, max_chars=None, height=None)
|
89 |
-
last_text = st.text_area("Last: Provide patient info needed for the referred service", value=last_default, max_chars=None, height=None)
|
90 |
-
|
91 |
-
# Username field with an emoji
|
92 |
-
with col2:
|
93 |
-
username = st.text_input("π€ Username")
|
94 |
-
|
95 |
-
# Run the Streamlit UI function
|
96 |
-
# generate_referral_letters_ui()
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
def generate_medical_certificate_letters_ui():
|
101 |
-
st.title("π Medical Certificate Letters")
|
102 |
-
|
103 |
-
# Search-style text box
|
104 |
-
search_query = st.text_input("Search Medical Certificate Letters")
|
105 |
-
|
106 |
-
# Buttons with emojis and boldface text
|
107 |
-
st.button("π **First**")
|
108 |
-
st.button("π **Middle**")
|
109 |
-
st.button("π **Last**")
|
110 |
-
|
111 |
-
# Text areas with default values based on letter examples
|
112 |
-
first_default = "To certify Mr. Brownβs condition and advise on work restrictions\n" \
|
113 |
-
"To certify Ms. Leeβs health status for her impending travel."
|
114 |
-
middle_default = "Mr. Brown has suffered from a heart attack and is under medication\n" \
|
115 |
-
"Ms. Lee has a chronic back pain condition that requires special accommodations during her travel"
|
116 |
-
last_default = "No driving should be allowed for 6 months\n" \
|
117 |
-
"Ms. Lee must have an aisle seat and use cushions for lumbar support"
|
118 |
-
|
119 |
-
first_text = st.text_area("First: State the reason for certification", value=first_default, max_chars=None, height=None)
|
120 |
-
middle_text = st.text_area("Middle: Explain the patientβs medical condition", value=middle_default, max_chars=None, height=None)
|
121 |
-
last_text = st.text_area("Last: Outline any necessary work/travel adjustments", value=last_default, max_chars=None, height=None)
|
122 |
-
|
123 |
-
# Username field with an emoji
|
124 |
-
username = st.text_input("π€ Username")
|
125 |
-
|
126 |
-
|
127 |
-
def generate_prescription_letters_ui():
|
128 |
-
st.title("π Prescription Letters")
|
129 |
-
|
130 |
-
# Search-style text box
|
131 |
-
search_query = st.text_input("Search Prescription Letters")
|
132 |
-
|
133 |
-
# Buttons with emojis and boldface text
|
134 |
-
st.button("π **First**")
|
135 |
-
st.button("π **Middle**")
|
136 |
-
st.button("π **Last**")
|
137 |
|
138 |
-
|
139 |
-
first_default = "Request for prescription for Mr. Clarke\n" \
|
140 |
-
"Prescription authorization for Mrs. Davis"
|
141 |
-
middle_default = "Mr. Clarke requires medication for hypertension - Lisinopril 10mg BD with food\n" \
|
142 |
-
"Mrs. Davis is required to take two 500mg penicillin V tablets every 6 hours"
|
143 |
-
last_default = "Medication details, allergies and any known side effects"
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
|
149 |
-
# Username field with an emoji
|
150 |
-
username = st.text_input("π€ Username")
|
151 |
|
152 |
-
|
153 |
-
st.title("π¬ Diagnosis Letters")
|
154 |
|
155 |
-
|
156 |
-
|
|
|
|
|
157 |
|
158 |
-
|
159 |
-
st.button("π **First**")
|
160 |
-
st.button("π **Middle**")
|
161 |
-
st.button("π **Last**")
|
162 |
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
"Mrs. Jones has a lifelong condition that requires medication, dietary adjustments, and lifestyle changes."
|
168 |
-
last_default = "Recommend follow-up visits for monitoring and periodic testing\n" \
|
169 |
-
"Refer patients to the relevant healthcare specialist"
|
170 |
|
171 |
-
first_text = st.text_area("First: State the diagnosis", value=first_default, max_chars=None, height=None)
|
172 |
-
middle_text = st.text_area("Middle: Explain the diagnosis details", value=middle_default, max_chars=None, height=None)
|
173 |
-
last_text = st.text_area("Last: Provide any necessary follow-up recommendations", value=last_default, max_chars=None, height=None)
|
174 |
|
175 |
-
|
176 |
-
username = st.text_input("π€ Username")
|
177 |
|
178 |
-
|
179 |
-
|
|
|
|
|
180 |
|
181 |
-
# Search-style text box
|
182 |
-
search_query = st.text_input("Search Prescription Letters")
|
183 |
|
184 |
-
|
185 |
-
st.button("π **First**")
|
186 |
-
st.button("π **Middle**")
|
187 |
-
st.button("π **Last**")
|
188 |
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
"Mrs. Davis is required to take two 500mg penicillin V tablets every 6 hours"
|
194 |
-
last_default = "Medication details, allergies and any known side effects"
|
195 |
|
196 |
-
first_text = st.text_area("First: Introduce prescription request", value=first_default, max_chars=None, height=None)
|
197 |
-
middle_text = st.text_area("Middle: List dosage and frequency of medication", value=middle_default, max_chars=None, height=None)
|
198 |
-
last_text = st.text_area("Last: Provide medication details", value=last_default, max_chars=None, height=None)
|
199 |
-
|
200 |
-
# Username field with an emoji
|
201 |
-
username = st.text_input("π€ Username")
|
202 |
|
|
|
203 |
|
|
|
|
|
|
|
|
|
204 |
|
205 |
-
def generate_treatment_plan_letters_ui():
|
206 |
-
st.title("π©Ή Treatment Plan Letters")
|
207 |
-
|
208 |
-
# Search-style text box
|
209 |
-
search_query = st.text_input("Search Treatment Plan Letters")
|
210 |
|
211 |
-
|
212 |
-
st.button("π **First**")
|
213 |
-
st.button("π **Middle**")
|
214 |
-
st.button("π **Last**")
|
215 |
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
"Mrs. Whiteβs asthma management plan requires frequent use of recommended inhaler and daily monitoring"
|
221 |
-
last_default = "Recommend follow-up visits for monitoring and periodic testing\n" \
|
222 |
-
"Provide contact information in case of any emergencies"
|
223 |
|
224 |
-
first_text = st.text_area("First: Introduce treatment plan", value=first_default, max_chars=None, height=None)
|
225 |
-
middle_text = st.text_area("Middle: Explain treatment plan specifics", value=middle_default, max_chars=None, height=None)
|
226 |
-
last_text = st.text_area("Last: Detail any follow-up needed", value=last_default, max_chars=None, height=None)
|
227 |
|
228 |
-
|
229 |
-
username = st.text_input("π€ Username")
|
230 |
|
|
|
|
|
|
|
|
|
231 |
|
232 |
-
def generate_medical_clearance_letters_ui():
|
233 |
-
st.title("πββοΈ Medical Clearance Letters")
|
234 |
|
235 |
-
|
236 |
-
search_query = st.text_input("Search Medical Clearance Letters")
|
237 |
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
|
243 |
-
# Text areas with default values based on letter examples
|
244 |
-
first_default = "Allow Mrs. Anderson to safely participate in a marathon\n" \
|
245 |
-
"Clear Mr. White to begin strength training"
|
246 |
-
middle_default = "The patient has been tested and has no chronic medical conditions or injuries\n" \
|
247 |
-
"The patientβs prior conditions are monitored, and it is advised to begin any physical activity or routine"
|
248 |
-
last_default = "Encourage gradual progression and cautious approach to intense activity\n" \
|
249 |
-
"List exercises that should be avoided, for instance, weightlifting for an individual with a heart condition"
|
250 |
|
251 |
-
|
252 |
-
middle_text = st.text_area("Middle: Explain clearance Details", value=middle_default, max_chars=None, height=None)
|
253 |
-
last_text = st.text_area("Last: Provide guidance on physical activity", value=last_default, max_chars=None, height=None)
|
254 |
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
def generate_surgery_recommendation_letters_ui():
|
260 |
-
st.title("π₯ Surgery Recommendation Letters")
|
261 |
|
262 |
-
|
263 |
-
search_query = st.text_input("Search Surgery Recommendation Letters")
|
264 |
-
|
265 |
-
# Buttons with emojis and boldface text
|
266 |
-
st.button("π **First**")
|
267 |
-
st.button("π **Middle**")
|
268 |
-
st.button("π **Last**")
|
269 |
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
"Mrs. Taylor needs angiography to locate any arterial blockages"
|
275 |
-
last_default = "Suggest to take extra measures regarding allergies or post-procedural appointments\n" \
|
276 |
-
"Provide details on necessary pre and post-hospitalization guidance"
|
277 |
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
search_query = st.text_input("Search Follow-up Appointment Letters")
|
291 |
-
|
292 |
-
# Buttons with emojis and boldface text
|
293 |
-
st.button("π **First**")
|
294 |
-
st.button("π **Middle**")
|
295 |
-
st.button("π **Last**")
|
296 |
-
|
297 |
-
# Text areas with default values based on letter examples
|
298 |
-
first_default = "This is a reminder for Mrs. Rodriguezβs appointment on Friday, 17th September, at 11:00 am\n" \
|
299 |
-
"This letter is to confirm Mr. Johnsonβs appointment on Monday, 20th September, at 1:00 pm"
|
300 |
-
middle_default = "Review the date, time, and location of appointment\n" \
|
301 |
-
"Detail any necessary preparations for the appointment"
|
302 |
-
last_default = "Provide contact information and phone numbers in case of schedule change or emergency\n" \
|
303 |
-
"Encourage to reach out if an appointment must be canceled, or if there are any questions or concerns"
|
304 |
-
|
305 |
-
first_text = st.text_area("First: Remind of the appointment", value=first_default, max_chars=None, height=None)
|
306 |
-
middle_text = st.text_area("Middle: Confirm appointment details", value=middle_default, max_chars=None, height=None)
|
307 |
-
last_text = st.text_area("Last: Provide contact details", value=last_default, max_chars=None, height=None)
|
308 |
-
|
309 |
-
# Username field with an emoji
|
310 |
-
username = st.text_input("π€ Username")
|
311 |
-
|
312 |
-
# Run the Streamlit UI function
|
313 |
-
generate_follow_up_appointment_letters_ui()
|
314 |
-
|
315 |
-
|
316 |
-
def generate_health_education_letters_ui():
|
317 |
-
st.title("π Health Education Letters")
|
318 |
-
|
319 |
-
# Search-style text box
|
320 |
-
search_query = st.text_input("Search Health Education Letters")
|
321 |
-
|
322 |
-
# Buttons with emojis and boldface text
|
323 |
-
st.button("π **First**")
|
324 |
-
st.button("π **Middle**")
|
325 |
-
st.button("π **Last**")
|
326 |
-
|
327 |
-
# Text areas with default values based on letter examples
|
328 |
-
first_default = "This letter is to provide Ms. Prince with information on healthy eating habits\n" \
|
329 |
-
"This letter offers suggestions for stress management to Mr. Martin"
|
330 |
-
middle_default = "Outline the benefits of specific health practices for overall health\n" \
|
331 |
-
"Detail steps that can be taken to manage specific health conditions properly"
|
332 |
-
last_default = "Provide handouts, online resources, or any relevant materials to supplement the information\n" \
|
333 |
-
"Encourage patients to schedule follow-up appointments to discuss any questions or concerns."
|
334 |
-
|
335 |
-
first_text = st.text_area("First: Introduce the health education topic", value=first_default, max_chars=None, height=None)
|
336 |
-
middle_text = st.text_area("Middle: Explain the recommended practices", value=middle_default, max_chars=None, height=None)
|
337 |
-
last_text = st.text_area("Last: Provide Resources", value=last_default, max_chars=None, height=None)
|
338 |
-
|
339 |
-
# Username field with an emoji
|
340 |
-
username = st.text_input("π€ Username")
|
341 |
-
|
342 |
-
|
343 |
-
def generate_disability_support_letters_ui():
|
344 |
-
st.title("βΏ Disability Support Letters")
|
345 |
-
|
346 |
-
# Search-style text box
|
347 |
-
search_query = st.text_input("Search Disability Support Letters")
|
348 |
-
|
349 |
-
# Buttons with emojis and boldface text
|
350 |
-
st.button("π **First**")
|
351 |
-
st.button("π **Middle**")
|
352 |
-
st.button("π **Last**")
|
353 |
-
|
354 |
-
# Text areas with default values based on letter examples
|
355 |
-
first_default = "The purpose of this letter is to validate Mr. Williamsβ disability so that he can receive disability benefits\n" \
|
356 |
-
"The purpose of this letter is to document Ms. Radcliffβs disability to request special accommodations at work"
|
357 |
-
middle_default = "Detail the patientβs physical or cognitive condition and how it affects their daily life\n" \
|
358 |
-
"Explain the cause of the patientβs condition and duration of symptoms"
|
359 |
-
last_default = "Outline the assistive equipment or technology necessary for the patient\n" \
|
360 |
-
"Describe the special consideration or modifications required"
|
361 |
-
|
362 |
-
first_text = st.text_area("First: State the purpose of the letter", value=first_default, max_chars=None, height=None)
|
363 |
-
middle_text = st.text_area("Middle: Explain the patientβs condition", value=middle_default, max_chars=None, height=None)
|
364 |
-
last_text = st.text_area("Last: List any necessary accommodations", value=last_default, max_chars=None, height=None)
|
365 |
-
|
366 |
-
# Username field with an emoji
|
367 |
-
username = st.text_input("π€ Username")
|
368 |
-
|
369 |
-
|
370 |
-
def generate_letter_grid_ui():
|
371 |
-
st.title("π₯ Letter Type Selection")
|
372 |
-
|
373 |
-
# Define the data for the table
|
374 |
-
letter_types = [
|
375 |
-
("1οΈβ£ Referral Letters", "π€ Letters asking for more help or treatment", "π Patient info, Referral details", generate_referral_letters_ui),
|
376 |
-
("2οΈβ£ Medical Certificate Letters", "πΌ Letters about a patient's health problem or limits", "π Patient info, Health problem details", generate_medical_certificate_letters_ui),
|
377 |
-
("3οΈβ£ Prescription Letters", "π Letters allowing medicine", "π Patient info, Medicine details", generate_prescription_letters_ui),
|
378 |
-
("4οΈβ£ Diagnosis Letters", "π Letters explaining a patient's health problem", "π Patient info, Health problem details", generate_diagnosis_letters_ui),
|
379 |
-
("5οΈβ£ Treatment Plan Letters", "π Letters with a plan for getting better", "π Patient info, Treatment details", generate_treatment_plan_letters_ui),
|
380 |
-
("6οΈβ£ Surgery Recommendation Letters", "π₯ Letters saying a patient needs surgery", "π Patient info, Surgery details", generate_surgery_recommendation_letters_ui),
|
381 |
-
("7οΈβ£ Medical Clearance Letters", "π Letters saying a patient can do activities", "π Patient info, Activity details", generate_medical_clearance_letters_ui),
|
382 |
-
("8οΈβ£ Follow-up Appointment Letters", "π
Letters reminding about appointments", "π Patient info, Appointment details", generate_follow_up_appointment_letters_ui),
|
383 |
-
("9οΈβ£ Disability Support Letters", "βΏ Letters about a patient's disability", "π Patient info, Disability details", generate_disability_support_letters_ui),
|
384 |
-
("π Health Education Letters", "π Letters teaching about health", "π Patient info, Education topic", generate_health_education_letters_ui),
|
385 |
-
]
|
386 |
-
|
387 |
-
# Create the table with buttons
|
388 |
-
for letter_type, definition, fields, letter_function in letter_types:
|
389 |
-
col1, col2, col3, col4 = st.columns(4)
|
390 |
-
with col1:
|
391 |
-
if st.button(letter_type):
|
392 |
-
letter_function()
|
393 |
-
with col2:
|
394 |
-
st.write(definition)
|
395 |
-
with col3:
|
396 |
-
st.write(fields)
|
397 |
-
|
398 |
-
# Run the Streamlit UI function
|
399 |
-
generate_letter_grid_ui()
|
400 |
-
|
401 |
-
|
402 |
-
# Run the Streamlit UI function
|
403 |
-
#generate_referral_letters_ui()
|
404 |
-
# Run the Streamlit UI function
|
405 |
-
#generate_medical_certificate_letters_ui()
|
406 |
-
# Run the Streamlit UI function
|
407 |
-
#generate_prescription_letters_ui()
|
408 |
-
# Run the Streamlit UI function
|
409 |
-
#generate_prescription_letters_ui()
|
410 |
-
# Run the Streamlit UI function
|
411 |
-
#generate_treatment_plan_letters_ui()
|
412 |
-
# Run the Streamlit UI function
|
413 |
-
#generate_surgery_recommendation_letters_ui()
|
414 |
-
# Run the Streamlit UI function
|
415 |
-
#generate_health_education_letters_ui()
|
416 |
-
# Run the Streamlit UI function
|
417 |
-
#generate_letter_grid_ui()
|
|
|
2 |
|
3 |
# Set the page configuration to use the full width of the screen
|
4 |
st.set_page_config(layout="wide")
|
5 |
+
st.markdown("""
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
+
## Content for Letter Generator AI UI UX
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
+
| π₯ **Letter Type** | π **Definition** | π **Fields Usually Needed** |
|
11 |
+
|-----------------------|-----------------------------------------|-----------------------------|
|
12 |
+
| 1οΈβ£ Referral Letters | π€ Letters asking for more help or treatment | π Patient info, Referral details |
|
13 |
+
| 2οΈβ£ Medical Certificate Letters | πΌ Letters about a patient's health problem or limits | π Patient info, Health problem details |
|
14 |
+
| 3οΈβ£ Prescription Letters | π Letters allowing medicine | π Patient info, Medicine details |
|
15 |
+
| 4οΈβ£ Diagnosis Letters | π Letters explaining a patient's health problem | π Patient info, Health problem details |
|
16 |
+
| 5οΈβ£ Treatment Plan Letters | π Letters with a plan for getting better | π Patient info, Treatment details |
|
17 |
+
| 6οΈβ£ Surgery Recommendation Letters | π₯ Letters saying a patient needs surgery | π Patient info, Surgery details |
|
18 |
+
| 7οΈβ£ Medical Clearance Letters | π Letters saying a patient can do activities | π Patient info, Activity details |
|
19 |
+
| 8οΈβ£ Follow-up Appointment Letters | π
Letters reminding about appointments | π Patient info, Appointment details |
|
20 |
+
| 9οΈβ£ Disability Support Letters | βΏ Letters about a patient's disability | π Patient info, Disability details |
|
21 |
+
| π Health Education Letters | π Letters teaching about health | π Patient info, Education topic |
|
22 |
|
|
|
|
|
23 |
|
24 |
+
### π€ Referral Letters
|
|
|
25 |
|
26 |
+
| **Referral Letter** | π **First** | π **Middle** | π **Last** |
|
27 |
+
|---------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
28 |
+
| π¨ State the request for consultation/treatment | - Urgent need for further diagnostic testing for Mrs. Smith, who has persistent stomach issues π€’ | - The patient has symptoms that suggest a more comprehensive review is required π | - Patient demographics, Referral details ποΈ |
|
29 |
+
| | - Request for an audiological assessment for Mr. Johnson, aged 60 π | - The patient's issue requires specialized care beyond the scope of the referring physician π©ββοΈ | - Diagnostic test reports, Medication details π |
|
30 |
|
31 |
+
### π Medical Certificate Letters
|
|
|
|
|
|
|
32 |
|
33 |
+
| **Medical Certificate Letter** | π **First** | π **Middle** | π **Last** |
|
34 |
+
|--------------------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
35 |
+
| π¨ State the reason for certification | - To certify Mr. Brown's condition and advise on work restrictions πΌ | - Mr. Brown has suffered from a heart attack and is under medication ππ | - No driving should be allowed for 6 months π«π |
|
36 |
+
| | - To certify Ms. Lee's health status for her impending travel βοΈ | - Ms. Lee has a chronic back pain condition that requires special accommodations during her travel πΆββοΈ | - Ms. Lee must have an aisle seat and use cushions for lumbar support ποΈ |
|
|
|
|
|
|
|
37 |
|
|
|
|
|
|
|
38 |
|
39 |
+
### π Prescription Letters
|
|
|
40 |
|
41 |
+
| **Prescription Letter** | π **First** | π **Middle** | π **Last** |
|
42 |
+
|-------------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
43 |
+
| π¨ Introduce prescription request | - Request for prescription for Mr. Clarke π | - Mr. Clarke requires medication for hypertension - Lisinopril 10mg BD with food π©Ί | - Medication details, allergies and any known side effects π« |
|
44 |
+
| | - Prescription authorization for Mrs. Davis π | - Mrs. Davis is required to take two 500mg penicillin V tablets every 6 hours π©Ί | - Medication details, allergies and any known side effects π« |
|
45 |
|
|
|
|
|
46 |
|
47 |
+
### π¬ Diagnosis Letters
|
|
|
|
|
|
|
48 |
|
49 |
+
| **Diagnosis Letter** | π **First** | π **Middle** | π **Last** |
|
50 |
+
|----------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
51 |
+
| π¨ State the diagnosis | - The results of Mr. Thompson's chest x-ray reveal Pneumonia π· | - Mr. Thompson has a bacterial infection that requires antibiotic treatment π | - Recommend follow-up visits for monitoring and periodic testing π |
|
52 |
+
| | - The blood test results indicate that Mrs. Jones has Type 2 diabetes π©Έ | - Mrs. Jones has a lifelong condition that requires medication, dietary adjustments, and lifestyle changes π½οΈπββοΈ | - Refer patients to the relevant healthcare specialist π©ββοΈ |
|
|
|
|
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
+
### π©Ή Treatment Plan Letters
|
56 |
|
57 |
+
| **Treatment Plan Letter** | π **First** | π **Middle** | π **Last** |
|
58 |
+
|---------------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
59 |
+
| π¨ Introduce treatment plan | - Outline treatment and testing plan for Mr. Smith π | - Mr. Smith's treatment will involve IV medication and chest x-ray ππΈ | - Recommend follow-up visits for monitoring and periodic testing π |
|
60 |
+
| | - Suggest handling chronic asthma for Mrs. White π | - Mrs. White's asthma management plan requires frequent use of recommended inhaler and daily monitoring π¬οΈπ | - Provide contact information in case of any emergencies βοΈ |
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
+
### π₯ Surgery Recommendation Letters
|
|
|
|
|
|
|
64 |
|
65 |
+
| **Surgery Recommendation Letter** | π **First** | π **Middle** | π **Last** |
|
66 |
+
|-----------------------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
67 |
+
| π¨ Introduce surgical procedure | - Recommend endoscopy procedure for Mr. Baker π¬ | - Mr. Baker needs endoscopy for the diagnosis of GI tract abnormalities π« | - Suggest to take extra measures regarding allergies or post-procedural appointments π«βοΈ |
|
68 |
+
| | - Recommend an angiography for Mrs. Taylor π | - Mrs. Taylor needs angiography to locate any arterial blockages π©Ί | - Provide details on necessary pre and post-hospitalization guidance π₯ |
|
|
|
|
|
|
|
69 |
|
|
|
|
|
|
|
70 |
|
71 |
+
### π€ Referral Letters
|
|
|
72 |
|
73 |
+
| **Referral Letter** | π **First** | π **Middle** | π **Last** |
|
74 |
+
|---------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
75 |
+
| π¨ State the request for consultation/treatment | - Urgent need for further diagnostic testing for Mrs. Smith, who has persistent stomach issues π€’ | - The patient has symptoms that suggest a more comprehensive review is required π | - Patient demographics, Referral details ποΈ |
|
76 |
+
| | - Request for an audiological assessment for Mr. Johnson, aged 60 π | - The patient's issue requires specialized care beyond the scope of the referring physician π©ββοΈ | - Diagnostic test reports, Medication details π |
|
77 |
|
|
|
|
|
78 |
|
79 |
+
### πββοΈ Medical Clearance Letters
|
|
|
80 |
|
81 |
+
| **Medical Clearance Letters** | π **First** | π **Middle** | π **Last** |
|
82 |
+
|-------------------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
83 |
+
| π¨ State clearance conditions | - Allow Mrs. Anderson to safely participate in a marathon πββοΈ | - The patient has been tested and has no chronic medical conditions or injuries π«π©Ί | - Encourage gradual progression and cautious approach to intense activity π |
|
84 |
+
| | - Clear Mr. White to begin strength training πͺ | - The patient's prior conditions are monitored, and it is advised to begin any physical activity or routine ποΈββοΈ | - List exercises that should be avoided, for instance, weightlifting for an individual with a heart condition π«β€οΈ |
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
+
### π
Follow-up Appointment Letters
|
|
|
|
|
88 |
|
89 |
+
| **Follow-up Appointment Letters** | π **First** | π **Middle** | π **Last** |
|
90 |
+
|-----------------------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
91 |
+
| π¨ Remind of the appointment | - This is a reminder for Mrs. Rodriguez's appointment on Friday, 17th September, at 11:00 am π | - Review the date, time, and location of appointment π | - Provide contact information and phone numbers in case of schedule change or emergency βοΈ |
|
92 |
+
| | - This letter is to confirm Mr. Johnson's appointment on Monday, 20th September, at 1:00 pm π | - Detail any necessary preparations for the appointment βοΈ | - Encourage to reach out if an appointment must be canceled, or if there are any questions or concerns βοΈ |
|
|
|
|
|
93 |
|
94 |
+
### βΏ Disability Support Letters
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
+
| **Disability Support Letters** | π **First** | π **Middle** | π **Last** |
|
97 |
+
|--------------------------------|------------------------------------|---------------------------------------|--------------------------------------|
|
98 |
+
| π¨ State the purpose of the letter | - The purpose of this letter is to validate Mr. Williams' disability so that he can receive disability benefits βΏ | - Detail the patient's physical or cognitive condition and how it affects their daily life π§ | - Outline the assistive equipment or technology necessary for the patient π οΈ |
|
99 |
+
| | - The purpose of this letter is to document Ms. Radcliff's disability to request special accommodations at work βΏ | - Explain the cause of the patient's condition and duration of symptoms β³ | - Describe the special consideration or modifications required π |
|
|
|
|
|
|
|
100 |
|
101 |
+
|
102 |
+
### π Health Education Letters
|
103 |
+
|
104 |
+
| **Health Education Letters** | π **First** | π **Middle** | π **Last** |
|
105 |
+
|------------------------------|---------------------------------|------------------------------------|-----------------------------------|
|
106 |
+
| π Introduce the health education topic | - This letter is to provide Ms. Prince with information on healthy eating habits π₯ | - Outline the benefits of specific health practices for overall health π | - Provide handouts, online resources, or any relevant materials to supplement the information π |
|
107 |
+
| | - This letter offers suggestions for stress management to Mr. Martin π | - Detail steps that can be taken to manage specific health conditions properly πΆββοΈ | - Encourage patients to schedule follow-up appointments to discuss any questions or concerns ποΈ |
|
108 |
+
|
109 |
+
|
110 |
+
|
111 |
+
|
112 |
+
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|