search_documents
Search medical documents by text, institution, category, or date range to find cancer-related records. Filter results using multiple criteria and retrieve relevant patient information from connected sources.
Instructions
Search medical documents by text, institution, category, or date range.
Multi-term queries (e.g. "CEA labs") use AND semantics — all terms must match somewhere. Results are ranked by relevance when text is provided: filename/description matches rank highest, then AI summaries, then tags.
Args: text: Search query (searches filename, institution, description, AI summary, tags, and structured metadata). Multiple words are AND-ed together. institution: Filter by institution code (e.g. NOUonko, OUSA). category: Filter by category (labs, report, imaging, pathology, genetics, surgery, surgical_report, prescription, referral, discharge, discharge_summary, chemo_sheet, vaccination, dental, preventive, other). date_from: Filter from this date (YYYY-MM-DD). date_to: Filter to this date (YYYY-MM-DD). limit: Maximum results to return (max 200). offset: Skip this many results (for pagination).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| institution | No | ||
| category | No | ||
| date_from | No | ||
| date_to | No | ||
| limit | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |