{"uid":"cap_BY9dcnX8WTXQnFuU-tsO9","slug":"piro-score-for-icu-community-acquired-pneumonia-rello-2009-377f938a","name":"PIRO Score for ICU Community-Acquired Pneumonia (Rello 2009)","description":"Rello 2009 PIRO score for ICU community-acquired pneumonia: comorbidities (COPD or immunocompromise count as one feature) + age >70 + multilobar opacities + shock + severe hypoxemia + acute renal failure + bacteremia + ARDS. Each 1; max 8. Bands low 0-2, mild 3, high 4, very high 5-8. Not CURB-65, PSI, or APACHE II. magent does not interpret a chest radiograph. Not a diagnosis.","url":"https://api.magentlab.com/api/calc/piro_cap","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":["age","copd","immunocompromise","multilobar_opacities","shock","severe_hypoxemia","acute_renal_failure","bacteremia","ards"],"properties":{"age":{"type":"integer","description":"Age in years (integer 18-120). Age >70 scores 1 (Rello 2009). Age 70 does not score. magent does not compute age from a date of birth."},"ards":{"type":"boolean","description":"Acute respiratory distress syndrome as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not diagnose ARDS."},"copd":{"type":"boolean","description":"Chronic obstructive pulmonary disease as assigned by the caller (Rello 2009 comorbidity feature with immunocompromise). true or false. COPD or immunocompromise scores 1 together, not 1 each. magent does not diagnose COPD."},"shock":{"type":"boolean","description":"Shock as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not measure blood pressure or diagnose shock."},"bacteremia":{"type":"boolean","description":"Bacteremia as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not interpret cultures."},"immunocompromise":{"type":"boolean","description":"Immunocompromise as assigned by the caller (Rello 2009 comorbidity feature with COPD). true or false. COPD or immunocompromise scores 1 together, not 1 each. magent does not assign immune status."},"severe_hypoxemia":{"type":"boolean","description":"Severe hypoxemia as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not measure PaO2 or FiO2."},"acute_renal_failure":{"type":"boolean","description":"Acute renal failure as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not assay creatinine."},"multilobar_opacities":{"type":"boolean","description":"Multilobar opacities on chest radiograph as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not interpret a chest radiograph."}}}},"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_JkUh-z1g8JRPCYpMAtNYV","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 Rello 2009 PIRO score (0–8) for ICU community-acquired pneumonia severity from caller-supplied clinical features, returning a numeric score and risk band.","exampleAgentPrompt":"Calculate the Rello 2009 PIRO score for a 74-year-old ICU patient with community-acquired pneumonia who has COPD, no immunocompromise, multilobar opacities on chest X-ray, no shock, severe hypoxemia, no acute renal failure, no bacteremia, and no ARDS.","exampleUseCases":[{"title":"ICU triage for CAP severity","prompt":"I have a 78-year-old CAP patient in the ICU — they have COPD, no immunocompromise, multilobar opacities, shock, severe hypoxemia, no acute renal failure, bacteremia, and ARDS. What's their PIRO score and risk band?"},{"title":"Comparing CAP patients by severity","prompt":"Score two ICU pneumonia patients using the Rello PIRO criteria: first is a 65-year-old with immunocompromise and severe hypoxemia only; second is an 80-year-old with COPD, multilobar opacities, shock, and ARDS. Which has the higher risk band?"},{"title":"Documenting severity for ICU handoff","prompt":"For our ICU handoff note, compute the PIRO CAP score for a 71-year-old without COPD or immunocompromise, no multilobar opacities, no shock, no severe hypoxemia, no renal failure, no bacteremia, and no ARDS."}],"resultDescription":"Returns a numeric PIRO score between 0 and 8 and a corresponding risk band label: low (0–2), mild (3), high (4), or very high (5–8), computed strictly from the eight caller-supplied binary clinical features and patient age.","failureModes":["Missing required query parameters (age, copd, immunocompromise, multilobar_opacities, shock, severe_hypoxemia, acute_renal_failure, bacteremia, ards) returns an error","Age outside valid range (18–120) returns a validation error","Non-boolean values for binary fields return a schema validation error","Payment not provided or insufficient USDC results in HTTP 402 response"],"whenToPreferThis":"Use this endpoint when you need a validated, reproducible implementation of the Rello 2009 PIRO score specifically for ICU community-acquired pneumonia, and you have already determined all eight clinical features. Prefer this over CURB-65, PSI, or APACHE II calculators when the clinical context is ICU-admitted CAP and PIRO stratification is required. Do not use if you need chest radiograph interpretation, culture analysis, or clinical diagnosis — callers must supply all features pre-assessed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:16:09.109Z","isFirstParty":false}