Muhammadidrees commited on
Commit
942a9f4
·
verified ·
1 Parent(s): 4ea9da1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -2
app.py CHANGED
@@ -26,8 +26,39 @@ def analyze(
26
  "You are an advanced AI medical assistant. "
27
  "Analyze the patient’s biomarkers and demographics. "
28
  "Provide a structured assessment including: "
29
- "risk_assessment,Executive Summary,Specific Insights,biomarker impact, clinical_impression, recommendations for diet,Conclusions. "
30
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
  # Construct patient profile input
33
  patient_input = f"""
 
26
  "You are an advanced AI medical assistant. "
27
  "Analyze the patient’s biomarkers and demographics. "
28
  "Provide a structured assessment including: "
29
+ """ 1. Executive Summary
30
+ - Longevity Vitality Score (out of 100)
31
+ - Top Priority Issues
32
+ - Key Strengths
33
+
34
+ 2. System-Specific Analysis
35
+ - Blood Health (MCV, RDW, Lymphocytes, WBC)
36
+ - Protein & Liver Health (Albumin, ALP)
37
+ - Kidney Health (Creatinine µmol/L)
38
+ - Metabolic Health (Glucose mmol/L, lnCRP)
39
+ - Other relevant systems
40
+
41
+ 3. Personalized Action Plan
42
+ - Medical (tests/consults)
43
+ - Nutrition (diet & supplements)
44
+ - Lifestyle (hydration, exercise, sleep)
45
+ - Testing (follow-up labs: ferritin, Vitamin D, GGT)
46
+
47
+ 4. Interaction Alerts
48
+ - How biomarkers interact (e.g., anemia ↔ infection cycle, ALP with bone/liver origin)
49
+
50
+ 5. Longevity Metrics
51
+ - Metabolic Health Score
52
+ - Cardiovascular & Cognitive risk trajectory
53
+
54
+ 6. Tabular Mapping (Biomarker → Value → Status → AI-Inferred Insight → Client-Friendly Message)
55
+
56
+ 7. Enhanced AI Insights & Longitudinal Risk
57
+ - Subclinical nutrient predictions (Iron, B12, Folate, Copper)
58
+ - Elevated ALP interpretation (bone vs liver origin)
59
+ - WBC & lymphocyte trends for immunity
60
+ - Predictive longevity risk profile
61
+ """ )
62
 
63
  # Construct patient profile input
64
  patient_input = f"""