{"uid":"cap_xV5Y64hTIEwftxhdgfaa2","slug":"terrapon-2021-tdn-grade-calculator-49d3f73f","name":"Terrapon 2021 TDN Grade Calculator","description":"Terrapon 2021 Therapy-Disability-Neurology (TDN) grade. Caller assigns therapy t1-t5, modified Rankin 0-6 (6 is death), and new neurologic deficit. Overall grade is max(T, D, N); t5 or mRS 6 is always 5. D maps mRS 0-1→1, 2-3→2, 4→3, 5→4, 6→5; new deficit is N=2 else N=1. Not a diagnosis and not Clavien-Dindo alone. magent does not grade the event.","url":"https://api.magentlab.com/api/calc/tdn_grade","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":["therapy","disability_mrs","new_neurologic_deficit"],"properties":{"therapy":{"enum":["t1","t2","t3","t4","t5"],"type":"string","description":"Terrapon 2021 Therapy dimension as assigned by the caller. t1 no treatment or intervention beyond antiemetics, antipyretics, analgesics, diuretics, electrolytes, physiotherapy, or bedside wound opening (T=1). t2 pharmacologic treatment including blood transfusion or TPN (T=2). t3 invasive procedure, surgical, endoscopic, or radiologic (T=3). t4 life-threatening, ICU management (T=4). t5 death (T=5). magent does not grade the adverse event."},"disability_mrs":{"type":"integer","description":"Modified Rankin 0-6 as assigned by the caller, including death as 6. Maps to Disability D: 0-1→1, 2-3→2, 4→3, 5→4, 6→5. This is not van Swieten 1988 modified Rankin 0-5, which omits death. magent does not interview the patient."},"new_neurologic_deficit":{"type":"boolean","description":"New neurologic deficit as assigned by the caller (Terrapon 2021 Neurology dimension). true or false. false is N=1; true is N=2. magent does not examine the patient."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_fVkiq8GXxuRBolduc_96l","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":"Computes the Terrapon 2021 Therapy-Disability-Neurology (TDN) composite adverse-event grade from caller-assigned therapy tier, modified Rankin Scale, and new neurologic deficit flag.","exampleAgentPrompt":"Calculate the Terrapon 2021 TDN grade for a patient who received t2 pharmacologic treatment, has a modified Rankin score of 3, and has no new neurologic deficit.","exampleUseCases":[{"title":"Postoperative complication grading in neurosurgery","prompt":"Grade a complication after a craniotomy — the patient required ICU management (t4), has a new neurologic deficit, and their modified Rankin is now 4. What's their Terrapon TDN grade?"},{"title":"Benchmarking complication severity across a case series","prompt":"I have a patient whose adverse event was managed with an invasive radiologic procedure (t3), their mRS is 2, and there's no new neurologic deficit — what TDN grade does that give?"},{"title":"Mortality-level event classification","prompt":"The patient died — modified Rankin is 6, therapy was t5. What is the Terrapon 2021 TDN grade?"}],"resultDescription":"Returns the overall TDN grade as an integer from 1 to 5, computed as the maximum of the three sub-dimensions T (therapy), D (disability mapped from mRS), and N (neurologic deficit). Special rules ensure t5 or mRS 6 always yields grade 5.","failureModes":["Missing required query parameters (therapy, disability_mrs, or new_neurologic_deficit) returns a 4xx error","Invalid therapy enum value (not t1–t5) returns validation error","disability_mrs outside integer range 0–6 returns validation error","Network or upstream service unavailability returns 5xx","Payment not provided or insufficient returns 402"],"whenToPreferThis":"Use this endpoint when you need to standardize adverse event severity using the Terrapon 2021 TDN classification specifically — particularly for neurosurgical or neurologic procedural outcomes where the three-dimensional therapy/disability/neurology grading is required. Prefer over Clavien-Dindo when neurologic disability and new deficits must be captured separately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:21:16.723Z","isFirstParty":false}