search_concepts
Find ICD-10-CM concepts from free-text clinical descriptions, using lexical and semantic matching to capture paraphrased or loosely worded terms.
Instructions
Search ICD-10-CM concept names for a free-text clinical term or phrase.
Combines lexical (BM25) and semantic (embedding) matching, fused by
reciprocal rank, so paraphrased or loosely-worded descriptions (e.g.
"sugar disease" for diabetes) are found even without shared exact
wording — always prefer this over guessing at exact terminology
yourself. Every returned concept is tagged generated provenance and
should be treated as ungrounded until a human confirms it.
:param query: Free-text search string, e.g. "diabetic nephropathy".
:param k: Maximum number of results to return.
:returns: Fused, deduplicated results ordered by combined relevance. If
nothing matches, concepts is empty and unmappable explains why.
:rtype: ConceptSet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| concepts | No | ||
| unmappable | No |