{ "success": false, "error": { "code": "validation_error", "message": "Validation failed: similarity_threshold must be between 0 and 1 (field: similarity_threshold, received: 1.5)", "details": { "validationErrors": [ { "field": "similarity_threshold", "message": "similarity_threshold must be between 0 and 1", "value": 1.5, "code": "VALIDATION_FAILED" } ] } }, "meta": { "request_id": "req_01HQZX3M5K8P2N7R4T6V9W1Y3B", "timestamp": "2026-09-06T13:38:09.105Z" }}
Overview
This endpoint identifies medical concepts that are semantically similar to a provided query or set of criteria. It leverages advanced machine learning models trained on medical terminology to discover related concepts that may not share exact keywords but are clinically relevant and contextually similar.
Request Body
integer
Reference concept to find similar concepts for. Its name becomes the search
text, and the concept itself is excluded from the results unless
exclude_self is false.
string
Reference concept name, when you have the name but not the ID
string
Free-text query or concept description to find similar concepts for
Exactly one starting point is required: concept_id, concept_name or
query. A request with none of them returns 400, and so does a request with
more than one — supplying two used to be accepted, with the extra silently
discarded. Vocabulary and domain filters narrow a search; they are not
starting points, so a request carrying only filters is also a 400.
string[]
Target vocabularies to search within (array of strings) Examples: ["SNOMED", "ICD10CM"], ["RxNorm", "NDC"]
string[]
Clinical domains to focus the similarity search (array of strings) Examples: ["Condition", "Procedure"], ["Drug", "Device"]
string[]
Concept classes to include in similarity search (array of strings) Examples: ["Clinical Finding", "Procedure"], ["Ingredient", "Brand Name"]
number
default:"0.7"
Minimum similarity score threshold (0 to 1.0) Higher values = More strict similarity matching 0 is a valid value and is honoured: it returns every candidate the retrieval
produced, ranked by score.
integer
default:"20"
Number of similar concepts to return per page Every page size is served from the same fixed candidate pool, so this changes
how results are sliced, never how they are scored - see
Pagination for the bound on how deep paging can go.
boolean
default:"true"
Include similarity_score on each returned concept. Set false to omit it;
ranking is unaffected.
boolean
default:"false"
Add an explanation field to each returned concept describing the evidence
behind its score. For one release each concept also carries a duplicate similarity_explanation
field with the same value. It is deprecated and exists only so clients
that read the old name keep working; read explanation.
string
Filter by standard concept designation Options: S (standard), C (classification), N (non-standard) OMOP stores non-standard concepts with a null standard_concept; N selects
those rows.
boolean
default:"false"
Include invalid/deprecated concepts in the similarity search. Supported only with algorithm=lexical. The embedding index contains valid
concepts only, so include_invalid=true with semantic or hybrid returns
400 rather than silently ignoring the filter.
boolean
default:"true"
Exclude the reference concept from its own results. Applies when the request
started from a concept_id.
string
default:"semantic"
Similarity algorithm to use Options:
semantic (default) - Neural embedding similarity. Best for finding conceptually similar terms that share no words (e.g. “heart attack” → “Myocardial infarction”). Returns 503 if the embedding service is unavailable.
lexical - Text-based Jaccard word and character similarity. Good for fuzzy text matching and typo tolerance, and the only algorithm that can search invalid concepts.
hybrid - Runs both retrievals, unions their candidates and scores every one of them by the same rule: 0.7 × semantic + 0.3 × lexical, where a signal neither retrieval established counts as 0. Note that this puts hybrid scores on a different scale from both semantic and lexical scores — a candidate sharing no words with the query keeps only 0.7 × its semantic score, and one the embedding search did not return keeps only 0.3 × its lexical score — so the same similarity_threshold is stricter here than in either single-signal algorithm. See Algorithm Comparison. If the embedding service is unavailable, hybrid serves its lexical half and reports algorithm_used: "lexical" with degraded_from: "hybrid" rather than failing.
integer
default:"1"
Page number (1-based indexing)
Response
object
Request, release, and pagination metadata.
boolean
Indicates if the request was successful
object
Contains the similar concepts search results
Show data
array
Array of concepts similar to the query.Each entry carries the concept row as the retrieval that found it returned
it, plus the similarity fields below. The core OMOP columns are always
present; the remaining fields depend on which retrieval supplied the
candidate, so treat anything beyond them as optional.
Show similar_concepts
integer
OMOP concept ID
string
Primary concept name
string
Vocabulary-specific concept code
string
Source vocabulary identifier
string
Clinical domain classification
string
Concept class identifier
number
Similarity score between 0.0 and 1.0
string
Evidence behind the score. Present only when include_explanations is true.
string
Standard concept flag (S, C, or N)
string
The text whose embedding matched the query. Present on candidates the semantic retrieval returned — so on semantic results, and on the hybrid results that came from its semantic half.
string
Which text matched_text came from, for example concept_name. Present alongside matched_text.
string
Deprecated alias of explanation, emitted with the same value. Read explanation; this field will be removed in a future release.
object
The concept the search started from. Present when the request supplied concept_id.
Show source_concept
integer
OMOP concept ID
string
Primary concept name
string
Vocabulary-specific code
string
Source vocabulary identifier
string
Clinical domain classification
string
Concept class identifier
string|null
Standard concept flag (S, C, or null)
object
Information about the similarity search
Show search_metadata
string
The original search query provided
string
Similarity algorithm applied (semantic, lexical, or hybrid)
number
Minimum similarity threshold applied
integer
How many concepts cleared similarity_threshold within the bounded retrieval pool — the size of the ranked set the pages are cut from, and identical to pagination.total_items.Despite the name it is not the number of candidates evaluated: the pool holds up to 500, and everything scoring below the threshold is discarded before this is counted. A value of 3 means three concepts qualified, not that three were examined. Since the pool is bounded, check totals_are_lower_bound before treating it as a corpus-wide total.
boolean
true when retrieval hit its candidate bound, meaning total_candidates and pagination.total_items count only what qualified inside the pool that was searched, rather than across the whole corpus. For hybrid it also means individual similarity_score values may understate: a candidate the semantic half did not return is fused with a semantic score of 0.
integer
The concept the search started from. Present when the request supplied concept_id.
string
The algorithm that was requested, when it could not run in full and a fallback served the request instead. Present only when algorithm_used differs from what was asked for.
integer
Number of similar concepts returned
integer
Search processing time in milliseconds
integer
Time spent on embedding generation. Present whenever the semantic
retrieval ran — so for semantic, and for hybrid unless it degraded
to its lexical half.
This will find “Myocardial infarction” and related concepts even though the words “heart” and “attack” don’t appear in the medical term.
Algorithm Comparison
Feature
semantic (default)
lexical
hybrid
Model
Neural embeddings
Jaccard word similarity
Both, fused as 0.7 x semantic + 0.3 x lexical
Best for
Conceptual similarity
Fuzzy text matching
Conceptually related terms re-ranked by wording
”heart attack” → “MI”
Excellent
Poor (word mismatch)
Found and ranked, but scored down — see below
Exact name or code match
Only if it also embeds closely
Excellent
Capped at 0.3 unless the embedding search also returned it
Typo tolerance
Moderate
Good
Moderate — a match the embedding search misses caps at 0.3
Total counts
Lower bound when the candidate pool saturates
Lower bound when the candidate pool saturates
Lower bound when either half saturates
Speed
One embedding lookup
One text search
Both, run concurrently
Requirements
Embedding service
None
Embedding service; degrades to lexical without it
hybrid scores are not on the same scale as semantic scores, so the same
similarity_threshold is not equivalent between them.Every candidate is scored by the same rule, with a signal neither retrieval
established counting as 0. That cuts both ways.A concept that shares no words with the query keeps only 0.7 x its semantic
score: “Myocardial infarction” scoring 0.85 semantically against “heart attack”
fuses to 0.7 x 0.85 = 0.595 — below the default threshold of 0.7, which
semantic would have passed comfortably.A concept the embedding search did not return keeps only 0.3 x its lexical
score, so it cannot exceed 0.3 at all. An exact name or code match with no
semantic evidence scores 0.3 x 1.0 = 0.3 and is filtered by any threshold
above that. Use lexical when you want those matches to rank on their own —
hybrid is not a superset of the other two algorithms.When totals_are_lower_bound is true, a hybrid score is itself a lower
bound: the semantic retrieval filled its pool, so a candidate it did not return
may have had real semantic evidence that was counted as 0. The score is still
stable — it does not change with page or page_size — but it can understate.The consequence: at the default threshold, hybrid returns few cross-wording
matches, because clearing 0.7 with no lexical overlap requires a semantic score
of 1.0. Ranking within a hybrid result is unaffected — semantic ordering is
preserved among candidates with equally little overlap — but the absolute
scores are compressed. Lower similarity_threshold for hybrid, or use
semantic when you want conceptual matches that share no vocabulary.
Counts are pool-relative.total_candidates and pagination.total_items
count the concepts that cleared similarity_threshold inside a bounded
retrieval pool — not the concepts evaluated, and not the corpus. When
search_metadata.totals_are_lower_bound is true, treat them as “at least
this many”. has_next remains reliable for paging: it describes the ranked
pool being served and goes false at the end of it.
Pagination
Every algorithm ranks a bounded candidate pool and serves pages out of it.
The pool is a constant 500 candidates - it depends on neither page nor
page_size. Every page of a given request therefore ranks exactly the same
candidates, which is what makes consecutive pages disjoint slices of one stable
ordering rather than independently-ranked result sets that can repeat or skip
concepts. It also means a concept’s similarity_score is a property of the
concept and the query: asking for a different page_size cannot change it.Two consequences worth planning for:
has_next describes the ranked pool that was served, and nothing beyond
it. Paging while has_next is true always terminates.
Reachable depth is bounded at roughly 500 / page_size pages. 500 is what
the vector index can return in one ordered pass, so the pool cannot be
enlarged by asking for a bigger page. Asking for a page past the end returns
an empty similar_concepts array with has_next: false — not an error.
When the retrieval filled its pool, there are matching concepts it did not
consider, so total_candidates and pagination.total_items count what
qualified inside that pool
rather than the corpus. search_metadata.totals_are_lower_bound says when that
is the case. It is reported separately from has_next on purpose: whether more
pages of this ranking exist and whether more matches exist are different
questions, and answering the first with the second produced responses that
promised a next page forever.To search deeper, narrow the query with filters rather than paging further.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"OMOPHub.com API","colors":{"primary":"#000000","light":"#ebeced","dark":"#000000"},"logo":{"light":"https://mintcdn.com/medilensio/d8KZ5UNRHYv--jGr/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=d8KZ5UNRHYv--jGr\u0026q=85\u0026s=cf586cc87e1e46b0e11ae3b80c0467da","dark":"https://mintcdn.com/medilensio/d8KZ5UNRHYv--jGr/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=d8KZ5UNRHYv--jGr\u0026q=85\u0026s=75298961a99d0709eb810214da094a40","href":"https://docs.omophub.com"},"favicon":"https://mintcdn.com/medilensio/43z4gIZ35uGFl_xd/favicon.png?fit=max\u0026auto=format\u0026n=43z4gIZ35uGFl_xd\u0026q=85\u0026s=5ec51092b7b0170ac44b10606d77940f","api":{"playground":{"display":"none"},"examples":{"languages":["javascript","curl","python"]}},"navbar":{"links":[{"href":"https://dashboard.omophub.com/login","label":"Sign In"}],"primary":{"type":"button","label":"Get Started","href":"https://dashboard.omophub.com"}},"footer":{"socials":{"github":"https://github.com/omophub"}},"seo":{},"styling":{"eyebrows":"breadcrumbs","latex":true},"integrations":{"ga4":{"measurementId":"G-NLV13YZ0HW"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"medilensio","hasAudioNarration":false,"actualSubdomain":"medilensio","customDomains":["docs.omophub.com"],"gitSource":{"type":"github","owner":"omophub","repo":"platform","deployBranch":"develop","contentDirectory":"docs/mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6afee23c0e00960993512725","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"API Reference","count":58},{"language":"default","tag":"Documentation","count":27},{"language":"default","tag":"SDKs","count":24},{"language":"default","tag":"FHIR Terminology","count":17},{"language":"default","tag":"FHIR Terminology Service","count":17},{"language":"default","tag":"Concepts","count":12},{"language":"default","tag":"Workflows","count":12},{"language":"default","tag":"Search","count":11},{"language":"default","tag":"Vocabularies","count":10},{"language":"default","tag":"Production","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/search/search-similar","slug":"/api-reference/search/search-similar","pageMetadata":{"title":"Search Similar Concepts","api":"POST https://api.omophub.com/v1/search/similar","description":"Find semantically similar medical concepts using advanced machine learning algorithms with flexible search criteria and body parameters.","href":"/api-reference/search/search-similar"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Find semantically similar medical concepts using advanced machine learning algorithms with flexible search criteria and body parameters.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`This endpoint identifies medical concepts that are semantically similar to a provided query or set of criteria. It leverages advanced machine learning models trained on medical terminology to discover related concepts that may not share exact keywords but are clinically relevant and contextually similar.`}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`concept_id`,type:`integer`,min:`1`,id:`param-concept-id`,children:_jsxs(_components.p,{children:[`Reference concept to find similar concepts for. Its name becomes the search\ntext, and the concept itself is excluded from the results unless\n`,_jsx(_components.code,{children:`exclude_self`}),` is `,_jsx(_components.code,{children:`false`}),`.`]})}),`\n`,_jsx(ParamField,{body:`concept_name`,type:`string`,minLength:`1`,maxLength:`255`,id:`param-concept-name`,children:_jsx(_components.p,{children:`Reference concept name, when you have the name but not the ID`})}),`\n`,_jsx(ParamField,{body:`query`,type:`string`,minLength:`1`,maxLength:`500`,id:`param-query`,children:_jsx(_components.p,{children:`Free-text query or concept description to find similar concepts for`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Exactly one starting point is required: `,_jsx(_components.code,{children:`concept_id`}),`, `,_jsx(_components.code,{children:`concept_name`}),` or\n`,_jsx(_components.code,{children:`query`}),`. A request with none of them returns `,_jsx(_components.code,{children:`400`}),`, and so does a request with\nmore than one — supplying two used to be accepted, with the extra silently\ndiscarded. Vocabulary and domain filters narrow a search; they are not\nstarting points, so a request carrying only filters is also a `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`vocabulary_ids`,type:`string[]`,id:`param-vocabulary-ids`,children:[_jsx(_components.p,{children:`Target vocabularies to search within (array of strings)`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Examples`}),`: `,_jsx(_components.code,{children:`[\"SNOMED\", \"ICD10CM\"]`}),`, `,_jsx(_components.code,{children:`[\"RxNorm\", \"NDC\"]`})]})]}),`\n`,_jsxs(ParamField,{body:`domain_ids`,type:`string[]`,id:`param-domain-ids`,children:[_jsx(_components.p,{children:`Clinical domains to focus the similarity search (array of strings)`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Examples`}),`: `,_jsx(_components.code,{children:`[\"Condition\", \"Procedure\"]`}),`, `,_jsx(_components.code,{children:`[\"Drug\", \"Device\"]`})]})]}),`\n`,_jsxs(ParamField,{body:`concept_class_ids`,type:`string[]`,id:`param-concept-class-ids`,children:[_jsx(_components.p,{children:`Concept classes to include in similarity search (array of strings)`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Examples`}),`: `,_jsx(_components.code,{children:`[\"Clinical Finding\", \"Procedure\"]`}),`, `,_jsx(_components.code,{children:`[\"Ingredient\", \"Brand Name\"]`})]})]}),`\n`,_jsxs(ParamField,{body:`similarity_threshold`,type:`number`,default:`0.7`,min:`0`,max:`1.0`,id:`param-similarity-threshold`,children:[_jsx(_components.p,{children:`Minimum similarity score threshold (0 to 1.0)`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Higher values`}),` = More strict similarity matching`]}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`0`}),` is a valid value and is honoured: it returns every candidate the retrieval\nproduced, ranked by score.`]})]}),`\n`,_jsxs(ParamField,{body:`page_size`,type:`integer`,default:`20`,min:`1`,max:`1000`,id:`param-page-size`,children:[_jsx(_components.p,{children:`Number of similar concepts to return per page`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[`Every page size is served from the same fixed candidate pool, so this changes\nhow results are sliced, never how they are scored - see\n`,_jsx(_components.a,{href:`#pagination`,children:`Pagination`}),` for the bound on how deep paging can go.`]})]}),`\n`,_jsx(ParamField,{body:`include_scores`,type:`boolean`,default:`true`,id:`param-include-scores`,children:_jsxs(_components.p,{children:[`Include `,_jsx(_components.code,{children:`similarity_score`}),` on each returned concept. Set `,_jsx(_components.code,{children:`false`}),` to omit it;\nranking is unaffected.`]})}),`\n`,_jsxs(ParamField,{body:`include_explanations`,type:`boolean`,default:`false`,id:`param-include-explanations`,children:[_jsxs(_components.p,{children:[`Add an `,_jsx(_components.code,{children:`explanation`}),` field to each returned concept describing the evidence\nbehind its score.`]}),_jsx(`br`,{}),_jsxs(_components.p,{children:[`For one release each concept also carries a duplicate `,_jsx(_components.code,{children:`similarity_explanation`}),`\nfield with the same value. It is `,_jsx(_components.strong,{children:`deprecated`}),` and exists only so clients\nthat read the old name keep working; read `,_jsx(_components.code,{children:`explanation`}),`.`]})]}),`\n`,_jsxs(ParamField,{body:`standard_concept`,type:`string`,enum:`S|C|N`,id:`param-standard-concept`,children:[_jsx(_components.p,{children:`Filter by standard concept designation`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Options`}),`: `,_jsx(_components.code,{children:`S`}),` (standard), `,_jsx(_components.code,{children:`C`}),` (classification), `,_jsx(_components.code,{children:`N`}),` (non-standard)`]}),_jsx(`br`,{}),_jsxs(_components.p,{children:[`OMOP stores non-standard concepts with a null `,_jsx(_components.code,{children:`standard_concept`}),`; `,_jsx(_components.code,{children:`N`}),` selects\nthose rows.`]})]}),`\n`,_jsxs(ParamField,{body:`include_invalid`,type:`boolean`,default:`false`,id:`param-include-invalid`,children:[_jsx(_components.p,{children:`Include invalid/deprecated concepts in the similarity search.`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[`Supported only with `,_jsx(_components.code,{children:`algorithm=lexical`}),`. The embedding index contains valid\nconcepts only, so `,_jsx(_components.code,{children:`include_invalid=true`}),` with `,_jsx(_components.code,{children:`semantic`}),` or `,_jsx(_components.code,{children:`hybrid`}),` returns\n`,_jsx(_components.code,{children:`400`}),` rather than silently ignoring the filter.`]})]}),`\n`,_jsx(ParamField,{body:`exclude_self`,type:`boolean`,default:`true`,id:`param-exclude-self`,children:_jsxs(_components.p,{children:[`Exclude the reference concept from its own results. Applies when the request\nstarted from a `,_jsx(_components.code,{children:`concept_id`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`algorithm`,type:`string`,default:`semantic`,enum:`semantic|lexical|hybrid`,id:`param-algorithm`,children:[_jsx(_components.p,{children:`Similarity algorithm to use`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Options`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`semantic`}),` (default) - Neural embedding similarity. Best for finding conceptually similar terms that share no words (e.g. “heart attack” → “Myocardial infarction”). Returns `,_jsx(_components.code,{children:`503`}),` if the embedding service is unavailable.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`lexical`}),` - Text-based Jaccard word and character similarity. Good for fuzzy text matching and typo tolerance, and the only algorithm that can search invalid concepts.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`hybrid`}),` - Runs both retrievals, unions their candidates and scores every one of them by the same rule: `,_jsx(_components.code,{children:`0.7 × semantic + 0.3 × lexical`}),`, where a signal neither retrieval established counts as `,_jsx(_components.code,{children:`0`}),`. Note that this puts hybrid scores on a `,_jsx(_components.strong,{children:`different scale`}),` from both `,_jsx(_components.code,{children:`semantic`}),` and `,_jsx(_components.code,{children:`lexical`}),` scores — a candidate sharing no words with the query keeps only `,_jsx(_components.code,{children:`0.7 ×`}),` its semantic score, and one the embedding search did not return keeps only `,_jsx(_components.code,{children:`0.3 ×`}),` its lexical score — so the same `,_jsx(_components.code,{children:`similarity_threshold`}),` is stricter here than in either single-signal algorithm. See `,_jsx(_components.a,{href:`#algorithm-comparison`,children:`Algorithm Comparison`}),`. If the embedding service is unavailable, hybrid serves its lexical half and reports `,_jsx(_components.code,{children:`algorithm_used: \"lexical\"`}),` with `,_jsx(_components.code,{children:`degraded_from: \"hybrid\"`}),` rather than failing.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`page`,type:`integer`,default:`1`,min:`1`,id:`param-page`,children:_jsx(_components.p,{children:`Page number (1-based indexing)`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`meta`,type:`object`,id:`param-meta`,children:_jsx(_components.p,{children:`Request, release, and pagination metadata.`})}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates if the request was successful`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:[_jsx(_components.p,{children:`Contains the similar concepts search results`}),_jsxs(Expandable,{title:`data`,children:[_jsxs(ResponseField,{name:`similar_concepts`,type:`array`,id:`param-similar-concepts`,children:[_jsx(_components.p,{children:`Array of concepts similar to the query.`}),_jsx(_components.p,{children:`Each entry carries the concept row as the retrieval that found it returned\nit, plus the similarity fields below. The core OMOP columns are always\npresent; the remaining fields depend on which retrieval supplied the\ncandidate, so treat anything beyond them as optional.`}),_jsxs(Expandable,{title:`similar_concepts`,children:[_jsx(ResponseField,{name:`concept_id`,type:`integer`,id:`param-concept-id-1`,children:_jsx(_components.p,{children:`OMOP concept ID`})}),_jsx(ResponseField,{name:`concept_name`,type:`string`,id:`param-concept-name-1`,children:_jsx(_components.p,{children:`Primary concept name`})}),_jsx(ResponseField,{name:`concept_code`,type:`string`,id:`param-concept-code`,children:_jsx(_components.p,{children:`Vocabulary-specific concept code`})}),_jsx(ResponseField,{name:`vocabulary_id`,type:`string`,id:`param-vocabulary-id`,children:_jsx(_components.p,{children:`Source vocabulary identifier`})}),_jsx(ResponseField,{name:`domain_id`,type:`string`,id:`param-domain-id`,children:_jsx(_components.p,{children:`Clinical domain classification`})}),_jsx(ResponseField,{name:`concept_class_id`,type:`string`,id:`param-concept-class-id`,children:_jsx(_components.p,{children:`Concept class identifier`})}),_jsx(ResponseField,{name:`similarity_score`,type:`number`,optional:true,id:`param-similarity-score`,children:_jsx(_components.p,{children:`Similarity score between 0.0 and 1.0`})}),_jsx(ResponseField,{name:`explanation`,type:`string`,optional:true,id:`param-explanation`,children:_jsxs(_components.p,{children:[`Evidence behind the score. Present only when `,_jsx(_components.code,{children:`include_explanations`}),` is `,_jsx(_components.code,{children:`true`}),`.`]})}),_jsx(ResponseField,{name:`standard_concept`,type:`string`,id:`param-standard-concept-1`,children:_jsx(_components.p,{children:`Standard concept flag (S, C, or N)`})}),_jsx(ResponseField,{name:`matched_text`,type:`string`,optional:true,id:`param-matched-text`,children:_jsxs(_components.p,{children:[`The text whose embedding matched the query. Present on candidates the semantic retrieval returned — so on `,_jsx(_components.code,{children:`semantic`}),` results, and on the `,_jsx(_components.code,{children:`hybrid`}),` results that came from its semantic half.`]})}),_jsx(ResponseField,{name:`source_type`,type:`string`,optional:true,id:`param-source-type`,children:_jsxs(_components.p,{children:[`Which text `,_jsx(_components.code,{children:`matched_text`}),` came from, for example `,_jsx(_components.code,{children:`concept_name`}),`. Present alongside `,_jsx(_components.code,{children:`matched_text`}),`.`]})}),_jsx(ResponseField,{name:`similarity_explanation`,type:`string`,optional:true,id:`param-similarity-explanation`,children:_jsxs(_components.p,{children:[`Deprecated alias of `,_jsx(_components.code,{children:`explanation`}),`, emitted with the same value. Read `,_jsx(_components.code,{children:`explanation`}),`; this field will be removed in a future release.`]})})]})]}),_jsxs(ResponseField,{name:`source_concept`,type:`object`,optional:true,id:`param-source-concept`,children:[_jsxs(_components.p,{children:[`The concept the search started from. Present when the request supplied `,_jsx(_components.code,{children:`concept_id`}),`.`]}),_jsxs(Expandable,{title:`source_concept`,children:[_jsx(ResponseField,{name:`concept_id`,type:`integer`,id:`param-concept-id-2`,children:`OMOP concept ID`}),_jsx(ResponseField,{name:`concept_name`,type:`string`,id:`param-concept-name-2`,children:`Primary concept name`}),_jsx(ResponseField,{name:`concept_code`,type:`string`,id:`param-concept-code-1`,children:`Vocabulary-specific code`}),_jsx(ResponseField,{name:`vocabulary_id`,type:`string`,id:`param-vocabulary-id-1`,children:`Source vocabulary identifier`}),_jsx(ResponseField,{name:`domain_id`,type:`string`,id:`param-domain-id-1`,children:`Clinical domain classification`}),_jsx(ResponseField,{name:`concept_class_id`,type:`string`,id:`param-concept-class-id-1`,children:`Concept class identifier`}),_jsxs(ResponseField,{name:`standard_concept`,type:`string|null`,id:`param-standard-concept-2`,children:[`Standard concept flag (`,_jsx(_components.code,{children:`S`}),`, `,_jsx(_components.code,{children:`C`}),`, or null)`]})]})]}),_jsxs(ResponseField,{name:`search_metadata`,type:`object`,id:`param-search-metadata`,children:[_jsx(_components.p,{children:`Information about the similarity search`}),_jsxs(Expandable,{title:`search_metadata`,children:[_jsx(ResponseField,{name:`original_query`,type:`string`,id:`param-original-query`,children:_jsx(_components.p,{children:`The original search query provided`})}),_jsx(ResponseField,{name:`algorithm_used`,type:`string`,id:`param-algorithm-used`,children:_jsxs(_components.p,{children:[`Similarity algorithm applied (`,_jsx(_components.code,{children:`semantic`}),`, `,_jsx(_components.code,{children:`lexical`}),`, or `,_jsx(_components.code,{children:`hybrid`}),`)`]})}),_jsx(ResponseField,{name:`similarity_threshold`,type:`number`,id:`param-similarity-threshold-1`,children:_jsx(_components.p,{children:`Minimum similarity threshold applied`})}),_jsxs(ResponseField,{name:`total_candidates`,type:`integer`,id:`param-total-candidates`,children:[_jsxs(_components.p,{children:[`How many concepts `,_jsxs(_components.strong,{children:[`cleared `,_jsx(_components.code,{children:`similarity_threshold`})]}),` within the bounded retrieval pool — the size of the ranked set the pages are cut from, and identical to `,_jsx(_components.code,{children:`pagination.total_items`}),`.`]}),_jsxs(_components.p,{children:[`Despite the name it is not the number of candidates evaluated: the pool holds up to 500, and everything scoring below the threshold is discarded before this is counted. A value of `,_jsx(_components.code,{children:`3`}),` means three concepts qualified, not that three were examined. Since the pool is bounded, check `,_jsx(_components.code,{children:`totals_are_lower_bound`}),` before treating it as a corpus-wide total.`]})]}),_jsx(ResponseField,{name:`totals_are_lower_bound`,type:`boolean`,id:`param-totals-are-lower-bound`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when retrieval hit its candidate bound, meaning `,_jsx(_components.code,{children:`total_candidates`}),` and `,_jsx(_components.code,{children:`pagination.total_items`}),` count only what qualified inside the pool that was searched, rather than across the whole corpus. For `,_jsx(_components.code,{children:`hybrid`}),` it also means individual `,_jsx(_components.code,{children:`similarity_score`}),` values may understate: a candidate the semantic half did not return is fused with a semantic score of `,_jsx(_components.code,{children:`0`}),`.`]})}),_jsx(ResponseField,{name:`source_concept_id`,type:`integer`,optional:true,id:`param-source-concept-id`,children:_jsxs(_components.p,{children:[`The concept the search started from. Present when the request supplied `,_jsx(_components.code,{children:`concept_id`}),`.`]})}),_jsx(ResponseField,{name:`degraded_from`,type:`string`,optional:true,id:`param-degraded-from`,children:_jsxs(_components.p,{children:[`The algorithm that was requested, when it could not run in full and a fallback served the request instead. Present only when `,_jsx(_components.code,{children:`algorithm_used`}),` differs from what was asked for.`]})}),_jsx(ResponseField,{name:`results_returned`,type:`integer`,id:`param-results-returned`,children:_jsx(_components.p,{children:`Number of similar concepts returned`})}),_jsx(ResponseField,{name:`processing_time_ms`,type:`integer`,id:`param-processing-time-ms`,children:_jsx(_components.p,{children:`Search processing time in milliseconds`})}),_jsx(ResponseField,{name:`embedding_latency_ms`,type:`integer`,optional:true,id:`param-embedding-latency-ms`,children:_jsxs(_components.p,{children:[`Time spent on embedding generation. Present whenever the semantic\nretrieval ran — so for `,_jsx(_components.code,{children:`semantic`}),`, and for `,_jsx(_components.code,{children:`hybrid`}),` unless it degraded\nto its lexical half.`]})})]})]})]})]}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`usage-examples`,children:`Usage Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`basic-similarity-search`,children:`Basic Similarity Search`}),`\n`,_jsx(_components.p,{children:`Find concepts similar to a medical condition:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hypertension\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.7`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`cross-vocabulary-similarity`,children:`Cross-Vocabulary Similarity`}),`\n`,_jsx(_components.p,{children:`Find similar concepts across multiple vocabularies:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"myocardial infarction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SNOMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ICD10CM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ICD9CM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"include_explanations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`pharmacological-similarity`,children:`Pharmacological Similarity`}),`\n`,_jsx(_components.p,{children:`Find similar drug concepts with detailed scoring:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"metformin hydrochloride\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RxNorm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Drug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_class_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ingredient\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Clinical Drug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.75`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"include_scores\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"algorithm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"semantic\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`semantic-search-for-clinical-terms`,children:`Semantic Search for Clinical Terms`}),`\n`,_jsx(_components.p,{children:`Use neural embeddings to find conceptually similar terms (even when words don’t match):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"heart attack\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SNOMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"algorithm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"semantic\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This will find “Myocardial infarction” and related concepts even though the words “heart” and “attack” don’t appear in the medical term.`}),`\n`,_jsx(Heading,{level:`2`,id:`algorithm-comparison`,children:`Algorithm Comparison`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feature`}),_jsxs(_components.th,{children:[_jsx(_components.code,{children:`semantic`}),` (default)`]}),_jsx(_components.th,{children:_jsx(_components.code,{children:`lexical`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`hybrid`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model`}),_jsx(_components.td,{children:`Neural embeddings`}),_jsx(_components.td,{children:`Jaccard word similarity`}),_jsxs(_components.td,{children:[`Both, fused as `,_jsx(_components.code,{children:`0.7 x semantic + 0.3 x lexical`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Best for`}),_jsx(_components.td,{children:`Conceptual similarity`}),_jsx(_components.td,{children:`Fuzzy text matching`}),_jsx(_components.td,{children:`Conceptually related terms re-ranked by wording`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`”heart attack” → “MI”`}),_jsx(_components.td,{children:`Excellent`}),_jsx(_components.td,{children:`Poor (word mismatch)`}),_jsx(_components.td,{children:`Found and ranked, but scored down — see below`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Exact name or code match`}),_jsx(_components.td,{children:`Only if it also embeds closely`}),_jsx(_components.td,{children:`Excellent`}),_jsxs(_components.td,{children:[`Capped at `,_jsx(_components.code,{children:`0.3`}),` unless the embedding search also returned it`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Typo tolerance`}),_jsx(_components.td,{children:`Moderate`}),_jsx(_components.td,{children:`Good`}),_jsxs(_components.td,{children:[`Moderate — a match the embedding search misses caps at `,_jsx(_components.code,{children:`0.3`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Total counts`}),_jsx(_components.td,{children:`Lower bound when the candidate pool saturates`}),_jsx(_components.td,{children:`Lower bound when the candidate pool saturates`}),_jsx(_components.td,{children:`Lower bound when either half saturates`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Speed`}),_jsx(_components.td,{children:`One embedding lookup`}),_jsx(_components.td,{children:`One text search`}),_jsx(_components.td,{children:`Both, run concurrently`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Requirements`}),_jsx(_components.td,{children:`Embedding service`}),_jsx(_components.td,{children:`None`}),_jsxs(_components.td,{children:[`Embedding service; degrades to `,_jsx(_components.code,{children:`lexical`}),` without it`]})]})]})]}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`hybrid`}),` scores are not on the same scale as `,_jsx(_components.code,{children:`semantic`}),` scores, so the same\n`,_jsx(_components.code,{children:`similarity_threshold`}),` is not equivalent between them.`]})}),_jsxs(_components.p,{children:[`Every candidate is scored by the same rule, with a signal neither retrieval\nestablished counting as `,_jsx(_components.code,{children:`0`}),`. That cuts both ways.`]}),_jsxs(_components.p,{children:[`A concept that shares no words with the query keeps only `,_jsx(_components.code,{children:`0.7 x`}),` its semantic\nscore: “Myocardial infarction” scoring 0.85 semantically against “heart attack”\nfuses to `,_jsx(_components.code,{children:`0.7 x 0.85 = 0.595`}),` — below the default threshold of 0.7, which\n`,_jsx(_components.code,{children:`semantic`}),` would have passed comfortably.`]}),_jsxs(_components.p,{children:[`A concept the embedding search did not return keeps only `,_jsx(_components.code,{children:`0.3 x`}),` its lexical\nscore, so it cannot exceed `,_jsx(_components.code,{children:`0.3`}),` at all. An exact name or code match with no\nsemantic evidence scores `,_jsx(_components.code,{children:`0.3 x 1.0 = 0.3`}),` and is filtered by any threshold\nabove that. Use `,_jsx(_components.code,{children:`lexical`}),` when you want those matches to rank on their own —\n`,_jsx(_components.code,{children:`hybrid`}),` is not a superset of the other two algorithms.`]}),_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`totals_are_lower_bound`}),` is `,_jsx(_components.code,{children:`true`}),`, a `,_jsx(_components.code,{children:`hybrid`}),` score is itself a lower\nbound: the semantic retrieval filled its pool, so a candidate it did not return\nmay have had real semantic evidence that was counted as `,_jsx(_components.code,{children:`0`}),`. The score is still\nstable — it does not change with `,_jsx(_components.code,{children:`page`}),` or `,_jsx(_components.code,{children:`page_size`}),` — but it can understate.`]}),_jsxs(_components.p,{children:[`The consequence: at the default threshold, `,_jsx(_components.code,{children:`hybrid`}),` returns few cross-wording\nmatches, because clearing 0.7 with no lexical overlap requires a semantic score\nof 1.0. Ranking within a `,_jsx(_components.code,{children:`hybrid`}),` result is unaffected — semantic ordering is\npreserved among candidates with equally little overlap — but the absolute\nscores are compressed. `,_jsxs(_components.strong,{children:[`Lower `,_jsx(_components.code,{children:`similarity_threshold`}),` for `,_jsx(_components.code,{children:`hybrid`})]}),`, or use\n`,_jsx(_components.code,{children:`semantic`}),` when you want conceptual matches that share no vocabulary.`]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Counts are pool-relative.`}),` `,_jsx(_components.code,{children:`total_candidates`}),` and `,_jsx(_components.code,{children:`pagination.total_items`}),`\ncount the concepts that cleared `,_jsx(_components.code,{children:`similarity_threshold`}),` inside a bounded\nretrieval pool — not the concepts evaluated, and not the corpus. When\n`,_jsx(_components.code,{children:`search_metadata.totals_are_lower_bound`}),` is `,_jsx(_components.code,{children:`true`}),`, treat them as “at least\nthis many”. `,_jsx(_components.code,{children:`has_next`}),` remains reliable for paging: it describes the ranked\npool being served and goes `,_jsx(_components.code,{children:`false`}),` at the end of it.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`pagination`,children:`Pagination`}),`\n`,_jsxs(_components.p,{children:[`Every algorithm ranks a `,_jsx(_components.strong,{children:`bounded candidate pool`}),` and serves pages out of it.\nThe pool is a `,_jsx(_components.strong,{children:`constant 500 candidates`}),` - it depends on neither `,_jsx(_components.code,{children:`page`}),` nor\n`,_jsx(_components.code,{children:`page_size`}),`. Every page of a given request therefore ranks exactly the same\ncandidates, which is what makes consecutive pages disjoint slices of one stable\nordering rather than independently-ranked result sets that can repeat or skip\nconcepts. It also means a concept’s `,_jsx(_components.code,{children:`similarity_score`}),` is a property of the\nconcept and the query: asking for a different `,_jsx(_components.code,{children:`page_size`}),` cannot change it.`]}),`\n`,_jsx(_components.p,{children:`Two consequences worth planning for:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`has_next`}),` describes the ranked pool that was served`]}),`, and nothing beyond\nit. Paging while `,_jsx(_components.code,{children:`has_next`}),` is `,_jsx(_components.code,{children:`true`}),` always terminates.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Reachable depth is bounded`}),` at roughly `,_jsx(_components.code,{children:`500 / page_size`}),` pages. 500 is what\nthe vector index can return in one ordered pass, so the pool cannot be\nenlarged by asking for a bigger page. Asking for a page past the end returns\nan empty `,_jsx(_components.code,{children:`similar_concepts`}),` array with `,_jsx(_components.code,{children:`has_next: false`}),` — not an error.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`When the retrieval filled its pool, there are matching concepts it did not\nconsider, so `,_jsx(_components.code,{children:`total_candidates`}),` and `,_jsx(_components.code,{children:`pagination.total_items`}),` count what\nqualified inside that pool\nrather than the corpus. `,_jsx(_components.code,{children:`search_metadata.totals_are_lower_bound`}),` says when that\nis the case. It is reported separately from `,_jsx(_components.code,{children:`has_next`}),` on purpose: whether more\npages of `,_jsx(_components.em,{children:`this ranking`}),` exist and whether more `,_jsx(_components.em,{children:`matches`}),` exist are different\nquestions, and answering the first with the second produced responses that\npromised a next page forever.`]}),`\n`,_jsx(_components.p,{children:`To search deeper, narrow the query with filters rather than paging further.`}),`\n`,_jsx(Heading,{level:`2`,id:`related-endpoints`,children:`Related Endpoints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/search/get-search-similar-by-id`,children:`GET Search Similar by ID`}),` - Get similar concepts for a specific concept ID`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/search/semantic-search`,children:`Semantic Search`}),` - Dedicated semantic search endpoint using neural embeddings`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/search/advanced-search`,children:`Advanced Search`}),` - Advanced search with multiple criteria`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Search Similar Concepts","api":"POST https://api.omophub.com/v1/search/similar","description":"Find semantically similar medical concepts using advanced machine learning algorithms with flexible search criteria and body parameters.","href":"/api-reference/search/search-similar"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`This endpoint identifies medical concepts that are semantically similar to a provided query or set of criteria. It leverages advanced machine learning models trained on medical terminology to discover related concepts that may not share exact keywords but are clinically relevant and contextually similar.`}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`concept_id`,type:`integer`,min:`1`,id:`param-concept-id`,children:_jsxs(_components.p,{children:[`Reference concept to find similar concepts for. Its name becomes the search\ntext, and the concept itself is excluded from the results unless\n`,_jsx(_components.code,{children:`exclude_self`}),` is `,_jsx(_components.code,{children:`false`}),`.`]})}),`\n`,_jsx(ParamField,{body:`concept_name`,type:`string`,minLength:`1`,maxLength:`255`,id:`param-concept-name`,children:_jsx(_components.p,{children:`Reference concept name, when you have the name but not the ID`})}),`\n`,_jsx(ParamField,{body:`query`,type:`string`,minLength:`1`,maxLength:`500`,id:`param-query`,children:_jsx(_components.p,{children:`Free-text query or concept description to find similar concepts for`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Exactly one starting point is required: `,_jsx(_components.code,{children:`concept_id`}),`, `,_jsx(_components.code,{children:`concept_name`}),` or\n`,_jsx(_components.code,{children:`query`}),`. A request with none of them returns `,_jsx(_components.code,{children:`400`}),`, and so does a request with\nmore than one — supplying two used to be accepted, with the extra silently\ndiscarded. Vocabulary and domain filters narrow a search; they are not\nstarting points, so a request carrying only filters is also a `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`vocabulary_ids`,type:`string[]`,id:`param-vocabulary-ids`,children:[_jsx(_components.p,{children:`Target vocabularies to search within (array of strings)`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Examples`}),`: `,_jsx(_components.code,{children:`[\"SNOMED\", \"ICD10CM\"]`}),`, `,_jsx(_components.code,{children:`[\"RxNorm\", \"NDC\"]`})]})]}),`\n`,_jsxs(ParamField,{body:`domain_ids`,type:`string[]`,id:`param-domain-ids`,children:[_jsx(_components.p,{children:`Clinical domains to focus the similarity search (array of strings)`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Examples`}),`: `,_jsx(_components.code,{children:`[\"Condition\", \"Procedure\"]`}),`, `,_jsx(_components.code,{children:`[\"Drug\", \"Device\"]`})]})]}),`\n`,_jsxs(ParamField,{body:`concept_class_ids`,type:`string[]`,id:`param-concept-class-ids`,children:[_jsx(_components.p,{children:`Concept classes to include in similarity search (array of strings)`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Examples`}),`: `,_jsx(_components.code,{children:`[\"Clinical Finding\", \"Procedure\"]`}),`, `,_jsx(_components.code,{children:`[\"Ingredient\", \"Brand Name\"]`})]})]}),`\n`,_jsxs(ParamField,{body:`similarity_threshold`,type:`number`,default:`0.7`,min:`0`,max:`1.0`,id:`param-similarity-threshold`,children:[_jsx(_components.p,{children:`Minimum similarity score threshold (0 to 1.0)`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Higher values`}),` = More strict similarity matching`]}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`0`}),` is a valid value and is honoured: it returns every candidate the retrieval\nproduced, ranked by score.`]})]}),`\n`,_jsxs(ParamField,{body:`page_size`,type:`integer`,default:`20`,min:`1`,max:`1000`,id:`param-page-size`,children:[_jsx(_components.p,{children:`Number of similar concepts to return per page`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[`Every page size is served from the same fixed candidate pool, so this changes\nhow results are sliced, never how they are scored - see\n`,_jsx(_components.a,{href:`#pagination`,children:`Pagination`}),` for the bound on how deep paging can go.`]})]}),`\n`,_jsx(ParamField,{body:`include_scores`,type:`boolean`,default:`true`,id:`param-include-scores`,children:_jsxs(_components.p,{children:[`Include `,_jsx(_components.code,{children:`similarity_score`}),` on each returned concept. Set `,_jsx(_components.code,{children:`false`}),` to omit it;\nranking is unaffected.`]})}),`\n`,_jsxs(ParamField,{body:`include_explanations`,type:`boolean`,default:`false`,id:`param-include-explanations`,children:[_jsxs(_components.p,{children:[`Add an `,_jsx(_components.code,{children:`explanation`}),` field to each returned concept describing the evidence\nbehind its score.`]}),_jsx(`br`,{}),_jsxs(_components.p,{children:[`For one release each concept also carries a duplicate `,_jsx(_components.code,{children:`similarity_explanation`}),`\nfield with the same value. It is `,_jsx(_components.strong,{children:`deprecated`}),` and exists only so clients\nthat read the old name keep working; read `,_jsx(_components.code,{children:`explanation`}),`.`]})]}),`\n`,_jsxs(ParamField,{body:`standard_concept`,type:`string`,enum:`S|C|N`,id:`param-standard-concept`,children:[_jsx(_components.p,{children:`Filter by standard concept designation`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Options`}),`: `,_jsx(_components.code,{children:`S`}),` (standard), `,_jsx(_components.code,{children:`C`}),` (classification), `,_jsx(_components.code,{children:`N`}),` (non-standard)`]}),_jsx(`br`,{}),_jsxs(_components.p,{children:[`OMOP stores non-standard concepts with a null `,_jsx(_components.code,{children:`standard_concept`}),`; `,_jsx(_components.code,{children:`N`}),` selects\nthose rows.`]})]}),`\n`,_jsxs(ParamField,{body:`include_invalid`,type:`boolean`,default:`false`,id:`param-include-invalid`,children:[_jsx(_components.p,{children:`Include invalid/deprecated concepts in the similarity search.`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[`Supported only with `,_jsx(_components.code,{children:`algorithm=lexical`}),`. The embedding index contains valid\nconcepts only, so `,_jsx(_components.code,{children:`include_invalid=true`}),` with `,_jsx(_components.code,{children:`semantic`}),` or `,_jsx(_components.code,{children:`hybrid`}),` returns\n`,_jsx(_components.code,{children:`400`}),` rather than silently ignoring the filter.`]})]}),`\n`,_jsx(ParamField,{body:`exclude_self`,type:`boolean`,default:`true`,id:`param-exclude-self`,children:_jsxs(_components.p,{children:[`Exclude the reference concept from its own results. Applies when the request\nstarted from a `,_jsx(_components.code,{children:`concept_id`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`algorithm`,type:`string`,default:`semantic`,enum:`semantic|lexical|hybrid`,id:`param-algorithm`,children:[_jsx(_components.p,{children:`Similarity algorithm to use`}),_jsx(`br`,{}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Options`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`semantic`}),` (default) - Neural embedding similarity. Best for finding conceptually similar terms that share no words (e.g. “heart attack” → “Myocardial infarction”). Returns `,_jsx(_components.code,{children:`503`}),` if the embedding service is unavailable.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`lexical`}),` - Text-based Jaccard word and character similarity. Good for fuzzy text matching and typo tolerance, and the only algorithm that can search invalid concepts.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`hybrid`}),` - Runs both retrievals, unions their candidates and scores every one of them by the same rule: `,_jsx(_components.code,{children:`0.7 × semantic + 0.3 × lexical`}),`, where a signal neither retrieval established counts as `,_jsx(_components.code,{children:`0`}),`. Note that this puts hybrid scores on a `,_jsx(_components.strong,{children:`different scale`}),` from both `,_jsx(_components.code,{children:`semantic`}),` and `,_jsx(_components.code,{children:`lexical`}),` scores — a candidate sharing no words with the query keeps only `,_jsx(_components.code,{children:`0.7 ×`}),` its semantic score, and one the embedding search did not return keeps only `,_jsx(_components.code,{children:`0.3 ×`}),` its lexical score — so the same `,_jsx(_components.code,{children:`similarity_threshold`}),` is stricter here than in either single-signal algorithm. See `,_jsx(_components.a,{href:`#algorithm-comparison`,children:`Algorithm Comparison`}),`. If the embedding service is unavailable, hybrid serves its lexical half and reports `,_jsx(_components.code,{children:`algorithm_used: \"lexical\"`}),` with `,_jsx(_components.code,{children:`degraded_from: \"hybrid\"`}),` rather than failing.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`page`,type:`integer`,default:`1`,min:`1`,id:`param-page`,children:_jsx(_components.p,{children:`Page number (1-based indexing)`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`meta`,type:`object`,id:`param-meta`,children:_jsx(_components.p,{children:`Request, release, and pagination metadata.`})}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates if the request was successful`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:[_jsx(_components.p,{children:`Contains the similar concepts search results`}),_jsxs(Expandable,{title:`data`,children:[_jsxs(ResponseField,{name:`similar_concepts`,type:`array`,id:`param-similar-concepts`,children:[_jsx(_components.p,{children:`Array of concepts similar to the query.`}),_jsx(_components.p,{children:`Each entry carries the concept row as the retrieval that found it returned\nit, plus the similarity fields below. The core OMOP columns are always\npresent; the remaining fields depend on which retrieval supplied the\ncandidate, so treat anything beyond them as optional.`}),_jsxs(Expandable,{title:`similar_concepts`,children:[_jsx(ResponseField,{name:`concept_id`,type:`integer`,id:`param-concept-id-1`,children:_jsx(_components.p,{children:`OMOP concept ID`})}),_jsx(ResponseField,{name:`concept_name`,type:`string`,id:`param-concept-name-1`,children:_jsx(_components.p,{children:`Primary concept name`})}),_jsx(ResponseField,{name:`concept_code`,type:`string`,id:`param-concept-code`,children:_jsx(_components.p,{children:`Vocabulary-specific concept code`})}),_jsx(ResponseField,{name:`vocabulary_id`,type:`string`,id:`param-vocabulary-id`,children:_jsx(_components.p,{children:`Source vocabulary identifier`})}),_jsx(ResponseField,{name:`domain_id`,type:`string`,id:`param-domain-id`,children:_jsx(_components.p,{children:`Clinical domain classification`})}),_jsx(ResponseField,{name:`concept_class_id`,type:`string`,id:`param-concept-class-id`,children:_jsx(_components.p,{children:`Concept class identifier`})}),_jsx(ResponseField,{name:`similarity_score`,type:`number`,optional:true,id:`param-similarity-score`,children:_jsx(_components.p,{children:`Similarity score between 0.0 and 1.0`})}),_jsx(ResponseField,{name:`explanation`,type:`string`,optional:true,id:`param-explanation`,children:_jsxs(_components.p,{children:[`Evidence behind the score. Present only when `,_jsx(_components.code,{children:`include_explanations`}),` is `,_jsx(_components.code,{children:`true`}),`.`]})}),_jsx(ResponseField,{name:`standard_concept`,type:`string`,id:`param-standard-concept-1`,children:_jsx(_components.p,{children:`Standard concept flag (S, C, or N)`})}),_jsx(ResponseField,{name:`matched_text`,type:`string`,optional:true,id:`param-matched-text`,children:_jsxs(_components.p,{children:[`The text whose embedding matched the query. Present on candidates the semantic retrieval returned — so on `,_jsx(_components.code,{children:`semantic`}),` results, and on the `,_jsx(_components.code,{children:`hybrid`}),` results that came from its semantic half.`]})}),_jsx(ResponseField,{name:`source_type`,type:`string`,optional:true,id:`param-source-type`,children:_jsxs(_components.p,{children:[`Which text `,_jsx(_components.code,{children:`matched_text`}),` came from, for example `,_jsx(_components.code,{children:`concept_name`}),`. Present alongside `,_jsx(_components.code,{children:`matched_text`}),`.`]})}),_jsx(ResponseField,{name:`similarity_explanation`,type:`string`,optional:true,id:`param-similarity-explanation`,children:_jsxs(_components.p,{children:[`Deprecated alias of `,_jsx(_components.code,{children:`explanation`}),`, emitted with the same value. Read `,_jsx(_components.code,{children:`explanation`}),`; this field will be removed in a future release.`]})})]})]}),_jsxs(ResponseField,{name:`source_concept`,type:`object`,optional:true,id:`param-source-concept`,children:[_jsxs(_components.p,{children:[`The concept the search started from. Present when the request supplied `,_jsx(_components.code,{children:`concept_id`}),`.`]}),_jsxs(Expandable,{title:`source_concept`,children:[_jsx(ResponseField,{name:`concept_id`,type:`integer`,id:`param-concept-id-2`,children:`OMOP concept ID`}),_jsx(ResponseField,{name:`concept_name`,type:`string`,id:`param-concept-name-2`,children:`Primary concept name`}),_jsx(ResponseField,{name:`concept_code`,type:`string`,id:`param-concept-code-1`,children:`Vocabulary-specific code`}),_jsx(ResponseField,{name:`vocabulary_id`,type:`string`,id:`param-vocabulary-id-1`,children:`Source vocabulary identifier`}),_jsx(ResponseField,{name:`domain_id`,type:`string`,id:`param-domain-id-1`,children:`Clinical domain classification`}),_jsx(ResponseField,{name:`concept_class_id`,type:`string`,id:`param-concept-class-id-1`,children:`Concept class identifier`}),_jsxs(ResponseField,{name:`standard_concept`,type:`string|null`,id:`param-standard-concept-2`,children:[`Standard concept flag (`,_jsx(_components.code,{children:`S`}),`, `,_jsx(_components.code,{children:`C`}),`, or null)`]})]})]}),_jsxs(ResponseField,{name:`search_metadata`,type:`object`,id:`param-search-metadata`,children:[_jsx(_components.p,{children:`Information about the similarity search`}),_jsxs(Expandable,{title:`search_metadata`,children:[_jsx(ResponseField,{name:`original_query`,type:`string`,id:`param-original-query`,children:_jsx(_components.p,{children:`The original search query provided`})}),_jsx(ResponseField,{name:`algorithm_used`,type:`string`,id:`param-algorithm-used`,children:_jsxs(_components.p,{children:[`Similarity algorithm applied (`,_jsx(_components.code,{children:`semantic`}),`, `,_jsx(_components.code,{children:`lexical`}),`, or `,_jsx(_components.code,{children:`hybrid`}),`)`]})}),_jsx(ResponseField,{name:`similarity_threshold`,type:`number`,id:`param-similarity-threshold-1`,children:_jsx(_components.p,{children:`Minimum similarity threshold applied`})}),_jsxs(ResponseField,{name:`total_candidates`,type:`integer`,id:`param-total-candidates`,children:[_jsxs(_components.p,{children:[`How many concepts `,_jsxs(_components.strong,{children:[`cleared `,_jsx(_components.code,{children:`similarity_threshold`})]}),` within the bounded retrieval pool — the size of the ranked set the pages are cut from, and identical to `,_jsx(_components.code,{children:`pagination.total_items`}),`.`]}),_jsxs(_components.p,{children:[`Despite the name it is not the number of candidates evaluated: the pool holds up to 500, and everything scoring below the threshold is discarded before this is counted. A value of `,_jsx(_components.code,{children:`3`}),` means three concepts qualified, not that three were examined. Since the pool is bounded, check `,_jsx(_components.code,{children:`totals_are_lower_bound`}),` before treating it as a corpus-wide total.`]})]}),_jsx(ResponseField,{name:`totals_are_lower_bound`,type:`boolean`,id:`param-totals-are-lower-bound`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when retrieval hit its candidate bound, meaning `,_jsx(_components.code,{children:`total_candidates`}),` and `,_jsx(_components.code,{children:`pagination.total_items`}),` count only what qualified inside the pool that was searched, rather than across the whole corpus. For `,_jsx(_components.code,{children:`hybrid`}),` it also means individual `,_jsx(_components.code,{children:`similarity_score`}),` values may understate: a candidate the semantic half did not return is fused with a semantic score of `,_jsx(_components.code,{children:`0`}),`.`]})}),_jsx(ResponseField,{name:`source_concept_id`,type:`integer`,optional:true,id:`param-source-concept-id`,children:_jsxs(_components.p,{children:[`The concept the search started from. Present when the request supplied `,_jsx(_components.code,{children:`concept_id`}),`.`]})}),_jsx(ResponseField,{name:`degraded_from`,type:`string`,optional:true,id:`param-degraded-from`,children:_jsxs(_components.p,{children:[`The algorithm that was requested, when it could not run in full and a fallback served the request instead. Present only when `,_jsx(_components.code,{children:`algorithm_used`}),` differs from what was asked for.`]})}),_jsx(ResponseField,{name:`results_returned`,type:`integer`,id:`param-results-returned`,children:_jsx(_components.p,{children:`Number of similar concepts returned`})}),_jsx(ResponseField,{name:`processing_time_ms`,type:`integer`,id:`param-processing-time-ms`,children:_jsx(_components.p,{children:`Search processing time in milliseconds`})}),_jsx(ResponseField,{name:`embedding_latency_ms`,type:`integer`,optional:true,id:`param-embedding-latency-ms`,children:_jsxs(_components.p,{children:[`Time spent on embedding generation. Present whenever the semantic\nretrieval ran — so for `,_jsx(_components.code,{children:`semantic`}),`, and for `,_jsx(_components.code,{children:`hybrid`}),` unless it degraded\nto its lexical half.`]})})]})]})]})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.omophub.com/v1/search/similar\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"query\": \"type 2 diabetes mellitus\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"vocabulary_ids\": [\"SNOMED\", \"ICD10CM\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"domain_ids\": [\"Condition\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"algorithm\": \"hybrid\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"similarity_threshold\": 0.8,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"page_size\": 10,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"include_scores\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"include_explanations\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"standard_concept\": \"S\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`14`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OMOPHub`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@omophub/omophub-node'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` OMOPHub`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`search`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`similar`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` query:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'type 2 diabetes mellitus'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` vocabularyIds:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'SNOMED'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'ICD10CM'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` domainIds:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Condition'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` algorithm:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'hybrid'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` similarityThreshold:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pageSize:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` includeScores:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` includeExplanations:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` standardConcept:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'S'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`21`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.omophub.com/v1/search/similar\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type 2 diabetes mellitus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"vocabulary_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SNOMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ICD10CM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"domain_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"algorithm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hybrid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"page_size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"include_scores\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"include_explanations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"standard_concept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"S\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` url,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`Response`,numberOfLines:`84`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`84`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similar_concepts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4193704`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Type 2 diabetes mellitus without complication\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"313436004\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SNOMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_class_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Clinical Finding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"standard_concept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"S\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"matched_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Type 2 diabetes mellitus without complication\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"concept_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.93`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"explanation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Semantic similarity 0.94 and lexical overlap 0.91, combined at 0.7/0.3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_explanation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Semantic similarity 0.94 and lexical overlap 0.91, combined at 0.7/0.3\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3191208`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Type 2 diabetes mellitus with hyperglycemia\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1481000119100\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SNOMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_class_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Clinical Finding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"standard_concept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"S\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"matched_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Type 2 diabetes mellitus with hyperglycemia\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"concept_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.9`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"explanation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Semantic similarity 0.89 and lexical overlap 0.91, combined at 0.7/0.3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_explanation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Semantic similarity 0.89 and lexical overlap 0.91, combined at 0.7/0.3\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`35206879`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Type 2 diabetes mellitus without complications\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"E11.9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ICD10CM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_class_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4-char nonbill code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"standard_concept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"S\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"matched_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Type 2 diabetes mellitus without complications\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"concept_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_score\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.87`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"explanation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Semantic similarity 0.86 and lexical overlap 0.9, combined at 0.7/0.3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_explanation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Semantic similarity 0.86 and lexical overlap 0.9, combined at 0.7/0.3\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"search_metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"original_query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type 2 diabetes mellitus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"algorithm_used\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hybrid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_candidates\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"results_returned\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processing_time_ms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totals_are_lower_bound\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"embedding_latency_ms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`18`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"meta\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"req_01HQZX3M5K8P2N7R4T6V9W1Y3B\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-06T13:37:12.848Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocab_release\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026.1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type 2 diabetes mellitus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_results\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"filters_applied\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"algorithm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hybrid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SNOMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ICD10CM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"standard_concept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"S\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"include_invalid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"exclude_self\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pagination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_pages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"has_next\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"has_previous\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Error Response`,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"validation_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation failed: similarity_threshold must be between 0 and 1 (field: similarity_threshold, received: 1.5)\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"validationErrors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"similarity_threshold must be between 0 and 1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VALIDATION_FAILED\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"meta\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"req_01HQZX3M5K8P2N7R4T6V9W1Y3B\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-06T13:38:09.105Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`usage-examples`,children:`Usage Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`basic-similarity-search`,children:`Basic Similarity Search`}),`\n`,_jsx(_components.p,{children:`Find concepts similar to a medical condition:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hypertension\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.7`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`cross-vocabulary-similarity`,children:`Cross-Vocabulary Similarity`}),`\n`,_jsx(_components.p,{children:`Find similar concepts across multiple vocabularies:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"myocardial infarction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SNOMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ICD10CM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ICD9CM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"include_explanations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`pharmacological-similarity`,children:`Pharmacological Similarity`}),`\n`,_jsx(_components.p,{children:`Find similar drug concepts with detailed scoring:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"metformin hydrochloride\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RxNorm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Drug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"concept_class_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ingredient\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Clinical Drug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.75`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"include_scores\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"algorithm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"semantic\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`semantic-search-for-clinical-terms`,children:`Semantic Search for Clinical Terms`}),`\n`,_jsx(_components.p,{children:`Use neural embeddings to find conceptually similar terms (even when words don’t match):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"heart attack\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vocabulary_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SNOMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"algorithm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"semantic\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This will find “Myocardial infarction” and related concepts even though the words “heart” and “attack” don’t appear in the medical term.`}),`\n`,_jsx(Heading,{level:`2`,id:`algorithm-comparison`,children:`Algorithm Comparison`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feature`}),_jsxs(_components.th,{children:[_jsx(_components.code,{children:`semantic`}),` (default)`]}),_jsx(_components.th,{children:_jsx(_components.code,{children:`lexical`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`hybrid`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model`}),_jsx(_components.td,{children:`Neural embeddings`}),_jsx(_components.td,{children:`Jaccard word similarity`}),_jsxs(_components.td,{children:[`Both, fused as `,_jsx(_components.code,{children:`0.7 x semantic + 0.3 x lexical`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Best for`}),_jsx(_components.td,{children:`Conceptual similarity`}),_jsx(_components.td,{children:`Fuzzy text matching`}),_jsx(_components.td,{children:`Conceptually related terms re-ranked by wording`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`”heart attack” → “MI”`}),_jsx(_components.td,{children:`Excellent`}),_jsx(_components.td,{children:`Poor (word mismatch)`}),_jsx(_components.td,{children:`Found and ranked, but scored down — see below`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Exact name or code match`}),_jsx(_components.td,{children:`Only if it also embeds closely`}),_jsx(_components.td,{children:`Excellent`}),_jsxs(_components.td,{children:[`Capped at `,_jsx(_components.code,{children:`0.3`}),` unless the embedding search also returned it`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Typo tolerance`}),_jsx(_components.td,{children:`Moderate`}),_jsx(_components.td,{children:`Good`}),_jsxs(_components.td,{children:[`Moderate — a match the embedding search misses caps at `,_jsx(_components.code,{children:`0.3`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Total counts`}),_jsx(_components.td,{children:`Lower bound when the candidate pool saturates`}),_jsx(_components.td,{children:`Lower bound when the candidate pool saturates`}),_jsx(_components.td,{children:`Lower bound when either half saturates`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Speed`}),_jsx(_components.td,{children:`One embedding lookup`}),_jsx(_components.td,{children:`One text search`}),_jsx(_components.td,{children:`Both, run concurrently`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Requirements`}),_jsx(_components.td,{children:`Embedding service`}),_jsx(_components.td,{children:`None`}),_jsxs(_components.td,{children:[`Embedding service; degrades to `,_jsx(_components.code,{children:`lexical`}),` without it`]})]})]})]}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`hybrid`}),` scores are not on the same scale as `,_jsx(_components.code,{children:`semantic`}),` scores, so the same\n`,_jsx(_components.code,{children:`similarity_threshold`}),` is not equivalent between them.`]})}),_jsxs(_components.p,{children:[`Every candidate is scored by the same rule, with a signal neither retrieval\nestablished counting as `,_jsx(_components.code,{children:`0`}),`. That cuts both ways.`]}),_jsxs(_components.p,{children:[`A concept that shares no words with the query keeps only `,_jsx(_components.code,{children:`0.7 x`}),` its semantic\nscore: “Myocardial infarction” scoring 0.85 semantically against “heart attack”\nfuses to `,_jsx(_components.code,{children:`0.7 x 0.85 = 0.595`}),` — below the default threshold of 0.7, which\n`,_jsx(_components.code,{children:`semantic`}),` would have passed comfortably.`]}),_jsxs(_components.p,{children:[`A concept the embedding search did not return keeps only `,_jsx(_components.code,{children:`0.3 x`}),` its lexical\nscore, so it cannot exceed `,_jsx(_components.code,{children:`0.3`}),` at all. An exact name or code match with no\nsemantic evidence scores `,_jsx(_components.code,{children:`0.3 x 1.0 = 0.3`}),` and is filtered by any threshold\nabove that. Use `,_jsx(_components.code,{children:`lexical`}),` when you want those matches to rank on their own —\n`,_jsx(_components.code,{children:`hybrid`}),` is not a superset of the other two algorithms.`]}),_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`totals_are_lower_bound`}),` is `,_jsx(_components.code,{children:`true`}),`, a `,_jsx(_components.code,{children:`hybrid`}),` score is itself a lower\nbound: the semantic retrieval filled its pool, so a candidate it did not return\nmay have had real semantic evidence that was counted as `,_jsx(_components.code,{children:`0`}),`. The score is still\nstable — it does not change with `,_jsx(_components.code,{children:`page`}),` or `,_jsx(_components.code,{children:`page_size`}),` — but it can understate.`]}),_jsxs(_components.p,{children:[`The consequence: at the default threshold, `,_jsx(_components.code,{children:`hybrid`}),` returns few cross-wording\nmatches, because clearing 0.7 with no lexical overlap requires a semantic score\nof 1.0. Ranking within a `,_jsx(_components.code,{children:`hybrid`}),` result is unaffected — semantic ordering is\npreserved among candidates with equally little overlap — but the absolute\nscores are compressed. `,_jsxs(_components.strong,{children:[`Lower `,_jsx(_components.code,{children:`similarity_threshold`}),` for `,_jsx(_components.code,{children:`hybrid`})]}),`, or use\n`,_jsx(_components.code,{children:`semantic`}),` when you want conceptual matches that share no vocabulary.`]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Counts are pool-relative.`}),` `,_jsx(_components.code,{children:`total_candidates`}),` and `,_jsx(_components.code,{children:`pagination.total_items`}),`\ncount the concepts that cleared `,_jsx(_components.code,{children:`similarity_threshold`}),` inside a bounded\nretrieval pool — not the concepts evaluated, and not the corpus. When\n`,_jsx(_components.code,{children:`search_metadata.totals_are_lower_bound`}),` is `,_jsx(_components.code,{children:`true`}),`, treat them as “at least\nthis many”. `,_jsx(_components.code,{children:`has_next`}),` remains reliable for paging: it describes the ranked\npool being served and goes `,_jsx(_components.code,{children:`false`}),` at the end of it.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`pagination`,children:`Pagination`}),`\n`,_jsxs(_components.p,{children:[`Every algorithm ranks a `,_jsx(_components.strong,{children:`bounded candidate pool`}),` and serves pages out of it.\nThe pool is a `,_jsx(_components.strong,{children:`constant 500 candidates`}),` - it depends on neither `,_jsx(_components.code,{children:`page`}),` nor\n`,_jsx(_components.code,{children:`page_size`}),`. Every page of a given request therefore ranks exactly the same\ncandidates, which is what makes consecutive pages disjoint slices of one stable\nordering rather than independently-ranked result sets that can repeat or skip\nconcepts. It also means a concept’s `,_jsx(_components.code,{children:`similarity_score`}),` is a property of the\nconcept and the query: asking for a different `,_jsx(_components.code,{children:`page_size`}),` cannot change it.`]}),`\n`,_jsx(_components.p,{children:`Two consequences worth planning for:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`has_next`}),` describes the ranked pool that was served`]}),`, and nothing beyond\nit. Paging while `,_jsx(_components.code,{children:`has_next`}),` is `,_jsx(_components.code,{children:`true`}),` always terminates.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Reachable depth is bounded`}),` at roughly `,_jsx(_components.code,{children:`500 / page_size`}),` pages. 500 is what\nthe vector index can return in one ordered pass, so the pool cannot be\nenlarged by asking for a bigger page. Asking for a page past the end returns\nan empty `,_jsx(_components.code,{children:`similar_concepts`}),` array with `,_jsx(_components.code,{children:`has_next: false`}),` — not an error.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`When the retrieval filled its pool, there are matching concepts it did not\nconsider, so `,_jsx(_components.code,{children:`total_candidates`}),` and `,_jsx(_components.code,{children:`pagination.total_items`}),` count what\nqualified inside that pool\nrather than the corpus. `,_jsx(_components.code,{children:`search_metadata.totals_are_lower_bound`}),` says when that\nis the case. It is reported separately from `,_jsx(_components.code,{children:`has_next`}),` on purpose: whether more\npages of `,_jsx(_components.em,{children:`this ranking`}),` exist and whether more `,_jsx(_components.em,{children:`matches`}),` exist are different\nquestions, and answering the first with the second produced responses that\npromised a next page forever.`]}),`\n`,_jsx(_components.p,{children:`To search deeper, narrow the query with filters rather than paging further.`}),`\n`,_jsx(Heading,{level:`2`,id:`related-endpoints`,children:`Related Endpoints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/search/get-search-similar-by-id`,children:`GET Search Similar by ID`}),` - Get similar concepts for a specific concept ID`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/search/semantic-search`,children:`Semantic Search`}),` - Dedicated semantic search endpoint using neural embeddings`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/search/advanced-search`,children:`Advanced Search`}),` - Advanced search with multiple criteria`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Search Similar Concepts","api":"POST https://api.omophub.com/v1/search/similar","description":"Find semantically similar medical concepts using advanced machine learning algorithms with flexible search criteria and body parameters.","href":"/api-reference/search/search-similar"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Usage Examples","slug":"usage-examples","depth":2,"children":[{"title":"Basic Similarity Search","slug":"basic-similarity-search","depth":3,"children":[]},{"title":"Cross-Vocabulary Similarity","slug":"cross-vocabulary-similarity","depth":3,"children":[]},{"title":"Pharmacological Similarity","slug":"pharmacological-similarity","depth":3,"children":[]},{"title":"Semantic Search for Clinical Terms","slug":"semantic-search-for-clinical-terms","depth":3,"children":[]}]},{"title":"Algorithm Comparison","slug":"algorithm-comparison","depth":2,"children":[]},{"title":"Pagination","slug":"pagination","depth":2,"children":[]},{"title":"Related Endpoints","slug":"related-endpoints","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.omophub.com/v1/search/similar\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"query\": \"type 2 diabetes mellitus\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"vocabulary_ids\": [\"SNOMED\", \"ICD10CM\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"domain_ids\": [\"Condition\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"algorithm\": \"hybrid\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"similarity_threshold\": 0.8,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"page_size\": 10,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"include_scores\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"include_explanations\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"standard_concept\": \"S\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"TypeScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">OMOPHub\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '@omophub/omophub-node'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> client\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> OMOPHub\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">search\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">similar\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> query:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'type 2 diabetes mellitus'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> vocabularyIds:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'SNOMED'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'ICD10CM'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> domainIds:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Condition'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> algorithm:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'hybrid'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> similarityThreshold:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 0.8\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> pageSize:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 10\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> includeScores:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> includeExplanations:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> standardConcept:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'S'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">url \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.omophub.com/v1/search/similar\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"query\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"type 2 diabetes mellitus\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"vocabulary_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"SNOMED\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ICD10CM\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"domain_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Condition\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"algorithm\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"hybrid\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"similarity_threshold\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.8\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"page_size\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"include_scores\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"include_explanations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"standard_concept\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"S\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> url,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">data \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.json()\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"84\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"similar_concepts\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">4193704\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Type 2 diabetes mellitus without complication\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"313436004\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"vocabulary_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"SNOMED\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"domain_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Condition\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_class_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Clinical Finding\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"standard_concept\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"S\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"matched_text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Type 2 diabetes mellitus without complication\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"source_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"concept_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"similarity_score\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.93\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"explanation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Semantic similarity 0.94 and lexical overlap 0.91, combined at 0.7/0.3\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"similarity_explanation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Semantic similarity 0.94 and lexical overlap 0.91, combined at 0.7/0.3\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">3191208\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Type 2 diabetes mellitus with hyperglycemia\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1481000119100\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"vocabulary_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"SNOMED\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"domain_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Condition\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_class_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Clinical Finding\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"standard_concept\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"S\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"matched_text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Type 2 diabetes mellitus with hyperglycemia\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"source_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"concept_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"similarity_score\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.9\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"explanation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Semantic similarity 0.89 and lexical overlap 0.91, combined at 0.7/0.3\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"similarity_explanation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Semantic similarity 0.89 and lexical overlap 0.91, combined at 0.7/0.3\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">35206879\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Type 2 diabetes mellitus without complications\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"E11.9\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"vocabulary_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ICD10CM\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"domain_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Condition\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"concept_class_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"4-char nonbill code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"standard_concept\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"S\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"matched_text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Type 2 diabetes mellitus without complications\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"source_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"concept_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"similarity_score\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.87\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"explanation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Semantic similarity 0.86 and lexical overlap 0.9, combined at 0.7/0.3\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"similarity_explanation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Semantic similarity 0.86 and lexical overlap 0.9, combined at 0.7/0.3\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"search_metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"original_query\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"type 2 diabetes mellitus\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"algorithm_used\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"hybrid\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"similarity_threshold\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.8\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total_candidates\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">3\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"results_returned\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">3\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"processing_time_ms\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"totals_are_lower_bound\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"embedding_latency_ms\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">18\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"meta\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"request_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"req_01HQZX3M5K8P2N7R4T6V9W1Y3B\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"timestamp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-09-06T13:37:12.848Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"vocab_release\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026.1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"search\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"query\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"type 2 diabetes mellitus\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total_results\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">3\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"filters_applied\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"algorithm\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"hybrid\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"vocabulary_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"SNOMED\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ICD10CM\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"domain_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Condition\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"standard_concept\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"S\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"include_invalid\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"exclude_self\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"pagination\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"page\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"page_size\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total_items\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">3\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total_pages\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"has_next\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"has_previous\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Error Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"validation_error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Validation failed: similarity_threshold must be between 0 and 1 (field: similarity_threshold, received: 1.5)\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"validationErrors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"field\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"similarity_threshold\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"similarity_threshold must be between 0 and 1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1.5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"VALIDATION_FAILED\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"meta\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"request_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"req_01HQZX3M5K8P2N7R4T6V9W1Y3B\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"timestamp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-09-06T13:38:09.105Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Search Similar Concepts","path":"/v1/search/similar","servers":[{"url":"https://api.omophub.com"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"concept_id":[{"type":"integer","description":"Reference concept to find similar concepts for. Its name becomes the search text, and the concept itself is excluded from the results unless `exclude_self` is `false` ."}],"concept_name":[{"type":"string","description":"Reference concept name, when you have the name but not the ID"}],"query":[{"type":"string","description":"Free-text query or concept description to find similar concepts for"}],"vocabulary_ids":[{"type":"array","items":[{"type":"string"}],"description":"Target vocabularies to search within (array of strings) Examples : `[\"SNOMED\", \"ICD10CM\"]` , `[\"RxNorm\", \"NDC\"]`"}],"domain_ids":[{"type":"array","items":[{"type":"string"}],"description":"Clinical domains to focus the similarity search (array of strings) Examples : `[\"Condition\", \"Procedure\"]` , `[\"Drug\", \"Device\"]`"}],"concept_class_ids":[{"type":"array","items":[{"type":"string"}],"description":"Concept classes to include in similarity search (array of strings) Examples : `[\"Clinical Finding\", \"Procedure\"]` , `[\"Ingredient\", \"Brand Name\"]`"}],"similarity_threshold":[{"type":"number","description":"Minimum similarity score threshold (0 to 1.0) Higher values = More strict similarity matching `0` is a valid value and is honoured: it returns every candidate the retrieval produced, ranked by score."}],"page_size":[{"type":"integer","description":"Number of similar concepts to return per page Every page size is served from the same fixed candidate pool, so this changes how results are sliced, never how they are scored - see Pagination for the bound on how deep paging can go."}],"include_scores":[{"type":"boolean","description":"Include `similarity_score` on each returned concept. Set `false` to omit it; ranking is unaffected."}],"include_explanations":[{"type":"boolean","description":"Add an `explanation` field to each returned concept describing the evidence behind its score. For one release each concept also carries a duplicate `similarity_explanation` field with the same value. It is deprecated and exists only so clients that read the old name keep working; read `explanation` ."}],"standard_concept":[{"type":"string","description":"Filter by standard concept designation Options : `S` (standard), `C` (classification), `N` (non-standard) OMOP stores non-standard concepts with a null `standard_concept` ; `N` selects those rows."}],"include_invalid":[{"type":"boolean","description":"Include invalid/deprecated concepts in the similarity search. Supported only with `algorithm=lexical` . The embedding index contains valid concepts only, so `include_invalid=true` with `semantic` or `hybrid` returns `400` rather than silently ignoring the filter."}],"exclude_self":[{"type":"boolean","description":"Exclude the reference concept from its own results. Applies when the request started from a `concept_id` ."}],"algorithm":[{"type":"string","description":"Similarity algorithm to use Options : `semantic` (default) - Neural embedding similarity. Best for finding conceptually similar terms that share no words (e.g. “heart attack” → “Myocardial infarction”). Returns `503` if the embedding service is unavailable. `lexical` - Text-based Jaccard word and character similarity. Good for fuzzy text matching and typo tolerance, and the only algorithm that can search invalid concepts. `hybrid` - Runs both retrievals, unions their candidates and scores every one of them by the same rule: `0.7 × semantic + 0.3 × lexical` , where a signal neither retrieval established counts as `0` . Note that this puts hybrid scores on a different scale from both `semantic` and `lexical` scores — a candidate sharing no words with the query keeps only `0.7 ×` its semantic score, and one the embedding search did not return keeps only `0.3 ×` its lexical score — so the same `similarity_threshold` is stricter here than in either single-signal algorithm. See Algorithm Comparison . If the embedding service is unavailable, hybrid serves its lexical half and reports `algorithm_used: \"lexical\"` with `degraded_from: \"hybrid\"` rather than failing."}],"page":[{"type":"integer","description":"Page number (1-based indexing)"}]}}],"examples":{"example":{"value":{"concept_id":123,"concept_name":"\u003cstring>","query":"\u003cstring>","vocabulary_ids":["\u003cstring>"],"domain_ids":["\u003cstring>"],"concept_class_ids":["\u003cstring>"],"similarity_threshold":123,"page_size":123,"include_scores":true,"include_explanations":true,"standard_concept":"\u003cstring>","include_invalid":true,"exclude_self":true,"algorithm":"\u003cstring>","page":123}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"meta":[{"type":"object","properties":{},"description":"Request, release, and pagination metadata."}],"success":[{"type":"boolean","description":"Indicates if the request was successful"}],"data":[{"type":"object","properties":{"similar_concepts":[{"type":"array","items":[{"type":"object","properties":{"concept_id":[{"type":"integer","description":"OMOP concept ID"}],"concept_name":[{"type":"string","description":"Primary concept name"}],"concept_code":[{"type":"string","description":"Vocabulary-specific concept code"}],"vocabulary_id":[{"type":"string","description":"Source vocabulary identifier"}],"domain_id":[{"type":"string","description":"Clinical domain classification"}],"concept_class_id":[{"type":"string","description":"Concept class identifier"}],"similarity_score":[{"type":"number","description":"Similarity score between 0.0 and 1.0"}],"explanation":[{"type":"string","description":"Evidence behind the score. Present only when `include_explanations` is `true` ."}],"standard_concept":[{"type":"string","description":"Standard concept flag (S, C, or N)"}],"matched_text":[{"type":"string","description":"The text whose embedding matched the query. Present on candidates the semantic retrieval returned — so on `semantic` results, and on the `hybrid` results that came from its semantic half."}],"source_type":[{"type":"string","description":"Which text `matched_text` came from, for example `concept_name` . Present alongside `matched_text` ."}],"similarity_explanation":[{"type":"string","description":"Deprecated alias of `explanation` , emitted with the same value. Read `explanation` ; this field will be removed in a future release."}]}}],"description":"Array of concepts similar to the query. Each entry carries the concept row as the retrieval that found it returned it, plus the similarity fields below. The core OMOP columns are always present; the remaining fields depend on which retrieval supplied the candidate, so treat anything beyond them as optional."}],"source_concept":[{"type":"object","properties":{"concept_id":[{"type":"integer","description":"OMOP concept ID"}],"concept_name":[{"type":"string","description":"Primary concept name"}],"concept_code":[{"type":"string","description":"Vocabulary-specific code"}],"vocabulary_id":[{"type":"string","description":"Source vocabulary identifier"}],"domain_id":[{"type":"string","description":"Clinical domain classification"}],"concept_class_id":[{"type":"string","description":"Concept class identifier"}],"standard_concept":[{"type":"object","properties":{},"description":"Standard concept flag ( `S` , `C` , or null)"}]},"description":"The concept the search started from. Present when the request supplied `concept_id` ."}],"search_metadata":[{"type":"object","properties":{"original_query":[{"type":"string","description":"The original search query provided"}],"algorithm_used":[{"type":"string","description":"Similarity algorithm applied ( `semantic` , `lexical` , or `hybrid` )"}],"similarity_threshold":[{"type":"number","description":"Minimum similarity threshold applied"}],"total_candidates":[{"type":"integer","description":"How many concepts cleared `similarity_threshold` within the bounded retrieval pool — the size of the ranked set the pages are cut from, and identical to `pagination.total_items` . Despite the name it is not the number of candidates evaluated: the pool holds up to 500, and everything scoring below the threshold is discarded before this is counted. A value of `3` means three concepts qualified, not that three were examined. Since the pool is bounded, check `totals_are_lower_bound` before treating it as a corpus-wide total."}],"totals_are_lower_bound":[{"type":"boolean","description":"`true` when retrieval hit its candidate bound, meaning `total_candidates` and `pagination.total_items` count only what qualified inside the pool that was searched, rather than across the whole corpus. For `hybrid` it also means individual `similarity_score` values may understate: a candidate the semantic half did not return is fused with a semantic score of `0` ."}],"source_concept_id":[{"type":"integer","description":"The concept the search started from. Present when the request supplied `concept_id` ."}],"degraded_from":[{"type":"string","description":"The algorithm that was requested, when it could not run in full and a fallback served the request instead. Present only when `algorithm_used` differs from what was asked for."}],"results_returned":[{"type":"integer","description":"Number of similar concepts returned"}],"processing_time_ms":[{"type":"integer","description":"Search processing time in milliseconds"}],"embedding_latency_ms":[{"type":"integer","description":"Time spent on embedding generation. Present whenever the semantic retrieval ran — so for `semantic` , and for `hybrid` unless it degraded to its lexical half."}]},"description":"Information about the similarity search"}]},"description":"Contains the similar concepts search results"}]}}],"examples":{"example":{"value":{"meta":{},"success":true,"data":{"similar_concepts":[{"concept_id":123,"concept_name":"\u003cstring>","concept_code":"\u003cstring>","vocabulary_id":"\u003cstring>","domain_id":"\u003cstring>","concept_class_id":"\u003cstring>","similarity_score":123,"explanation":"\u003cstring>","standard_concept":"\u003cstring>","matched_text":"\u003cstring>","source_type":"\u003cstring>","similarity_explanation":"\u003cstring>"}],"source_concept":{"concept_id":123,"concept_name":"\u003cstring>","concept_code":"\u003cstring>","vocabulary_id":"\u003cstring>","domain_id":"\u003cstring>","concept_class_id":"\u003cstring>","standard_concept":{}},"search_metadata":{"original_query":"\u003cstring>","algorithm_used":"\u003cstring>","similarity_threshold":123,"total_candidates":123,"totals_are_lower_bound":true,"source_concept_id":123,"degraded_from":"\u003cstring>","results_returned":123,"processing_time_ms":123,"embedding_latency_ms":123}}}}}}}},"deprecated":false}},"jsLinks":["/_mintlify/custom/medilensio/49768d5eb862e11b/datafast.js"],"subdomain":"medilensio","siteName":"OMOPHub.com API","title":"Search Similar Concepts - OMOPHub.com API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-13T12:52:03.866Z","originalFileLocation":"api-reference/search/search-similar.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Find semantically similar medical concepts using advanced machine learning algorithms with flexible search criteria and body parameters.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OMOPHub.com API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Search Similar Concepts - OMOPHub.com API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Find semantically similar medical concepts using advanced machine learning algorithms with flexible search criteria and body parameters.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OMOPHub.com API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.omophub.com/api-reference/search/search-similar\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://medilensio.mintlify.site/_mintlify/api/og/v2?division=Search\u0026amp;title=Search+Similar+Concepts\u0026amp;description=Find+semantically+similar+medical+concepts+using+advanced+machine+learning+algorithms+with+flexible+search+criteria+and+body+parameters.\u0026amp;theme=8af6086130fea428d7e00a0f\u0026amp;signature=901cca5d33ead472d2db3569492be9192a89cb7c33f8e167137935b586fce09b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Search Similar Concepts - OMOPHub.com API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Find semantically similar medical concepts using advanced machine learning algorithms with flexible search criteria and body parameters.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://medilensio.mintlify.site/_mintlify/api/og/v2?division=Search\u0026amp;title=Search+Similar+Concepts\u0026amp;description=Find+semantically+similar+medical+concepts+using+advanced+machine+learning+algorithms+with+flexible+search+criteria+and+body+parameters.\u0026amp;theme=8af6086130fea428d7e00a0f\u0026amp;signature=901cca5d33ead472d2db3569492be9192a89cb7c33f8e167137935b586fce09b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/medilensio/noiKV6wLJlXi3G19/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OMOPHub.com API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.omophub.com/api-reference/search/search-similar\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/search/search-similar.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.omophub.com/#organization\",\"name\":\"OMOPHub.com API\",\"url\":\"https://docs.omophub.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/medilensio/d8KZ5UNRHYv--jGr/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=d8KZ5UNRHYv--jGr\u0026q=85\u0026s=cf586cc87e1e46b0e11ae3b80c0467da\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.omophub.com#website\",\"name\":\"OMOPHub.com API\",\"url\":\"https://docs.omophub.com\",\"publisher\":{\"@id\":\"https://docs.omophub.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.omophub.com/api-reference/search/search-similar#webpage\",\"url\":\"https://docs.omophub.com/api-reference/search/search-similar\",\"name\":\"Search Similar Concepts\",\"description\":\"Find semantically similar medical concepts using advanced machine learning algorithms with flexible search criteria and body parameters.\",\"dateModified\":\"2026-09-13T12:52:03.866Z\",\"isPartOf\":{\"@id\":\"https://docs.omophub.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.omophub.com/api-reference/search/search-similar#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.omophub.com/api-reference/search/search-similar#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Search\",\"item\":\"https://docs.omophub.com/api-reference/search/basic-search\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Search Similar Concepts\",\"item\":\"https://docs.omophub.com/api-reference/search/search-similar\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.omophub.com/api-reference/search/search-similar#apireference\",\"headline\":\"Search Similar Concepts\",\"name\":\"Search Similar Concepts\",\"description\":\"Find semantically similar medical concepts using advanced machine learning algorithms with flexible search criteria and body parameters.\",\"url\":\"https://docs.omophub.com/api-reference/search/search-similar\",\"mainEntityOfPage\":{\"@id\":\"https://docs.omophub.com/api-reference/search/search-similar#webpage\"},\"dateModified\":\"2026-09-13T12:52:03.866Z\",\"publisher\":{\"@id\":\"https://docs.omophub.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.omophub.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OMOPHub.com API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OMOPHub.com API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/search/search-similar.md","siteName":"OMOPHub.com API","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/introduction"}]},{"anchor":"API Reference","icon":"square-terminal","groups":[{"group":"API Reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"API error codes","href":"/api-reference/errors"},{"title":"API rate limits","href":"/api-reference/rate-limit"}]},{"group":"Search","pages":[{"title":"Basic Concept Search","api":"GET /v1/search/concepts","href":"/api-reference/search/basic-search"},{"title":"Multi-lingual Search","href":"/api-reference/search/multi-lingual-search"},{"title":"Semantic Search","api":"GET /v1/search/semantic","href":"/api-reference/search/semantic-search"},{"title":"Advanced Search","api":"POST /v1/search/advanced","href":"/api-reference/search/advanced-search"},{"title":"Bulk Search","api":"POST https://api.omophub.com/v1/search/bulk","href":"/api-reference/search/bulk-search"},{"title":"Bulk Semantic Search","api":"POST https://api.omophub.com/v1/search/semantic-bulk","description":"Find related OMOP concepts for multiple English-language queries in one request.","href":"/api-reference/search/semantic-bulk-search"},{"title":"Search Similar Concepts","api":"POST https://api.omophub.com/v1/search/similar","href":"/api-reference/search/search-similar"},{"title":"Get Similar Concepts by ID","api":"GET https://api.omophub.com/v1/search/similar/{conceptId}","description":"Find OMOP concepts similar to a specific concept identified by its concept ID using semantic similarity - discover related clinical terminology fast.","href":"/api-reference/search/get-search-similar-by-id"},{"title":"Search Autocomplete","api":"GET /v1/search/autocomplete","href":"/api-reference/search/search-autocomplete"},{"title":"Search Facets","api":"GET https://api.omophub.com/v1/search/facets","href":"/api-reference/search/search-facets"},{"title":"Search Suggest","api":"GET https://api.omophub.com/v1/search/suggest","href":"/api-reference/search/search-suggest"}]},{"group":"Concepts","pages":[{"title":"Get Concept","api":"GET /v1/concepts/{conceptId}","href":"/api-reference/concepts/get-concept"},{"title":"Get Concept by Code","api":"GET /v1/concepts/by-code/{vocabularyId}/{conceptCode}","href":"/api-reference/concepts/get-concept-by-code"},{"title":"Suggest Concepts","api":"GET /v1/concepts/suggest","href":"/api-reference/concepts/suggest-concepts"},{"title":"Recommended Concepts","api":"POST /v1/concepts/recommended","href":"/api-reference/concepts/recommended-concepts"},{"title":"Check Concept Relations","api":"GET https://api.omophub.com/v1/concepts/{conceptId}/relations/any","href":"/api-reference/concepts/check-concept-relations"},{"title":"Get Concept Level","api":"GET https://api.omophub.com/v1/concepts/{conceptId}/level","href":"/api-reference/concepts/get-concept-level"},{"title":"Get Relationship Options","api":"GET https://api.omophub.com/v1/concepts/{conceptId}/relationships/options","href":"/api-reference/concepts/get-relationship-options"},{"title":"Get Related Concepts","api":"GET https://api.omophub.com/v1/concepts/{conceptId}/related","href":"/api-reference/concepts/get-related-concepts"},{"title":"Traverse Relationships","api":"POST https://api.omophub.com/v1/concepts/relationships/traverse","href":"/api-reference/concepts/traverse-relationships"},{"title":"Batch Concepts","api":"POST /v1/concepts/batch","href":"/api-reference/concepts/batch-concepts"},{"title":"Batch Relationship Queries","api":"POST https://api.omophub.com/v1/concepts/relationships/batch","href":"/api-reference/concepts/batch-relationship-queries"},{"title":"Batch Hierarchy Queries","api":"POST https://api.omophub.com/v1/concepts/hierarchy/batch","href":"/api-reference/concepts/batch-hierarchy-queries"}]},{"group":"Concept Hierarchy","pages":[{"title":"Get Concept Ancestors","api":"GET /v1/concepts/{concept_id}/ancestors","href":"/api-reference/hierarchy/get-concept-ancestors"},{"title":"Get Concept Descendants","api":"GET /v1/concepts/{concept_id}/descendants","href":"/api-reference/hierarchy/get-concept-descendants"},{"title":"Get Concept Hierarchy","api":"GET /v1/concepts/{concept_id}/hierarchy","href":"/api-reference/hierarchy/get-concept-hierarchy"},{"title":"Get concept path","href":"/api-reference/hierarchy/get-concept-path"}]},{"group":"Mappings","pages":[{"title":"Map Concepts","api":"POST https://api.omophub.com/v1/concepts/map","href":"/api-reference/mappings/map-concepts"},{"title":"Get Concept Mappings","api":"GET /v1/concepts/{conceptId}/mappings","href":"/api-reference/mappings/get-concept-mappings"},{"title":"Batch Map Concepts","api":"POST https://api.omophub.com/v1/concepts/map/batch","href":"/api-reference/mappings/batch-map-concepts"},{"title":"Validate Mappings","api":"POST https://api.omophub.com/v1/mappings/validate","href":"/api-reference/mappings/validate-mappings"},{"title":"Get Mapping Coverage","api":"GET /v1/mappings/coverage","href":"/api-reference/mappings/get-mapping-coverage"},{"title":"Get Mapping Quality","api":"GET /v1/mappings/quality/{source_vocabulary}/{target_vocabulary}","href":"/api-reference/mappings/get-mapping-quality"}]},{"group":"FHIR Resolver","pages":[{"title":"Resolve FHIR Coding","api":"POST /v1/fhir/resolve","href":"/api-reference/fhir/resolve"},{"title":"Resolve FHIR Codings - Batch","api":"POST /v1/fhir/resolve/batch","href":"/api-reference/fhir/resolve-batch"},{"title":"Resolve FHIR CodeableConcept","api":"POST /v1/fhir/resolve/codeable-concept","href":"/api-reference/fhir/resolve-codeable-concept"}]},{"group":"Relationships","pages":[{"title":"Get Relationship Types","api":"GET /v1/relationships/types","href":"/api-reference/relationships/get-relationship-types"},{"title":"List Relationships for a Concept","api":"GET /v1/concepts/{concept_id}/relationships","href":"/api-reference/relationships/get-concept-relationships"},{"title":"Get Concept Relationships by Type","api":"GET /v1/concepts/{concept_id}/relationships/{relationship_type}","href":"/api-reference/relationships/get-concept-relationships-by-type"}]},{"group":"Domains \u0026 Classifications","pages":[{"title":"Get Domains","api":"GET /v1/domains","href":"/api-reference/domains/get-domains"},{"title":"Get Domain Concepts","api":"GET /v1/domains/{domain_id}/concepts","href":"/api-reference/domains/get-domain-concepts"},{"title":"Get Domain Statistics","api":"GET /v1/domains/{domain_id}/statistics","href":"/api-reference/domains/get-domain-statistics"},{"title":"Get Concept Classes","api":"GET /v1/concept-classes","href":"/api-reference/domains/get-concept-classes"}]},{"group":"Vocabularies","pages":[{"title":"List Vocabularies","api":"GET /v1/vocabularies","href":"/api-reference/vocabularies/list-vocabularies"},{"title":"Get Vocabulary Details","api":"GET /v1/vocabularies/{vocabularyId}","href":"/api-reference/vocabularies/get-vocabulary"},{"title":"Search Vocabularies","api":"GET /v1/vocabularies/search","href":"/api-reference/vocabularies/search-vocabularies"},{"title":"Get Vocabulary Concepts","api":"GET /v1/vocabularies/{vocabularyId}/concepts","href":"/api-reference/vocabularies/get-vocabulary-concepts"},{"title":"Get Vocabulary Statistics","api":"GET /v1/vocabularies/{vocabularyId}/stats","href":"/api-reference/vocabularies/get-vocabulary-stats"},{"title":"Get Vocabulary Domains","api":"GET /v1/vocabularies/domains","href":"/api-reference/vocabularies/get-vocabulary-domains"},{"title":"Get Vocabulary Releases","api":"GET /v1/vocabularies/releases","href":"/api-reference/vocabularies/get-vocabulary-releases"},{"title":"Get Vocabulary Release Version","api":"GET /v1/vocabularies/release-version","href":"/api-reference/vocabularies/get-vocabulary-release-version"},{"title":"Get Vocabulary Concept Classes","api":"GET https://api.omophub.com/v1/vocabularies/concept-classes","href":"/api-reference/vocabularies/get-vocabulary-concept-classes"},{"title":"Get Vocabulary Domain Statistics","api":"GET https://api.omophub.com/v1/vocabularies/{vocabularyId}/stats/domains/{domainId}","href":"/api-reference/vocabularies/get-vocabulary-domain-stats"}]}]},{"anchor":"FHIR Terminology","icon":"fire","pages":[{"title":"FHIR Terminology","href":"/api-reference/fhir-terminology/overview"}]},{"anchor":"Build with AI","icon":"wand-magic-sparkles","pages":[{"title":"Build with AI","href":"/ai/onboarding"}]},{"anchor":"SDKs","icon":"cube","pages":[{"title":"SDKs","href":"/sdks/python/overview"}]}]},"basePath":"","title":"Search Similar Concepts - OMOPHub.com API","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-B564ZPEC.js","snippetPresets-L1o8HcxD.js","utils-CztB6GTn.js","style-to-object-BY3JEAdk.js","utils-CvVTgJWk.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DYi6_847.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DthbVJn_.js","_Uint8Array-G4MDMcnE.js","isObject-FP1Yky1u.js","ApiExamples-BnQo4SxZ.js","usePlaygroundInputsStore-Dsmj0Yg6.js","shallow-Bp_wEvgz.js","isEqual-BwXlkqOR.js","CodeSnippets-D6Fi8DmN.js","CodeSnippet-DANVAYTI.js","use-playground-group-access-DaUWE1Sg.js","Page-Cwg6gQ2F.js","api-description-markdown-DFvICuUq.js","DynamicMarkdown-DHV3eOcf.js","SectionHeading-DLRZDaDn.js","MethodPill-CgqQYk5N.js","getPastedJson-k_txzq3J.js","Check2Icon-CO8ho5Tt.js","axios-CsQoIw0U.js"]}