{"uid":"cap_qJyyZDwIPp-IHyOYEv1ay","slug":"magent-medical-code-search-rxnorm-icd-10-cm-loinc-d682c4a7","name":"magent Medical Code Search (RxNorm / ICD-10-CM / LOINC)","description":"Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.","url":"https://api.magentlab.com/api/codes/search?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["query"],"properties":{"tty":{"enum":["SCD","SBD","IN","PIN","MIN","BN","GPCK","BPCK","DF","SCDC","SBDC","SCDF","SBDF","CM","LN"],"type":"string","description":"Restrict term type. Pharmacy orders typically want SCD. ICD-10-CM is CM; LOINC is LN."},"limit":{"type":"integer","description":"Number of ranked matches to return (1-25). Default 5."},"query":{"type":"string","description":"Natural-language drug, diagnosis, or lab description. Max 512 characters. Do not send patient names."},"system":{"enum":["rxnorm","icd10","loinc"],"type":"string","description":"Restrict to rxnorm, icd10 (ICD-10-CM), or loinc. Omit to search all."},"min_score":{"type":"integer","description":"Minimum rank score 0-100. Default 35."},"billable_only":{"type":"boolean","description":"ICD-10-CM: return only HIPAA billable codes, not headers. Default true."},"include_obsolete":{"type":"boolean","description":"Include deprecated/obsolete codes. Default false."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/codes/search","count":2,"items":[{"query":"Tylenol 500mg","system":"rxnorm","catalog":{"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","systems":["rxnorm","icd10","loinc"],"version":"2026.08-wedge","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."},"matches":[{"tty":"SCD","code":"198440","score":95,"status":"current","system":"rxnorm","display":"acetaminophen 500 MG Oral Tablet","billable":null,"obsolete":false}],"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"},{"query":"Tylenol 500mg","system":"rxnorm","catalog":{"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","systems":["rxnorm","icd10","loinc"],"version":"2026.08-wedge","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."},"matches":[{"tty":"SCD","code":"198440","score":95,"status":"current","system":"rxnorm","display":"acetaminophen 500 MG Oral Tablet","billable":null,"obsolete":false}],"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"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AjW5Uh2d8jGxN8P64trgo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Maps a natural-language drug, diagnosis, or lab phrase to current RxNorm, ICD-10-CM, or LOINC codes without hallucinating billing or pharmacy codes.","exampleAgentPrompt":"Look up the RxNorm SCD code for 'metformin 500 mg oral tablet' — I need a verified pharmacy code, not a guess, so restrict to rxnorm and return the top 3 matches with scores above 50.","exampleUseCases":[{"title":"Prior auth ICD-10 code lookup","prompt":"I need the billable ICD-10-CM code for 'essential hypertension' for a prior authorization form — return only HIPAA billable codes and give me the top 5 matches."},{"title":"Pharmacy order RxNorm resolution","prompt":"What's the RxNorm clinical drug code (SCD) for 'atorvastatin 40mg tablet'? I need it for a pharmacy order and can't have an invented code — search rxnorm only."},{"title":"Lab order LOINC code lookup","prompt":"Find the LOINC code for 'hemoglobin A1c in blood' for a lab requisition — restrict to loinc, return up to 5 results, and only include current (non-obsolete) codes."}],"resultDescription":"A ranked list of up to 25 matching medical codes, each including the code identifier (RxNorm CUI, ICD-10-CM code, or LOINC number), human-readable term, code system, term type, and a numeric rank score indicating match confidence.","failureModes":["Query too vague returns low-score or zero results — caller should retry with more specific phrasing","Unsupported term type for the chosen system returns an empty or error response","Exceeding 512-character query limit returns a validation error","Specifying a tty (term type) incompatible with the selected system yields no results","min_score set too high prunes all candidates — lower threshold or broaden query"],"whenToPreferThis":"Choose this endpoint when an AI agent must resolve a human-readable clinical phrase to a verified, current RxNorm, ICD-10-CM, or LOINC code and must not hallucinate or invent a code. Prefer over general LLM completion for any billing, pharmacy, or lab workflow where code accuracy is legally or clinically required. Use the system and tty filters to scope results when the target code system is known.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:30:56.837Z","isFirstParty":false,"canonicalSlug":"magent-medical-code-search-rxnorm-icd-10-cm-loinc-d682c4a7"}