v2.7.2: Outcome rendering and filter-disclosure correctness
Outcome rendering and filter-disclosure correctness
Corrects misleading output across five tools: not-reached arms no longer vanish from outcome summaries, truncation and cap flags fire only on real overflow, and an empty field list is rejected instead of dumping the full catalog.
Changed:
get_study_countechoessentinelFilterActive: truewhen the default unknown-enrollment exclusion is in effect, matchingsearch_studies(#78)get_study_recordfiltersAppliedrecords a cap and its upstream total only when the cap actually trimmed the set;nearLocationstill always echoes (#80)get_study_recordnearLocationnotes thatdistanceMireflects city-centroid geocoding granularity, not facility-level (#81)
Fixed:
get_study_resultsretainsNA/NR(median not reached) outcome arms, rendering them as "not reached" for MEDIAN measures instead of dropping the arm (#76)get_field_definitionssets the searchtruncatedflag only when matches exceed the cap (searchFieldsreturns the pre-cap total) (#77)get_field_valuesrejects an emptyfieldslist with afield_invaliderror instead of returning the full ~418-field catalog (#82)
524 tests pass; bun run devcheck clean.