{"uid":"cap_UjLx74jvWd4qTUD7IqAVJ","slug":"rapid-score-calculator-for-pleural-infection-rahman-2014-28d34ecb","name":"RAPID Score Calculator for Pleural Infection (Rahman 2014)","description":"Rahman 2014 RAPID score for pleural infection: urea (<5=0, 5-8=1, >8=2 mmol/L), age (<50=0, 50-70=1, >70=2), non-purulent fluid 1, hospital-acquired 1, albumin <27 g/L 1; total 0-7 with low/medium/high bands. Deterministic published arithmetic with citation; not a drain or surgery decision and not Light's criteria.","url":"https://api.magentlab.com/api/calc/rapid","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","pleural_purulent","hospital_acquired"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). <50 scores 0; 50-70 inclusive scores 1; >70 scores 2."},"bun_mg_dl":{"type":"number","description":"BUN in mg/dL (3-140). Converted as urea_mmol_l = bun_mg_dl / 2.8."},"albumin_g_l":{"type":"number","description":"Serum albumin in g/L (10-60). Provide this or albumin_g_dl, not both. ≥27 scores 0; <27 scores 1."},"urea_mmol_l":{"type":"number","description":"Serum urea in mmol/L (1-50). Provide this or bun_mg_dl, not both. <5 scores 0; 5.0-8.0 inclusive scores 1; >8 scores 2 (Rahman 2014)."},"albumin_g_dl":{"type":"number","description":"Serum albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both."},"pleural_purulent":{"type":"boolean","description":"Purulent pleural fluid (Rahman 2014). true scores 0; false (non-purulent) scores 1. magent does not inspect the fluid."},"hospital_acquired":{"type":"boolean","description":"Hospital-acquired pleural infection (Rahman 2014). true scores 1; false (community) scores 0."}}}},"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_K6bp50euIOxAAh092-MRt","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 Rahman 2014 RAPID score for pleural infection prognosis using urea, age, fluid character, infection origin, and albumin to stratify patients into low/medium/high risk bands.","exampleAgentPrompt":"Calculate the RAPID score for a 65-year-old patient with a serum urea of 7.2 mmol/L, albumin of 24 g/L, non-purulent pleural fluid, and a hospital-acquired pleural infection.","exampleUseCases":[{"title":"ICU triage for pleural empyema","prompt":"I have a 72-year-old ICU patient with hospital-acquired pleural infection, urea of 9.5 mmol/L, albumin of 22 g/L, and non-purulent fluid — what's their RAPID score and risk band?"},{"title":"Community pleural infection risk in ED","prompt":"Can you calculate the RAPID score for a 45-year-old ED patient with community-acquired pleural infection, urea 4.1 mmol/L, albumin 31 g/L, and purulent pleural fluid?"},{"title":"Prognostic scoring with BUN lab value","prompt":"My lab reports BUN as 28 mg/dL rather than urea — for a 58-year-old with hospital-acquired infection, non-purulent fluid, and albumin of 26 g/L, what is the RAPID score?"}],"resultDescription":"Returns the total RAPID score (integer 0–7), the corresponding risk band (low, medium, or high), and a per-component breakdown showing points contributed by urea, age, fluid purulence, infection origin, and albumin.","failureModes":["Missing required parameters (age, pleural_purulent, hospital_acquired) returns a 400 error","Providing both urea_mmol_l and bun_mg_dl simultaneously returns a validation error","Providing both albumin_g_l and albumin_g_dl simultaneously returns a validation error","Out-of-range values (e.g. age <18 or >120, urea >50) return a validation error","No albumin parameter provided may return an error or default to 0 points depending on server behavior"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, citation-backed RAPID score (Rahman 2014) for pleural infection risk stratification. It is not a substitute for Light's criteria, does not make drain or surgery recommendations, and is distinct from other pleural scoring tools. Prefer it when you have the five required clinical variables and need a validated 0–7 score with low/medium/high banding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:54:53.440Z","isFirstParty":false}