{ "success": false, "error": { "code": "CONCEPT_NOT_FOUND", "message": "The specified concept ID does not exist", "details": { "concept_id": 99999999, "suggestion": "Verify the concept ID exists in the OMOP vocabularies" } }}
Get Similar Concepts by ID
Find OMOP concepts similar to a specific concept identified by its concept ID using semantic similarity - discover related clinical terminology fast.
curl -X GET "https://api.omophub.com/v1/search/similar/44054006?vocabulary_ids=SNOMED,ICD10CM&similarity_threshold=0.8&page_size=10&include_scores=true&include_explanations=true" \ -H "Authorization: Bearer YOUR_API_KEY"
import { OMOPHub } from '@omophub/omophub-node';const client = new OMOPHub();const { data } = await client.search.similar({ conceptId: 44054006, vocabularyIds: ['SNOMED', 'ICD10CM'], similarityThreshold: 0.8, pageSize: 10, includeScores: true, includeExplanations: true,});
{ "success": false, "error": { "code": "CONCEPT_NOT_FOUND", "message": "The specified concept ID does not exist", "details": { "concept_id": 99999999, "suggestion": "Verify the concept ID exists in the OMOP vocabularies" } }}
Overview
This endpoint finds medical concepts that are semantically similar to a specific concept identified by its OMOP concept ID. It uses the same advanced machine learning algorithms as the POST version but optimized for concept-to-concept similarity matching, making it ideal for discovering related concepts when you have a specific starting point.
Path Parameters
integer
required
The OMOP concept ID to find similar concepts for
Query Parameters
string
Target vocabularies to search within (comma-separated) Examples: SNOMED, SNOMED,ICD10CM, RXNORM,NDC
string
Clinical domains to focus the similarity search (comma-separated) Examples: Condition,Procedure, Drug,Device
string
Concept classes to include in similarity search (comma-separated) Examples: Clinical Finding,Procedure, Ingredient,Brand Name
number
default:"0.7"
Minimum similarity score threshold (0.0 to 1.0) Higher values = More strict similarity matching
integer
default:"20"
Number of similar concepts to return per page
integer
default:"1"
Page number (1-based indexing)
boolean
default:"true"
Include similarity scores in the response
boolean
default:"false"
Include explanations for why concepts are considered similar
string
Filter to standard concepts only Options: S (standard), C (classification), NULL (non-standard)
boolean
default:"true"
Include invalid/deprecated concepts in similarity search
string
default:"hybrid"
Similarity algorithm to use Options: semantic (embedding-based), lexical (text-based), hybrid (combined)
boolean
default:"true"
Exclude the source concept from results
Response
boolean
Indicates if the request was successful
object
Error information (present only on error responses)
Show error
string
Error code identifier
string
Human-readable error message
object
Additional error details or context
object
Contains the similar concepts search results
Show data
object
Information about the source concept used for similarity search
Show source_concept
integer
OMOP concept ID of the source concept
string
Primary name of the source concept
string
Vocabulary-specific code
string
Source vocabulary identifier
string
Clinical domain classification
string
Concept class identifier
string|null
Standard concept designation (‘S’, ‘C’, or null for non-standard)
array
Array of concepts similar to the source concept
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
Reason for similarity match (if requested)
string|null
Standard concept designation (‘S’, ‘C’, or null for non-standard)
array
Alternative names for the concept
object
Information about the similarity search
Show search_metadata
integer
The concept ID used as the similarity source
string
Similarity algorithm applied
number
Minimum similarity threshold applied
integer
Total concepts evaluated for similarity
integer
Number of similar concepts returned
integer
Search processing time in milliseconds
curl -X GET "https://api.omophub.com/v1/search/similar/44054006?vocabulary_ids=SNOMED,ICD10CM&similarity_threshold=0.8&page_size=10&include_scores=true&include_explanations=true" \ -H "Authorization: Bearer YOUR_API_KEY"
import { OMOPHub } from '@omophub/omophub-node';const client = new OMOPHub();const { data } = await client.search.similar({ conceptId: 44054006, vocabularyIds: ['SNOMED', 'ICD10CM'], similarityThreshold: 0.8, pageSize: 10, includeScores: true, includeExplanations: true,});
{ "success": false, "error": { "code": "CONCEPT_NOT_FOUND", "message": "The specified concept ID does not exist", "details": { "concept_id": 99999999, "suggestion": "Verify the concept ID exists in the OMOP vocabularies" } }}
Usage Examples
Basic Similarity by ID
Find concepts similar to Type 2 Diabetes (concept ID 44054006):
GET /v1/search/similar/44054006?page_size=5&similarity_threshold=0.7
Cross-Vocabulary Similarity
Find similar concepts across multiple vocabularies:
GET /v1/search/similar/1308216?vocabulary_ids=SNOMED,ICD10CM,LOINC&domain_ids=Condition,Measurement&include_explanations=true
Drug Similarity Search
Find similar pharmaceutical concepts:
GET /v1/search/similar/1503297?vocabulary_ids=RXNORM&domain_ids=Drug&concept_class_ids=Ingredient,Clinical Drug&similarity_threshold=0.8
High-Precision Similarity
Get only highly similar concepts with detailed scoring:
GET /v1/search/similar/443390?similarity_threshold=0.9&page_size=10&include_scores=true&algorithm=semantic
Performance Notes
Concept-to-concept similarity is typically faster than query-based similarity
Hybrid algorithm provides best balance of accuracy and performance
Semantic algorithm is most accurate but computationally intensive
Caching is applied for frequently requested concept similarities