v2.7.0: Condition re-rank, referenceLimit, sort guidance
Condition re-rank, referenceLimit, sort guidance
find_eligible now stable-sorts results so studies whose own condition names a requested condition rank above tangential MeSH-umbrella matches from the upstream fuzzy query.cond search. Recall unchanged — nothing dropped. get_study_record gains referenceLimit mirroring locationLimit/outcomeLimit. search_studies sort description guides EnrollmentCount:desc toward AREA[StudyType]INTERVENTIONAL.
Added:
- get_study_record: referenceLimit caps referencesModule.references; pre-cap total in filtersApplied.totalReferences; seeAlsoLinks uncapped (#73)
Changed:
- find_eligible: stable condition re-rank — on-condition studies rank above tangential MeSH-umbrella matches (#72)
- find_eligible: conditions description corrected — always OR-joined, removed AND/OR/NOT and comma-as-AND language (#72)
- search_studies: sort description updated — pairs EnrollmentCount:desc with AREA[StudyType]INTERVENTIONAL guidance, notes enrollment is sponsor-reported (#74)
Fixed:
- find_eligible: off-condition trials (e.g. bleeding-disorder trial ranking #1 for obesity/CVD patient) no longer dominate results due to upstream fuzziness (#72)
504 tests pass; bun run devcheck clean.