feat(gemini): update search anchors prompt for interventions and eligibility keywords
Browse filesAdd instructions for Gemini to generate target drug names from
biomarker-to-drug mappings and patient clinical features for
eligibility pre-filtering.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
trialpath/services/gemini_planner.py
CHANGED
|
@@ -78,6 +78,15 @@ class GeminiPlanner:
|
|
| 78 |
2. Include appropriate geographic filters
|
| 79 |
3. Consider the patient's age and performance status
|
| 80 |
4. Set a relaxation_order for broadening search if too few results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
"""
|
| 82 |
|
| 83 |
raw = await self._generate(prompt, SearchAnchors.model_json_schema())
|
|
|
|
| 78 |
2. Include appropriate geographic filters
|
| 79 |
3. Consider the patient's age and performance status
|
| 80 |
4. Set a relaxation_order for broadening search if too few results
|
| 81 |
+
5. Generate a list of target interventions (drug names) based on:
|
| 82 |
+
- Known effective drugs for the patient's biomarkers (e.g., EGFR → osimertinib, erlotinib; ALK → alectinib, crizotinib; KRAS G12C → sotorasib, adagrasib; ROS1 → crizotinib, entrectinib; BRAF V600E → dabrafenib + trametinib)
|
| 83 |
+
- Next-line therapies after the patient's current treatments
|
| 84 |
+
- Immunotherapy drugs if no targetable mutations (e.g., pembrolizumab, nivolumab, atezolizumab)
|
| 85 |
+
6. Generate eligibility_keywords from the patient's key clinical features:
|
| 86 |
+
- Performance status (e.g., "ECOG 0-1")
|
| 87 |
+
- Stage (e.g., "stage IV", "stage IIIB")
|
| 88 |
+
- Key biomarker terms as they appear in trial criteria (e.g., "EGFR mutation", "PD-L1 positive")
|
| 89 |
+
- Prior therapy line (e.g., "first-line", "second-line")
|
| 90 |
"""
|
| 91 |
|
| 92 |
raw = await self._generate(prompt, SearchAnchors.model_json_schema())
|