curl -X GET "https://api.omophub.com/v1/concepts/201826/relations/any" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "success": true, "data": { "concept_id": 201826, "has_relations": true, "relation_summary": { "total_count": 15, "outbound_count": 8, "inbound_count": 7, "relationship_types": ["Maps to", "Is a", "Has finding site", "May be a"], "connected_vocabularies": ["SNOMED", "ICD10CM", "ICD9CM"], "has_standard_mappings": true }, "checks_performed": { "included_relationship_types": ["all"], "included_vocabularies": ["all"], "included_reverse_relations": true, "included_invalid_relations": false } }, "meta": { "request_id": "req_check_relations_123", "timestamp": "2024-12-22T10:00:00Z", "vocab_release": "2025.2" } }
Check if a concept has any relationships without returning the full relationship data
Show data
Show relation_summary
Show checks_performed
Show meta
curl -G "https://api.omophub.com/v1/concepts/201826/relations/any" \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "relationship_types=Maps to"
curl -X GET "https://api.omophub.com/v1/concepts/201826/relations/any?vocabulary_ids=ICD10CM,ICD9CM" \ -H "Authorization: Bearer YOUR_API_KEY"
const conceptIds = [201826, 4182210, 313217]; const connectedConcepts = []; for (const id of conceptIds) { const response = await fetch(`/v1/concepts/${id}/relations/any`); const result = await response.json(); const data = result.data; if (data.has_relations && data.relation_summary.has_standard_mappings) { connectedConcepts.push({ concept_id: id, relation_count: data.relation_summary.total_count }); } }
has_standard_mappings
Was this page helpful?