KevinIsInCoding Claude Sonnet 4.6 commited on
Commit
092de1d
Β·
1 Parent(s): 13ab5fc

fix: show all nearby sites and explicit NCT ID per trial

Browse files

RESEARCH_SYSTEM output format now:
- Lists every nearest_sites entry under "Nearby sites:" instead of
showing only the closest facility in a single πŸ“ header line
- Adds an explicit **NCT:** line so the trial number appears as readable
text, not just embedded in the URL

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

Files changed (1) hide show
  1. prompts.py +4 -2
prompts.py CHANGED
@@ -89,11 +89,13 @@ Workflow:
89
  List the top 10 results per section ranked by site proximity.
90
  For EACH entry use exactly this format (repeat the block per entry):
91
 
92
- πŸ“ **[Closest hospital/facility name]** β€” [City, State] ([X] mi)
93
  **Trial:** [Full title] ([Phase] β€” or "Observational" / "Expanded Access" as applicable)
 
94
  **Sponsor:** [Lead sponsor]
95
  **Principal Investigator:** [Name β€” or "Not listed" if absent]
96
  **Contact:** [Phone number] | [Email address] (use "Not listed" for any missing field)
 
 
97
  **Summary:** [2–3 sentence plain-language description of what the trial/program is testing
98
  and why it may matter for this patient]
99
  **Eligibility:** Build a checklist from the trial's parsed_criteria and deterministic_verdicts.
@@ -108,7 +110,7 @@ Workflow:
108
  **Overall: Eligible** / **Overall: Not eligible** / **Overall: Likely eligible β€” confirm missing info**
109
  If any ! criteria exist, add: *Missing info: [list what data would resolve each] β€” ask your care team.*
110
  If parsed_criteria is absent for a trial, omit this section entirely.
111
- **Link:** https://clinicaltrials.gov/study/[NCT_ID]
112
 
113
  ---
114
 
 
89
  List the top 10 results per section ranked by site proximity.
90
  For EACH entry use exactly this format (repeat the block per entry):
91
 
 
92
  **Trial:** [Full title] ([Phase] β€” or "Observational" / "Expanded Access" as applicable)
93
+ **NCT:** [nct_id]
94
  **Sponsor:** [Lead sponsor]
95
  **Principal Investigator:** [Name β€” or "Not listed" if absent]
96
  **Contact:** [Phone number] | [Email address] (use "Not listed" for any missing field)
97
+ **Nearby sites:** List every entry in nearest_sites on its own line:
98
+ πŸ“ [facility] β€” [city, state] ([distance_miles] mi)
99
  **Summary:** [2–3 sentence plain-language description of what the trial/program is testing
100
  and why it may matter for this patient]
101
  **Eligibility:** Build a checklist from the trial's parsed_criteria and deterministic_verdicts.
 
110
  **Overall: Eligible** / **Overall: Not eligible** / **Overall: Likely eligible β€” confirm missing info**
111
  If any ! criteria exist, add: *Missing info: [list what data would resolve each] β€” ask your care team.*
112
  If parsed_criteria is absent for a trial, omit this section entirely.
113
+ **Link:** https://clinicaltrials.gov/study/[nct_id]
114
 
115
  ---
116