SnoMed Mapping Service Test

Quick start: include <script src="SnoMed.js"></script> to load the SDK which exposes a global SnoMedMappingService object.

Two endpoints are available:

  • /api/healthtags/sno-med-mapping-service/get-concepts-by-tag-id
  • /api/healthtags/sno-med-mapping-service/get-concepts-by-tag-name

Example call:

SnoMedMappingService.GetConceptsByTagName("Antifungal medicines", console.log);

Default host: https://healthtags.buffa.ly



Results
No data yet …
Sample response
[
  { "ConceptID": 409794001, "PreferredTerm": "Antifungal agent resistant fungi" },
  { "ConceptID": 773126007, "PreferredTerm": "Application of topical antifungal agent to skin" },
  { "ConceptID": 292800009, "PreferredTerm": "Antifungal drug adverse reaction" },
  { "ConceptID": 410575005, "PreferredTerm": "Intravitreal antifungal drug injection" }
]
Calling without the helper
const host = "https://healthtags.buffa.ly";
const tagName = "Antifungal medicines";
const url = `${host}/api/healthtags/sno-med-mapping-service`
          + `/get-concepts-by-tag-name?tagName=${encodeURIComponent(tagName)}`;
const res = await fetch(url, { headers: { AuthToken: "YOUR_JWT" } });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const json = await res.json();