-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path!
More file actions
125 lines (94 loc) · 6.06 KB
/
!
File metadata and controls
125 lines (94 loc) · 6.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
╔══════════════════════════════════════════════════════════════╗
║ ║
║ Terraphim Personalized Medicine System - Clinical Demo ║
║ Full Patient Consultation Workflow ║
║ ║
╚══════════════════════════════════════════════════════════════╝
[INITIALIZATION PHASE]
────────────────────────────────────────────────────────────
[OK] Entity extractor initialized
[OK] Knowledge Graph loaded (9 nodes, 7 edges)
[OK] PGx validator initialized (CPIC guidelines loaded)
[WARN] terraphim-llm-proxy not available, falling back to mock client
(Proxy should be running at Proxy Client (http://127.0.0.1:3456))
[OK] MedGemma client initialized: Mock Client (healthy)
╔══════════════════════════════════════════════════════════════╗
║ CASE PRESENTATION: EGFR L858R Positive NSCLC ║
╚══════════════════════════════════════════════════════════════╝
[STEP 1] PATIENT PRESENTATION
────────────────────────────────────────────────────────────
Patient ID: DEMO-NSCLC-001
Demographics: 58-year-old Male
ECOG PS: 1
Weight: 72.5 kg, Height: 175 cm
Primary Diagnoses:
- Stage IV adenocarcinoma of lung
- EGFR L858R mutation positive
- Brain metastases (new)
Genomic Variants:
- EGFR L858R: Activating mutation - sensitive to EGFR TKIs
Current Medications:
- Lisinopril 10mg Once daily
- Gefitinib 250mg Once daily
Clinical Note:
"58-year-old male with EGFR L858R positive metastatic lung adenocarcinoma, progressed on first-line gefitinib therapy with new brain metastases, ECOG PS 1, no prior TKIs except gefitinib"
[OK] Patient DEMO-NSCLC-001: 58-year-old Male, ECOG PS 1 (took 0.00ms)
[STEP 2] ENTITY EXTRACTION
────────────────────────────────────────────────────────────
Processing clinical note...
Extracted 6 entities in 0.01ms:
Genes/Variants (1):
- EGFR (CUI: 363358001) - 100% confidence
[OK] Extracted 6 entities: 0 diseases, 1 genes, 0 medications (took 0.01ms)
[STEP 3] KNOWLEDGE GRAPH QUERY
────────────────────────────────────────────────────────────
No treatments found in Knowledge Graph
[OK] Found 0 treatment options from Knowledge Graph (took 0.00ms)
[STEP 4] PHARMACOGENOMIC VALIDATION
────────────────────────────────────────────────────────────
Pharmacogenomic Profile:
- CYP3A4 (*1/*1): SAFE
- CYP3A5 (*3/*3): SAFE
- CYP2D6 (*1/*1): SAFE
[OK] Completed 3 PGx validations (took 0.00ms)
[STEP 5] MEDGEMMA TREATMENT RECOMMENDATION
────────────────────────────────────────────────────────────
PRIMARY RECOMMENDATION
────────────────────────
Treatment: Osimertinib 80mg daily
Confidence: 92%
Clinical Reasoning:
EGFR L858R mutation is sensitive to EGFR TKIs. Osimertinib is preferred first-line per FLAURA trial with demonstrated superior progression-free survival compared to first-generation EGFR TKIs.
Alternative Options:
- Erlotinib
- Afatinib
Supporting Evidence:
- NCCN Guidelines NSCLC v4.2024
- FLAURA Trial
[OK] Recommended: Osimertinib 80mg daily (confidence: 92%) (took 101.46ms)
[STEP 6] SAFETY VALIDATION
────────────────────────────────────────────────────────────
Safety Checks Performed:
[PASS] Contraindications: No contraindications found
[PASS] PGx Safety: All PGx validations passed
[PASS] Confidence Threshold: Confidence: 92% (threshold: 80%)
[PASS] Drug Allergies: No known allergy to recommended treatment
[APPROVED] Safety validation PASSED - Ready for clinical review
[OK] Safety validation PASSED - Ready for clinical review (took 0.01ms)
╔══════════════════════════════════════════════════════════════╗
║ CONSULTATION SUMMARY ║
╚══════════════════════════════════════════════════════════════╝
Patient: DEMO-NSCLC-001
Total Processing Time: 101.59ms
Workflow Steps:
1. PatientPresented - 0.00ms
2. EntitiesExtracted - 0.01ms
3. KnowledgeGraphQueried - 0.00ms
4. PGxValidated - 0.00ms
5. TreatmentRecommended - 101.46ms
6. SafetyValidated - 0.01ms
Recommendation: Osimertinib 80mg daily
Confidence: 92%
[SUCCESS] Consultation complete - Treatment recommendation approved
════════════════════════════════════════════════════════════
Demo complete. Press Enter to exit...