{"uid":"cap_vt-UlK4_j5LI_4JR-Y4yv","slug":"magent-irae-pneumonitis-grader-brahmer-2018-c4f2dc7c","name":"magent irAE Pneumonitis Grader (Brahmer 2018)","description":"Brahmer 2018 ASCO Table 3.1 irAE pneumonitis. First-match: G4 life-threatening respiratory compromise; else G3 hospitalization, oxygen, limiting self-care, or all lobes/>50%; else G2 symptomatic, >1 lobe, 25-50% parenchyma, or limiting instrumental ADL; else G1. ICPi: hold_if_radiographic_progression (G1), hold (G2), permanently_discontinue (G3-4). Caller-assigned flags. magent does not read CT or pulse oximetry. Not SITC 2021, not a CTCAE instrument, not a diagnosis, not a steroid dose.","url":"https://api.magentlab.com/api/calc/irae_pneumonitis","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":["life_threatening_respiratory","hospitalization_required","oxygen_indicated","limiting_self_care","all_lobes_or_gt_50_pct","symptomatic","more_than_one_lobe","extent_25_to_50_pct","limiting_instrumental_adl"],"properties":{"symptomatic":{"type":"boolean","description":"Symptomatic as assigned by the caller (Brahmer 2018 Table 3.1 grade 2). true or false. magent does not examine the patient."},"oxygen_indicated":{"type":"boolean","description":"Oxygen indicated as assigned by the caller (Brahmer 2018 Table 3.1 grade 3). true or false. magent does not read pulse oximetry or start oxygen."},"limiting_self_care":{"type":"boolean","description":"Limiting self-care ADL as assigned by the caller (Brahmer 2018 Table 3.1 grade 3). true or false. magent does not assess ADL."},"more_than_one_lobe":{"type":"boolean","description":"Involves more than one lobe as assigned by the caller (Brahmer 2018 Table 3.1 grade 2). true or false. magent does not read CT."},"extent_25_to_50_pct":{"type":"boolean","description":"Involves 25%–50% of lung parenchyma as assigned by the caller (Brahmer 2018 Table 3.1 grade 2). true or false. magent does not read CT."},"all_lobes_or_gt_50_pct":{"type":"boolean","description":"Involves all lung lobes or >50% of lung parenchyma as assigned by the caller (Brahmer 2018 Table 3.1 grade 3). true or false. magent does not read CT."},"hospitalization_required":{"type":"boolean","description":"Hospitalization required as assigned by the caller (Brahmer 2018 Table 3.1 grade 3). true or false. magent does not decide admission."},"limiting_instrumental_adl":{"type":"boolean","description":"Limiting instrumental ADL as assigned by the caller (Brahmer 2018 Table 3.1 grade 2). true or false. magent does not assess ADL."},"life_threatening_respiratory":{"type":"boolean","description":"Life-threatening respiratory compromise with urgent intervention indicated (intubation) as assigned by the caller (Brahmer 2018 Table 3.1 grade 4). true or false. When true, grade is 4 regardless of other flags. magent does not examine the patient or set a ventilator."}}}},"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_1fzAq_Mbx-Q1UIcsBsEeq","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":"Classifies immune checkpoint inhibitor-related pneumonitis severity into CTCAE G1–G4 grades per Brahmer 2018 ASCO Table 3.1 and returns the corresponding ICPi management recommendation (hold or permanently discontinue).","exampleAgentPrompt":"My patient on immunotherapy is symptomatic from pneumonitis involving more than one lobe and about 30% of parenchyma, limiting instrumental ADLs but not requiring hospitalization or oxygen — can you grade this using Brahmer 2018 and tell me whether to hold or stop the checkpoint inhibitor?","exampleUseCases":[{"title":"Oncology clinical triage for irAE","prompt":"I have a cancer patient on pembrolizumab who is symptomatic with pneumonitis affecting two lobes and 30% of parenchyma, limiting instrumental ADLs but not needing hospitalization or oxygen — run Brahmer 2018 Table 3.1 pneumonitis grading and tell me the ICPi recommendation."},{"title":"Automated irAE flagging in EMR pipeline","prompt":"Flag this immunotherapy patient: they have life-threatening respiratory compromise from suspected checkpoint inhibitor pneumonitis involving all lobes — grade the pneumonitis and give me the management recommendation."},{"title":"Borderline G1 radiographic-only case","prompt":"My patient on nivolumab has no symptoms, no hospitalization, no oxygen needs, no ADL limitations, and the pneumonitis looks confined to one lobe under 25% — apply Brahmer 2018 grading and tell me if I need to hold the checkpoint inhibitor."}],"resultDescription":"Returns the computed irAE pneumonitis severity grade (G1, G2, G3, or G4) based on Brahmer 2018 ASCO Table 3.1 first-match logic, along with the corresponding ICPi management recommendation: hold_if_radiographic_progression (G1), hold (G2), or permanently_discontinue (G3–G4). The endpoint does not perform diagnosis, read imaging, assess oxygen saturation, or prescribe steroids.","failureModes":["Missing required boolean query parameters returns a validation error","Ambiguous or missing flags may result in incorrect grade if caller-assigned inputs do not reflect clinical truth","Endpoint applies only Brahmer 2018 Table 3.1 logic — results differ from SITC 2021 or other irAE grading frameworks","Non-pneumonitis irAE types (colitis, hepatitis, etc.) are out of scope and will not return meaningful grades"],"whenToPreferThis":"Use this endpoint when you need to apply specifically the Brahmer 2018 ASCO pneumonitis grading algorithm (Table 3.1) to caller-assigned clinical flags for ICPi-related pneumonitis. Prefer this over manual lookup when building automated oncology workflows, irAE dashboards, or clinical decision-support pipelines. Do not use if you need SITC 2021 guidance, CTCAE scoring as an instrument, imaging interpretation, or steroid dosing recommendations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:24.872Z","isFirstParty":false}