Link Entity
Links a single free-text medical entity to candidate codes from the requested ontology. The metadata field carries ontology-specific hints — it is strongly recommended for LOINC (a unit can change the linked code) and optional for medication. SNOMED CT and ICD-10-CM Comprehend do not use metadata.
About this endpoint
POST /med-link/nel/link links a single free-text medical entity to candidate
codes from the requested ontology. Pick the ontology and version from
List Registry.
Use the example selector above to see a request and response for each ontology.
The metadata field by ontology
metadata carries ontology-specific hints. It changes results for LOINC and
medication, and is ignored by SNOMED CT and ICD-10-CM Comprehend.
SNOMED CT — snomed
No metadata required. Send the symptom, finding or disorder as the query.
Each result’s metadata includes a semantic_tag (e.g. finding, disorder).
LOINC — loinc
metadata is strongly recommended — the lab test name alone is often
ambiguous, and a unit or specimen decides which LOINC code is correct.
Medication — medication
metadata is optional — it helps resolve ambiguous brand names. The score
field is null; read metadata.matching_breakdown and metadata.linking_requirements
on each result instead.
ICD-10-CM Comprehend — icd-10-cm (comprehend)
No metadata required. This version uses AWS Comprehend Medical, so it works
well on natural-language clinical text. The response includes a query_breakdown
with the detected entity, traits and attributes.
Reading the response
Authorizations
Bearer access token issued by the Eka authorization flow. See Authorization.
Body
Free-text medical entity to link.
1"chest pain"
Ontology name. One of: snomed, loinc, medication, icd-10-cm.
"snomed"
Ontology version. Fetch valid values from GET /med-link/registry/.
"20250401_extended"
Number of candidate results to return.
1 <= x <= 10Ontology-specific hints. Recommended for LOINC (unit, value, specimen, …) and optional for medication (form, generic_name, dose_unit, …). Ignored by SNOMED CT and ICD-10-CM Comprehend.
Optional request ID. Generated automatically if omitted.
Response
Candidate codes for the query, ranked by relevance.
The index that served the request.
How the query was parsed. Present for LOINC, medication and ICD-10-CM Comprehend; null for SNOMED CT.

