medical-terminologies-mcp 4.3.0 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ function unknownCursorError(message) {
|
|
|
30
30
|
var package_default = {
|
|
31
31
|
name: "medical-terminologies-mcp",
|
|
32
32
|
mcpName: "io.github.SidneyBissoli/medical-terminologies-mcp",
|
|
33
|
-
version: "4.3.
|
|
33
|
+
version: "4.3.2",
|
|
34
34
|
description: "Unified MCP server for seven medical terminologies (ICD-11, ICF, LOINC, RxNorm, MeSH, ATC, CID-10) with authoritative WHO ICD-10\u2192ICD-11 mapping. 37 tools, hosted endpoint available, MIT.",
|
|
35
35
|
author: "Sidney da Silva Pereira Bissoli",
|
|
36
36
|
license: "MIT",
|
|
@@ -4096,7 +4096,8 @@ var RxNormClient = class {
|
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
4098
|
}
|
|
4099
|
-
|
|
4099
|
+
const singleIngredient = ingredients.filter((i) => i.tty === "IN").length <= 1;
|
|
4100
|
+
return singleIngredient ? ingredients.filter((i) => i.tty !== "MIN") : ingredients;
|
|
4100
4101
|
},
|
|
4101
4102
|
DEFAULT_TTL.LOOKUP
|
|
4102
4103
|
);
|
|
@@ -4232,9 +4233,9 @@ var RxNormClient = class {
|
|
|
4232
4233
|
}
|
|
4233
4234
|
/**
|
|
4234
4235
|
* ATC classes of a concept, read from its active ingredient(s): the
|
|
4235
|
-
* ingredient itself (IN, MIN);
|
|
4236
|
-
* product, its multi-ingredient concept when it
|
|
4237
|
-
* ingredient. Only the rows RxClass files under that ingredient are kept —
|
|
4236
|
+
* ingredient itself (IN, MIN); for anything else (salt, component,
|
|
4237
|
+
* product, brand), its ingredient, or its multi-ingredient concept when it
|
|
4238
|
+
* has more than one ingredient. Only the rows RxClass files under that ingredient are kept —
|
|
4238
4239
|
* byRxcui on metformin also returns the 13 combinations that contain it.
|
|
4239
4240
|
*
|
|
4240
4241
|
* Replaces the name lookup for term harmonization: `byDrugName` answers
|
|
@@ -4254,7 +4255,7 @@ var RxNormClient = class {
|
|
|
4254
4255
|
const related = await this.getIngredients(rxcui);
|
|
4255
4256
|
const ins = related.filter((i) => i.tty === "IN").map((i) => i.rxcui);
|
|
4256
4257
|
const mins = related.filter((i) => i.tty === "MIN").map((i) => i.rxcui);
|
|
4257
|
-
basis =
|
|
4258
|
+
basis = ins.length > 1 && mins.length > 0 ? mins : ins;
|
|
4258
4259
|
}
|
|
4259
4260
|
const seen = /* @__PURE__ */ new Set();
|
|
4260
4261
|
const out = [];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "medical-terminologies-mcp",
|
|
3
3
|
"mcpName": "io.github.SidneyBissoli/medical-terminologies-mcp",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.2",
|
|
5
5
|
"description": "Unified MCP server for seven medical terminologies (ICD-11, ICF, LOINC, RxNorm, MeSH, ATC, CID-10) with authoritative WHO ICD-10→ICD-11 mapping. 37 tools, hosted endpoint available, MIT.",
|
|
6
6
|
"author": "Sidney da Silva Pereira Bissoli",
|
|
7
7
|
"license": "MIT",
|