{
  "x402Version": 2,
  "id": 38753,
  "slug": "38753",
  "resource": "https://api.magentlab.com/api/codes/search",
  "description": "Map a natural-language drug, diagnosis, or lab phrase to a current RxNorm, ICD-10-CM, or LOINC code. Use when an agent must not hallucinate or invent a billing/pharmacy code.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    },
    {
      "scheme": "batch-settlement",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "method": "GET",
          "queryParams": {
            "billable_only": true,
            "include_obsolete": false,
            "limit": 5,
            "min_score": 35,
            "query": "Tylenol 500mg",
            "system": "rxnorm",
            "tty": "SCD"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "catalog": {
              "coverage": "seed",
              "coverage_meaning": "Compiled seed catalog. Production coverage=full is gold-gated Current Prescribable RxNorm + ICD-10-CM + LOINC, not complete monthly RxNorm or UMLS.",
              "notes": "ICD-10 entries are ICD-10-CM (US claims), not WHO ICD-10. RxNorm codes are RxCUI. LOINC codes are official LOINC numerics. coverage=full never means complete UMLS.",
              "source": "magent curated seed",
              "stale": false,
              "systems": [
                "rxnorm",
                "icd10",
                "loinc"
              ],
              "verified_at": null,
              "version": "2026.08-wedge"
            },
            "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
            "match_count": 1,
            "match_quality": "high",
            "matches": [
              {
                "billable": null,
                "code": "198440",
                "display": "acetaminophen 500 MG Oral Tablet",
                "obsolete": false,
                "score": 95,
                "status": "current",
                "system": "rxnorm",
                "tty": "SCD"
              }
            ],
            "query": "Tylenol 500mg",
            "system": "rxnorm"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "billable_only": {
                    "description": "ICD-10-CM: return only HIPAA billable codes, not headers. Default true.",
                    "type": "boolean"
                  },
                  "include_obsolete": {
                    "description": "Include deprecated/obsolete codes. Default false.",
                    "type": "boolean"
                  },
                  "limit": {
                    "description": "Number of ranked matches to return (1-25). Default 5.",
                    "type": "integer"
                  },
                  "min_score": {
                    "description": "Minimum rank score 0-100. Default 35.",
                    "type": "integer"
                  },
                  "query": {
                    "description": "Natural-language drug, diagnosis, or lab description. Max 512 characters. Do not send patient names.",
                    "type": "string"
                  },
                  "system": {
                    "description": "Restrict to rxnorm, icd10 (ICD-10-CM), or loinc. Omit to search all.",
                    "enum": [
                      "rxnorm",
                      "icd10",
                      "loinc"
                    ],
                    "type": "string"
                  },
                  "tty": {
                    "description": "Restrict term type. Pharmacy orders typically want SCD. ICD-10-CM is CM; LOINC is LN.",
                    "enum": [
                      "SCD",
                      "SBD",
                      "IN",
                      "PIN",
                      "MIN",
                      "BN",
                      "GPCK",
                      "BPCK",
                      "DF",
                      "SCDC",
                      "SBDC",
                      "SCDF",
                      "SBDF",
                      "CM",
                      "LN"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "query"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "rxnorm",
    "icd10",
    "icd10cm",
    "loinc",
    "codes",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T15:05:37.331Z",
  "quality": {
    "calls30d": 8,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-12T15:05:37.212Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "method": "GET",
            "queryParams": {
              "billable_only": true,
              "include_obsolete": false,
              "limit": 5,
              "min_score": 35,
              "query": "Tylenol 500mg",
              "system": "rxnorm",
              "tty": "SCD"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "catalog": {
                "coverage": "seed",
                "coverage_meaning": "Compiled seed catalog. Production coverage=full is gold-gated Current Prescribable RxNorm + ICD-10-CM + LOINC, not complete monthly RxNorm or UMLS.",
                "notes": "ICD-10 entries are ICD-10-CM (US claims), not WHO ICD-10. RxNorm codes are RxCUI. LOINC codes are official LOINC numerics. coverage=full never means complete UMLS.",
                "source": "magent curated seed",
                "stale": false,
                "systems": [
                  "rxnorm",
                  "icd10",
                  "loinc"
                ],
                "verified_at": null,
                "version": "2026.08-wedge"
              },
              "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
              "match_count": 1,
              "match_quality": "high",
              "matches": [
                {
                  "billable": null,
                  "code": "198440",
                  "display": "acetaminophen 500 MG Oral Tablet",
                  "obsolete": false,
                  "score": 95,
                  "status": "current",
                  "system": "rxnorm",
                  "tty": "SCD"
                }
              ],
              "query": "Tylenol 500mg",
              "system": "rxnorm"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "billable_only": {
                      "description": "ICD-10-CM: return only HIPAA billable codes, not headers. Default true.",
                      "type": "boolean"
                    },
                    "include_obsolete": {
                      "description": "Include deprecated/obsolete codes. Default false.",
                      "type": "boolean"
                    },
                    "limit": {
                      "description": "Number of ranked matches to return (1-25). Default 5.",
                      "type": "integer"
                    },
                    "min_score": {
                      "description": "Minimum rank score 0-100. Default 35.",
                      "type": "integer"
                    },
                    "query": {
                      "description": "Natural-language drug, diagnosis, or lab description. Max 512 characters. Do not send patient names.",
                      "type": "string"
                    },
                    "system": {
                      "description": "Restrict to rxnorm, icd10 (ICD-10-CM), or loinc. Omit to search all.",
                      "enum": [
                        "rxnorm",
                        "icd10",
                        "loinc"
                      ],
                      "type": "string"
                    },
                    "tty": {
                      "description": "Restrict term type. Pharmacy orders typically want SCD. ICD-10-CM is CM; LOINC is LN.",
                      "enum": [
                        "SCD",
                        "SBD",
                        "IN",
                        "PIN",
                        "MIN",
                        "BN",
                        "GPCK",
                        "BPCK",
                        "DF",
                        "SCDC",
                        "SBDC",
                        "SCDF",
                        "SBDF",
                        "CM",
                        "LN"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "query"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}