medical-terminologies-mcp 2.4.0 → 4.0.0

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.
Files changed (4) hide show
  1. package/NOTICE.md +15 -1
  2. package/README.md +28 -9
  3. package/dist/index.js +1308 -100
  4. package/package.json +2 -2
package/NOTICE.md CHANGED
@@ -107,7 +107,21 @@ MeSH content is a U.S. government work served under the
107
107
  free of charge. The NLM statement in section 5 applies to this channel as
108
108
  well; no endorsement by NLM is implied.
109
109
 
110
- ## 8. SNOMED CT (SNOMED International) — retired in 2.0.0
110
+ ## 8. ICF (World Health Organization)
111
+
112
+ ICF (International Classification of Functioning, Disability and Health)
113
+ content is licensed under the
114
+ [Creative Commons Attribution-NoDerivatives 3.0 IGO license (CC BY-ND 3.0 IGO)](https://creativecommons.org/licenses/by-nd/3.0/igo/),
115
+ per WHO's licensing of WHO Classifications
116
+ (https://www.who.int/about/policies/publishing/copyright, read 2026-11-23):
117
+ commercial and non-commercial use "provided there is no adaptation of the
118
+ codes and the work is appropriately cited".
119
+
120
+ - This server serves ICF codes and titles together with their URIs,
121
+ verbatim; non-English labels are WHO's own official translations.
122
+ - Served by the same WHO ICD-API, OAuth credentials and release as ICD-11.
123
+
124
+ ## 9. SNOMED CT (SNOMED International) — retired in 2.0.0
111
125
 
112
126
  Since 2.0.0 this server neither queries nor serves SNOMED CT content.
113
127
  Until 1.18.x the SNOMED tools were off by default and worked only against
package/README.md CHANGED
@@ -38,7 +38,7 @@ The answers come from authoritative sources (WHO, NLM, NIH, DataSUS) — real co
38
38
 
39
39
  ## Features
40
40
 
41
- - 33 tools: 31 terminology tools plus `search`/`fetch` for ChatGPT Deep Research
41
+ - 37 tools: 35 terminology tools plus `search`/`fetch` for ChatGPT Deep Research
42
42
  - 3 MCP **Prompts** that orchestrate tool calls into named workflows (`find-medical-code`, `drug-info`, `cid10-portuguese-lookup`) — clients render these as one-click user actions
43
43
  - 4 MCP **Resources** for in-process reference content (`info://server`, `info://cid10/chapters`, `info://licenses`, `info://stats`) — sub-millisecond reads (except `info://stats` which round-trips to the StatsCounter Durable Object on the hosted endpoint)
44
44
  - Multi-terminology support in a single server
@@ -110,7 +110,7 @@ Or install via Smithery, which proxies the same endpoint through their gateway:
110
110
  npx -y smithery mcp add sidneybissoli/medical-terminologies-mcp
111
111
  ```
112
112
 
113
- The hosted instance has WHO credentials configured, so all 33 tools work without any setup on your side. For your own deployment (e.g. corporate network, different region, custom WHO credentials), see the [Installation](#installation) and [Hosted on Cloudflare Workers](#hosted-on-cloudflare-workers-primary) sections below.
113
+ The hosted instance has WHO credentials configured, so all 37 tools work without any setup on your side. For your own deployment (e.g. corporate network, different region, custom WHO credentials), see the [Installation](#installation) and [Hosted on Cloudflare Workers](#hosted-on-cloudflare-workers-primary) sections below.
114
114
 
115
115
  ## Installation
116
116
 
@@ -221,7 +221,7 @@ After your Worker is live, register the URL on Smithery:
221
221
  2. Pick the **URL** submission path (Smithery deprecated container hosting in 2024 — URL is the supported flow now).
222
222
  3. Paste `https://<your-worker>.workers.dev/mcp`. Smithery's gateway scans for compliance and proxies traffic.
223
223
 
224
- ## Available Tools (33)
224
+ ## Available Tools (37)
225
225
 
226
226
  ### Official Portuguese (pt-BR) content
227
227
 
@@ -229,6 +229,7 @@ The server never machine-translates terminology content — but several sources
229
229
 
230
230
  - **CID-10 is natively Portuguese**: `cid10_search` / `cid10_lookup` / `cid10_chapter(s)` serve the DataSUS V2008 dataset (the CID-10 the Brazilian SUS uses operationally).
231
231
  - **ICD-11 in official Portuguese**: pass `language: "pt"` to `icd11_search` / `icd11_lookup` to search and read WHO's official pt-BR linearization labels.
232
+ - **ICF (CIF) in official Portuguese**: pass `language: "pt"` to `icf_search` / `icf_lookup` ("andar" → d450 Andar).
232
233
  - **MeSH**: pass `language: "pt"` to `mesh_search` / `mesh_descriptor` to request NLM's official translations where they exist.
233
234
 
234
235
  If a source has no official translation for an entry, you get the source language back — never a machine translation.
@@ -237,12 +238,21 @@ If a source has no official translation for an entry, you get the source languag
237
238
 
238
239
  | Tool | Description | Example |
239
240
  |------|-------------|---------|
240
- | `icd11_search` | Search ICD-11 by term | `query: "diabetes mellitus"` |
241
+ | `icd11_search` | Search ICD-11 by term; `within` bounds it to chapters, blocks or codes (WHO subtree filter) | `query: "depression", within: ["06"]` |
241
242
  | `icd11_lookup` | Get entity details by code/URI | `code: "5A11"` |
242
243
  | `icd11_hierarchy` | Navigate parent/child relationships | `code: "5A11"` |
243
244
  | `icd11_chapters` | List all ICD-11 chapters | - |
244
245
  | `icd11_postcoordination` | Get postcoordination axes | `code: "5A11"` |
245
246
 
247
+ ### ICF Tools (2)
248
+
249
+ WHO International Classification of Functioning, Disability and Health: body functions (b), body structures (s), activities and participation (d), environmental factors (e). Same WHO API, credential and release as ICD-11.
250
+
251
+ | Tool | Description | Example |
252
+ |------|-------------|---------|
253
+ | `icf_search` | Search ICF by term (functioning, activity, environmental factor); `within` bounds it to categories | `query: "walking", within: ["d450"]` |
254
+ | `icf_lookup` | Get category details by ICF code/URI: definition, inclusions, exclusions, component | `code: "d450"` |
255
+
246
256
  ### LOINC Tools (4)
247
257
 
248
258
  | Tool | Description | Example |
@@ -271,14 +281,16 @@ If a source has no official translation for an entry, you get the source languag
271
281
  | `mesh_tree` | Get tree hierarchy location | `mesh_id: "D006973"` |
272
282
  | `mesh_qualifiers` | Get allowed qualifiers | `mesh_id: "D006973"` |
273
283
 
274
- ### Crosswalk Tools (4)
284
+ ### Crosswalk Tools (5)
275
285
 
276
286
  | Tool | Description | Example |
277
287
  |------|-------------|---------|
278
288
  | `map_icd10_to_icd11` | Authoritative ICD-10 → ICD-11 mapping via bundled WHO transition tables; returns primary code + chapter + URIs and any WHO-documented alternatives | `icd10_code: "E11"` |
279
- | `validate_codes` | Batch-validate up to 50 codes across ICD-11, LOINC, RxNorm, MeSH, ATC, CID-10; returns per-code valid/invalid + display name | `codes: [{terminology:"icd11",code:"5A11"}, …]` |
280
- | `find_equivalent` | Ranked unified search across terminologies: server-computed `match_score`/`rank` per candidate plus cross-terminology `groups` of lexically identical titles | `term: "diabetes"` |
281
- | `harmonize_terms` | Batch-map up to 50 free-text terms to standard codes: diagnosis → ICD-11, drug → RxNorm (+ ATC classes), lab → LOINC. Per term: ranked candidates with `match_score` and `match_type` (`exact` / `strong` / `needs_review`), one provenance block per source. The term-first companion of `validate_codes` | `terms: [{term:"type 2 diabetes",domain:"diagnosis"}, {term:"metformin",domain:"drug"}]` |
289
+ | `validate_codes` | Batch-validate up to 50 codes across ICD-11, ICF, LOINC, RxNorm, MeSH, ATC, CID-10; returns per-code valid/invalid + display name, and a FHIR `Coding` (system, code, display, version) for each confirmed code | `codes: [{terminology:"icd11",code:"5A11"}, …]` |
290
+ | `find_equivalent` | Ranked unified search across ICD-11, LOINC, RxNorm, MeSH and ICF: server-computed `match_score`/`rank` per candidate plus cross-terminology `groups` of lexically identical titles | `term: "diabetes"` |
291
+ | `harmonize_terms` | Batch-map up to 50 free-text terms to standard codes: diagnosis → ICD-11, drug → RxNorm (+ ATC classes), lab → LOINC. Per term: ranked candidates with `match_score` and `match_type` (`exact` / `strong` / `needs_review`), a FHIR `Coding` per candidate, one provenance block per source. The term-first companion of `validate_codes` | `terms: [{term:"type 2 diabetes",domain:"diagnosis"}, {term:"metformin",domain:"drug"}]` |
292
+ | `match_value_set` | Pick the best code for each free-text term FROM A VALUE SET YOU SEND (up to 100 codes, any terminology): members confirmed at the source, ranked with `match_score`/`match_type`, each with its FHIR `coding` | `terms: ["walking"], value_set: [{code:"d450",terminology:"icf"}, …]` |
293
+ | `compose_functioning` | Code ONE functional concept in its roles: ICF activity (with the ICD-11 chapter V entity the WHO ties to it, e.g. d450 → VW13), LOINC measure and ICD-11 condition. The ICF → ICD-11 link is read from the WHO; the rest are lexical suggestions to review | `term: "walking speed"` |
282
294
 
283
295
  ### ATC Tools (3)
284
296
 
@@ -296,7 +308,7 @@ Brazilian Portuguese translation of ICD-10 (DataSUS V2008). Bundled as a static
296
308
 
297
309
  | Tool | Description | Example |
298
310
  |------|-------------|---------|
299
- | `cid10_search` | Portuguese text search (diacritic-insensitive, AND between words; everyday words resolved to CID-10 wording, and the response says so) | `query: "câncer de mama"` |
311
+ | `cid10_search` | Portuguese text search (diacritic-insensitive, AND between words; everyday words resolved to CID-10 wording, and the response says so); `within` bounds it to chapters, ranges or codes | `query: "infecção", within: ["N30-N39"]` |
300
312
  | `cid10_lookup` | Code → official Portuguese name | `code: "I21"` or `"A00.1"` |
301
313
  | `cid10_chapters` | List the 22 CID-10 chapters | - |
302
314
  | `cid10_chapter` | Chapter detail with constituent groups | `num: 9` |
@@ -439,6 +451,13 @@ ICD-11 content is provided under the [Creative Commons Attribution-NoDerivatives
439
451
  - WHO may terminate the license at any time by notice (§4.7)
440
452
  - API access requires registration at https://icd.who.int/icdapi
441
453
 
454
+ ### ICF (WHO)
455
+
456
+ ICF content is provided under the [Creative Commons Attribution-NoDerivatives 3.0 IGO license (CC BY-ND 3.0 IGO)](https://creativecommons.org/licenses/by-nd/3.0/igo/), per WHO's [licensing of WHO Classifications](https://www.who.int/about/policies/publishing/copyright): commercial and non-commercial use, provided there is no adaptation of the codes and the work is appropriately cited.
457
+
458
+ - This server serves ICF codes and titles together with their URIs, verbatim; non-English labels are WHO's own official translations
459
+ - Served by the same WHO ICD-API and credentials as ICD-11
460
+
442
461
  ### WHO ICD-10 → ICD-11 transition tables (bundled)
443
462
 
444
463
  Format conversion (TSV → JSON, content unaltered) of the tables WHO publishes within the ICD-11 release. © World Health Organization, under the ICD-11 Terms of Use — not under this project's MIT license. WHO's guidance: the tables show correspondence between revisions and *"are not intended for directly converting data from one revision to the other."*