You're viewing a demo portfolio

Join the waitlist
PRSM

medcode_map_codes

Active

Tool of io.github.cyanheads/medical-codes-mcp-server

declared in 0.2.0

Crosswalk a US medical code or drug across systems and within a hierarchy. Hierarchy directions: `parents` and `children` walk a code's prefix hierarchy one level per call — immediate parent/children only (depth-1); call iteratively for the full ancestor or descendant path (ICD-10-CM/HCPCS; ICD-10-PCS codes have no prefix parent). A resolvable code with no edge in the requested direction is a successful empty result with a notice, not an error. Drug directions (RxNorm): `name_to_rxcui` (drug name → RXCUI), `ndc_to_rxcui` and `rxcui_to_ndc` (NDC ↔ RXCUI; NDCs accepted hyphenated or 10/11-digit), `rxcui_to_ingredients` and `rxcui_to_brands` (RXCUI → ingredient/brand RXCUIs). Every result carries `source` provenance (which system or edge answered) so a chained call (e.g. into openfda with a resolved NDC) uses the right identifier.

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "from",
    "direction"
  ],
  "properties": {
    "from": {
      "type": "string",
      "minLength": 1,
      "description": "The source value: a code (for parents/children), a drug name, an NDC, or an RXCUI."
    },
    "system": {
      "enum": [
        "ICD10CM",
        "ICD10PCS",
        "HCPCS",
        "RXNORM"
      ],
      "type": "string",
      "description": "For parents/children, force the source code into this system. Omit to auto-detect."
    },
    "direction": {
      "enum": [
        "parents",
        "children",
        "name_to_rxcui",
        "ndc_to_rxcui",
        "rxcui_to_ndc",
        "rxcui_to_ingredients",
        "rxcui_to_brands"
      ],
      "type": "string",
      "description": "What to map to. parents/children return the immediate parent or children only (depth-1) — call iteratively to walk a full path; the rxcui/ndc/name directions are RxNorm drug crosswalks."
    }
  }
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

io.github.cyanheads/medical-codes-mcp-server

https://github.com/cyanheads/medical-codes-mcp-server

2/7 registries
View full server →
medcode_map_codes — io.github.cyanheads/medical-codes-mcp-server — PRSM MCP