DocUA commited on
Commit
102fe82
Β·
1 Parent(s): b6906ba

feat: Enhance predefined patient profile names with emojis and more descriptive text.

Browse files
src/interface/simplified_gradio_app.py CHANGED
@@ -497,23 +497,23 @@ def create_simplified_interface():
497
  gr.Markdown("### πŸ“‹ Predefined Profiles")
498
  profile_selector = gr.Dropdown(
499
  choices=[
500
- "Default (Serhii)",
501
- "🟒 GREEN - Healthy",
502
  "🟑 YELLOW - Mild Distress",
503
  "🟑 YELLOW - Grief & Loss",
504
  "🟑 YELLOW - Existential Questions",
505
  "🟑 YELLOW - Spiritual Disconnection",
506
- "πŸ”΄ RED - Crisis (Suicidal)",
507
  "πŸ”΄ RED - Severe Hopelessness",
508
  "πŸ”΄ RED - Spiritual Crisis",
509
- "Cardiac Patient",
510
- "Diabetic Patient",
511
- "Post-Surgery Recovery",
512
- "Mental Health Focus",
513
- "Elderly Patient",
514
- "Athletic Patient"
515
  ],
516
- value="Default (Serhii)",
517
  label="Select Profile",
518
  interactive=True
519
  )
@@ -2773,7 +2773,7 @@ Use the **Download Summary** button below to access the complete provider summar
2773
  def load_profile(profile_name: str, session: SimplifiedSessionData):
2774
  """Load predefined patient profile and apply it to the session."""
2775
  profiles = {
2776
- "Default (Serhii)": {
2777
  "name": "Serhii",
2778
  "phone": "(555) 123-4567",
2779
  "age": 52,
@@ -2782,7 +2782,7 @@ Use the **Download Summary** button below to access the complete provider summar
2782
  "exercise": "Swimming, Walking, Light cardio",
2783
  "limitations": "Anticoagulation therapy, Post-thrombotic recovery"
2784
  },
2785
- "🟒 GREEN - Healthy": {
2786
  "name": "James",
2787
  "phone": "(555) 234-5678",
2788
  "age": 40,
@@ -2827,7 +2827,7 @@ Use the **Download Summary** button below to access the complete provider summar
2827
  "exercise": "Walking, Community activities",
2828
  "limitations": "Spiritual disconnection, Social isolation"
2829
  },
2830
- "πŸ”΄ RED - Crisis (Suicidal)": {
2831
  "name": "Thomas",
2832
  "phone": "(555) 789-0123",
2833
  "age": 35,
@@ -2854,7 +2854,7 @@ Use the **Download Summary** button below to access the complete provider summar
2854
  "exercise": "None - Spiritual support priority",
2855
  "limitations": "CRISIS - Spiritual crisis, Rage, Existential despair"
2856
  },
2857
- "Cardiac Patient": {
2858
  "name": "John",
2859
  "phone": "(555) 012-3456",
2860
  "age": 65,
@@ -2863,7 +2863,7 @@ Use the **Download Summary** button below to access the complete provider summar
2863
  "exercise": "Supervised walking, Cardiac rehab program",
2864
  "limitations": "Recent MI, Limited exertion tolerance"
2865
  },
2866
- "Diabetic Patient": {
2867
  "name": "Maria",
2868
  "phone": "(555) 111-2222",
2869
  "age": 58,
@@ -2872,7 +2872,7 @@ Use the **Download Summary** button below to access the complete provider summar
2872
  "exercise": "Moderate walking, Resistance training",
2873
  "limitations": "Neuropathy, Retinopathy risk"
2874
  },
2875
- "Post-Surgery Recovery": {
2876
  "name": "Alex",
2877
  "phone": "(555) 222-3333",
2878
  "age": 45,
@@ -2881,7 +2881,7 @@ Use the **Download Summary** button below to access the complete provider summar
2881
  "exercise": "Gentle mobility, Gradual progression",
2882
  "limitations": "Surgical site healing, Limited ROM"
2883
  },
2884
- "Mental Health Focus": {
2885
  "name": "Emma",
2886
  "phone": "(555) 333-4444",
2887
  "age": 35,
@@ -2890,7 +2890,7 @@ Use the **Download Summary** button below to access the complete provider summar
2890
  "exercise": "Yoga, Walking, Group activities",
2891
  "limitations": "Low motivation, Energy fluctuations"
2892
  },
2893
- "Elderly Patient": {
2894
  "name": "Robert",
2895
  "phone": "(555) 444-5555",
2896
  "age": 78,
@@ -2899,7 +2899,7 @@ Use the **Download Summary** button below to access the complete provider summar
2899
  "exercise": "Tai Chi, Water aerobics, Balance training",
2900
  "limitations": "Fall risk, Joint pain, Medication interactions"
2901
  },
2902
- "Athletic Patient": {
2903
  "name": "Sarah",
2904
  "phone": "(555) 555-6666",
2905
  "age": 32,
@@ -2910,7 +2910,7 @@ Use the **Download Summary** button below to access the complete provider summar
2910
  }
2911
  }
2912
 
2913
- profile = profiles.get(profile_name, profiles["Default (Serhii)"])
2914
 
2915
  # Automatically apply the profile to the session
2916
  if session and hasattr(session.app_instance, 'set_patient_info'):
 
497
  gr.Markdown("### πŸ“‹ Predefined Profiles")
498
  profile_selector = gr.Dropdown(
499
  choices=[
500
+ "πŸ‘€ Default Profile (Serhii)",
501
+ "🟒 GREEN - Healthy Coping",
502
  "🟑 YELLOW - Mild Distress",
503
  "🟑 YELLOW - Grief & Loss",
504
  "🟑 YELLOW - Existential Questions",
505
  "🟑 YELLOW - Spiritual Disconnection",
506
+ "πŸ”΄ RED - Crisis (Suicidal Risk)",
507
  "πŸ”΄ RED - Severe Hopelessness",
508
  "πŸ”΄ RED - Spiritual Crisis",
509
+ "πŸ«€ Cardiac Patient (Rehabilitation)",
510
+ "🩸 Diabetic Patient (Management)",
511
+ "πŸ₯ Post-Surgery (Recovery)",
512
+ "🧠 Mental Health (Anxiety/Depression)",
513
+ "πŸ‘΄ Elderly Patient (Chronic Care)",
514
+ "πŸƒ Athletic Patient (Injury/Training)"
515
  ],
516
+ value="πŸ‘€ Default Profile (Serhii)",
517
  label="Select Profile",
518
  interactive=True
519
  )
 
2773
  def load_profile(profile_name: str, session: SimplifiedSessionData):
2774
  """Load predefined patient profile and apply it to the session."""
2775
  profiles = {
2776
+ "πŸ‘€ Default Profile (Serhii)": {
2777
  "name": "Serhii",
2778
  "phone": "(555) 123-4567",
2779
  "age": 52,
 
2782
  "exercise": "Swimming, Walking, Light cardio",
2783
  "limitations": "Anticoagulation therapy, Post-thrombotic recovery"
2784
  },
2785
+ "🟒 GREEN - Healthy Coping": {
2786
  "name": "James",
2787
  "phone": "(555) 234-5678",
2788
  "age": 40,
 
2827
  "exercise": "Walking, Community activities",
2828
  "limitations": "Spiritual disconnection, Social isolation"
2829
  },
2830
+ "πŸ”΄ RED - Crisis (Suicidal Risk)": {
2831
  "name": "Thomas",
2832
  "phone": "(555) 789-0123",
2833
  "age": 35,
 
2854
  "exercise": "None - Spiritual support priority",
2855
  "limitations": "CRISIS - Spiritual crisis, Rage, Existential despair"
2856
  },
2857
+ "πŸ«€ Cardiac Patient (Rehabilitation)": {
2858
  "name": "John",
2859
  "phone": "(555) 012-3456",
2860
  "age": 65,
 
2863
  "exercise": "Supervised walking, Cardiac rehab program",
2864
  "limitations": "Recent MI, Limited exertion tolerance"
2865
  },
2866
+ "🩸 Diabetic Patient (Management)": {
2867
  "name": "Maria",
2868
  "phone": "(555) 111-2222",
2869
  "age": 58,
 
2872
  "exercise": "Moderate walking, Resistance training",
2873
  "limitations": "Neuropathy, Retinopathy risk"
2874
  },
2875
+ "πŸ₯ Post-Surgery (Recovery)": {
2876
  "name": "Alex",
2877
  "phone": "(555) 222-3333",
2878
  "age": 45,
 
2881
  "exercise": "Gentle mobility, Gradual progression",
2882
  "limitations": "Surgical site healing, Limited ROM"
2883
  },
2884
+ "🧠 Mental Health (Anxiety/Depression)": {
2885
  "name": "Emma",
2886
  "phone": "(555) 333-4444",
2887
  "age": 35,
 
2890
  "exercise": "Yoga, Walking, Group activities",
2891
  "limitations": "Low motivation, Energy fluctuations"
2892
  },
2893
+ "πŸ‘΄ Elderly Patient (Chronic Care)": {
2894
  "name": "Robert",
2895
  "phone": "(555) 444-5555",
2896
  "age": 78,
 
2899
  "exercise": "Tai Chi, Water aerobics, Balance training",
2900
  "limitations": "Fall risk, Joint pain, Medication interactions"
2901
  },
2902
+ "πŸƒ Athletic Patient (Injury/Training)": {
2903
  "name": "Sarah",
2904
  "phone": "(555) 555-6666",
2905
  "age": 32,
 
2910
  }
2911
  }
2912
 
2913
+ profile = profiles.get(profile_name, profiles["πŸ‘€ Default Profile (Serhii)"])
2914
 
2915
  # Automatically apply the profile to the session
2916
  if session and hasattr(session.app_instance, 'set_patient_info'):