awacke1 commited on
Commit
3116d77
Β·
1 Parent(s): 5d8db8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +76 -381
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
- # Text areas with default values based on letter examples
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
- first_text = st.text_area("First: Introduce prescription request", value=first_default, max_chars=None, height=None)
146
- middle_text = st.text_area("Middle: List dosage and frequency of medication", value=middle_default, max_chars=None, height=None)
147
- last_text = st.text_area("Last: Provide medication details", value=last_default, max_chars=None, height=None)
 
 
 
 
 
 
 
 
 
148
 
149
- # Username field with an emoji
150
- username = st.text_input("πŸ‘€ Username")
151
 
152
- def generate_diagnosis_letters_ui():
153
- st.title("πŸ”¬ Diagnosis Letters")
154
 
155
- # Search-style text box
156
- search_query = st.text_input("Search Diagnosis Letters")
 
 
157
 
158
- # Buttons with emojis and boldface text
159
- st.button("πŸ“ **First**")
160
- st.button("πŸ“ **Middle**")
161
- st.button("πŸ“ **Last**")
162
 
163
- # Text areas with default values based on letter examples
164
- first_default = "The results of Mr. Thompson’s chest x-ray reveal Pneumonia\n" \
165
- "The blood test results indicate that Mrs. Jones has Type 2 diabetes"
166
- middle_default = "Mr. Thompson has a bacterial infection that requires antibiotic treatment\n" \
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
- # Username field with an emoji
176
- username = st.text_input("πŸ‘€ Username")
177
 
178
- def generate_prescription_letters_ui():
179
- st.title("πŸ’Š Prescription Letters")
 
 
180
 
181
- # Search-style text box
182
- search_query = st.text_input("Search Prescription Letters")
183
 
184
- # Buttons with emojis and boldface text
185
- st.button("πŸ“ **First**")
186
- st.button("πŸ“ **Middle**")
187
- st.button("πŸ“ **Last**")
188
 
189
- # Text areas with default values based on letter examples
190
- first_default = "Request for prescription for Mr. Clarke\n" \
191
- "Prescription authorization for Mrs. Davis"
192
- middle_default = "Mr. Clarke requires medication for hypertension - Lisinopril 10mg BD with food\n" \
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
- # Buttons with emojis and boldface text
212
- st.button("πŸ“ **First**")
213
- st.button("πŸ“ **Middle**")
214
- st.button("πŸ“ **Last**")
215
 
216
- # Text areas with default values based on letter examples
217
- first_default = "Outline treatment and testing plan for Mr.Smith\n" \
218
- "Suggest handling chronic asthma for Mrs.White"
219
- middle_default = "Mr. Smith’s treatment will involve IV medication and chest x-ray\n" \
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
- # Username field with an emoji
229
- username = st.text_input("πŸ‘€ Username")
230
 
 
 
 
 
231
 
232
- def generate_medical_clearance_letters_ui():
233
- st.title("πŸƒβ€β™‚οΈ Medical Clearance Letters")
234
 
235
- # Search-style text box
236
- search_query = st.text_input("Search Medical Clearance Letters")
237
 
238
- # Buttons with emojis and boldface text
239
- st.button("πŸ“ **First**")
240
- st.button("πŸ“ **Middle**")
241
- st.button("πŸ“ **Last**")
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
- first_text = st.text_area("First: State clearance conditions", value=first_default, max_chars=None, height=None)
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
- # Username field with an emoji
256
- username = st.text_input("πŸ‘€ Username")
257
-
258
-
259
- def generate_surgery_recommendation_letters_ui():
260
- st.title("πŸ₯ Surgery Recommendation Letters")
261
 
262
- # Search-style text box
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
- # Text areas with default values based on letter examples
271
- first_default = "Recommend endoscopy procedure for Mr.Baker\n" \
272
- "Recommend an angiography for Mrs.Taylor"
273
- middle_default = "Mr. Baker needs endoscopy for the diagnosis of GI tract abnormalities\n" \
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
- first_text = st.text_area("First: Introduce surgical procedure", value=first_default, max_chars=None, height=None)
279
- middle_text = st.text_area("Middle: Explain surgical procedure specifics", value=middle_default, max_chars=None, height=None)
280
- last_text = st.text_area("Last: Detail any adjustment needed before/after surgery", value=last_default, max_chars=None, height=None)
281
-
282
- # Username field with an emoji
283
- username = st.text_input("πŸ‘€ Username")
284
-
285
-
286
- def generate_follow_up_appointment_letters_ui():
287
- st.title("πŸ“… Follow-up Appointment Letters")
288
-
289
- # Search-style text box
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
+ """)