Quick start: include <script src="//static.buffa.ly/js/JsonMethod.js?v=2"></script> (or your local JsonWS stub) and <script src="/JsonWS/HealthTags.SnoMedService.ashx.js"></script>, then instantiate the proxy with const snoMedService = new SnoMedServiceService();.
Concept helpers:
/api/healthtags/sno-med-service/get-concepts-by-tag-id/api/healthtags/sno-med-service/get-concepts-by-tag-nameExample call:
snoMedService.GetConceptsByTagName("Antifungal medicines", console.log);
Default host: https://healthtags.buffa.ly
[
{ "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" }
]
const host = "https://healthtags.buffa.ly";
const tagName = "Antifungal medicines";
const url = `${host}/api/healthtags/sno-med-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();