yakilee Claude Opus 4.6 commited on
Commit
cb1a9ab
·
1 Parent(s): f8adedd

feat(models): add interventions and eligibility_keywords to SearchAnchors

Browse files

Support richer ClinicalTrials.gov queries by adding target drug names
(based on biomarker-to-drug mapping) and patient clinical features for
eligibility pre-filtering. Both default to empty lists for backward
compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. trialpath/models/search_anchors.py +8 -0
trialpath/models/search_anchors.py CHANGED
@@ -26,6 +26,14 @@ class SearchAnchors(BaseModel):
26
  age: Optional[int] = None
27
  performance_status_max: Optional[int] = None
28
  trial_filters: TrialFilters = Field(default_factory=TrialFilters)
 
 
 
 
 
 
 
 
29
  relaxation_order: list[str] = Field(
30
  default=["phase", "distance", "biomarker_strictness"],
31
  description="Order in which to relax criteria if too few results",
 
26
  age: Optional[int] = None
27
  performance_status_max: Optional[int] = None
28
  trial_filters: TrialFilters = Field(default_factory=TrialFilters)
29
+ interventions: list[str] = Field(
30
+ default_factory=list,
31
+ description="Target drugs/treatments based on patient biomarkers and treatment history",
32
+ )
33
+ eligibility_keywords: list[str] = Field(
34
+ default_factory=list,
35
+ description="Key patient clinical features for eligibility pre-filtering",
36
+ )
37
  relaxation_order: list[str] = Field(
38
  default=["phase", "distance", "biomarker_strictness"],
39
  description="Order in which to relax criteria if too few results",