{"uid":"cap_ctbQUY0DnELZV9uxG6Nf9","slug":"psi-port-pneumonia-severity-index-calculator-5a008629","name":"PSI/PORT Pneumonia Severity Index Calculator","description":"Fine 1997 Pneumonia Severity Index (PSI/PORT): Class I if age ≤50 and no neoplastic, liver, CHF, cerebrovascular, or renal disease, no AMS, HR <125, RR <30, SBP >=90, and temperature 35 to <40 C. Otherwise Table 2 points (age, or age-10 if female, plus comorbidity, vital-sign, and laboratory weights) map to classes II-V. Always returns the Table 2 total. Not a medical device and not a site-of-care decision.","url":"https://api.magentlab.com/api/calc/psi_port","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","sex","nursing_home","neoplastic","liver_disease","chf","cerebrovascular","renal_disease","altered_mental_status","heart_rate_bpm","respiratory_rate","systolic_mm_hg","temperature_c","arterial_ph","bun_mg_dl","sodium_mmol_l","glucose_mg_dl","hematocrit_percent","pao2_mm_hg","pleural_effusion"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Table 2: men add the age integer; women add age − 10. Step 1 Class I requires age ≤50 (Fine: 50 years of age or younger)."},"chf":{"type":"boolean","description":"Congestive heart failure as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +10 if true."},"sex":{"type":"string","description":"Sex (female or male). Women subtract 10 from the age points."},"bun_mg_dl":{"type":"number","description":"Blood urea nitrogen in mg/dL (1-200). Table 2 +20 when ≥30; 29.9 does not score. Not a Step 1 Class I item."},"neoplastic":{"type":"boolean","description":"Neoplastic disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +30 if true."},"pao2_mm_hg":{"type":"number","description":"Arterial PaO2 in mm Hg (20-700). Table 2 +10 when <60; 60 does not score. Not a Step 1 Class I item."},"arterial_ph":{"type":"number","description":"Arterial pH (6.80-7.80). Table 2 +30 when <7.35; 7.35 does not score. Not a Step 1 Class I item."},"nursing_home":{"type":"boolean","description":"Nursing home resident as assigned by the caller. true or false. Table 2 +10 if true. Not a Step 1 Class I item."},"glucose_mg_dl":{"type":"number","description":"Serum glucose in mg/dL (50-1000). Fine Table 2 is mg/dL only. Table 2 +10 when ≥250; 249 does not score. Not a Step 1 Class I item."},"liver_disease":{"type":"boolean","description":"Liver disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +20 if true."},"renal_disease":{"type":"boolean","description":"Renal disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +10 if true."},"sodium_mmol_l":{"type":"number","description":"Serum sodium in mmol/L (110-160). Table 2 +20 when <130; 130 does not score. Not a Step 1 Class I item."},"temperature_c":{"type":"number","description":"Temperature in °C (30-45). Step 1 Class I requires ≥35 and <40. Table 2 +15 when <35 or ≥40; 35.0 and 39.9 do not score."},"heart_rate_bpm":{"type":"integer","description":"Heart rate in beats per minute (integer 30-220). Step 1 Class I requires <125. Table 2 +10 when ≥125; 124 does not score."},"systolic_mm_hg":{"type":"number","description":"Systolic blood pressure in mm Hg (50-250). Step 1 Class I requires ≥90. Table 2 +20 when <90; 90 does not score."},"cerebrovascular":{"type":"boolean","description":"Cerebrovascular disease as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +10 if true."},"pleural_effusion":{"type":"boolean","description":"Pleural effusion as assigned by the caller. true or false. Table 2 +10 if true. Not a Step 1 Class I item."},"respiratory_rate":{"type":"integer","description":"Respiratory rate in breaths/min (integer 4-80). Step 1 Class I requires <30. Table 2 +20 when ≥30; 29 does not score."},"hematocrit_percent":{"type":"number","description":"Hematocrit percent (10-70). Table 2 +10 when <30; 30 does not score. Not a Step 1 Class I item."},"altered_mental_status":{"type":"boolean","description":"Altered mental status as assigned by the caller. true or false. Step 1 excludes Class I if true. Table 2 +20 if true."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/psi_port","count":2,"items":[{"score":45,"formula":"psi_port","citation":{"id":"fine-1997","doi":"10.1056/NEJM199701233360402","pmid":"8995086","title":"A prediction rule to identify low-risk patients with community-acquired pneumonia","source":"N Engl J Med. 1997;336(4):243-250","authors":"Fine MJ, Auble TE, Yealy DM, et al."},"age_years":45,"components":[{"value":45,"factor":"age","points":45,"present":true},{"factor":"nursing_home","points":0,"present":false},{"factor":"neoplastic","points":0,"present":false},{"factor":"liver_disease","points":0,"present":false},{"factor":"chf","points":0,"present":false},{"factor":"cerebrovascular","points":0,"present":false},{"factor":"renal_disease","points":0,"present":false},{"factor":"altered_mental_status","points":0,"present":false},{"value":16,"factor":"respiratory_rate_ge_30","points":0,"present":false},{"value":120,"factor":"systolic_mm_hg_lt_90","points":0,"present":false},{"value":37,"factor":"temperature_extreme","points":0,"present":false},{"value":80,"factor":"heart_rate_ge_125","points":0,"present":false},{"value":7.4,"factor":"arterial_ph_lt_7_35","points":0,"present":false},{"value":14,"factor":"bun_ge_30","points":0,"present":false},{"value":140,"factor":"sodium_lt_130","points":0,"present":false},{"value":90,"factor":"glucose_ge_250","points":0,"present":false},{"value":42,"factor":"hematocrit_lt_30","points":0,"present":false},{"value":90,"factor":"pao2_lt_60","points":0,"present":false},{"factor":"pleural_effusion","points":0,"present":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.","risk_class":1,"formula_expression":"PSI/PORT two-step (Fine 1997): Class I if age<=50 and no neoplastic, liver, CHF, cerebrovascular, renal, AMS and HR<125, RR<30, SBP>=90, temp>=35 and <40; else Table 2 points: age (men) or age-10 (women) + nursing_home 10 + neoplastic 30 + liver 20 + CHF 10 + cerebrovascular 10 + renal 10 + AMS 20 + RR>=30 20 + SBP<90 20 + (temp<35 or >=40) 15 + HR>=125 10 + pH<7.35 30 + BUN>=30 20 + Na<130 20 + glucose>=250 10 + Hct<30 10 + PaO2<60 10 + pleural_effusion 10; class I from step 1 else 2 if <=70, 3 if 71-90, 4 if 91-130, 5 if >130"},{"score":45,"formula":"psi_port","citation":{"id":"fine-1997","doi":"10.1056/NEJM199701233360402","pmid":"8995086","title":"A prediction rule to identify low-risk patients with community-acquired pneumonia","source":"N Engl J Med. 1997;336(4):243-250","authors":"Fine MJ, Auble TE, Yealy DM, et al."},"age_years":45,"components":[{"value":45,"factor":"age","points":45,"present":true},{"factor":"nursing_home","points":0,"present":false},{"factor":"neoplastic","points":0,"present":false},{"factor":"liver_disease","points":0,"present":false},{"factor":"chf","points":0,"present":false},{"factor":"cerebrovascular","points":0,"present":false},{"factor":"renal_disease","points":0,"present":false},{"factor":"altered_mental_status","points":0,"present":false},{"value":16,"factor":"respiratory_rate_ge_30","points":0,"present":false},{"value":120,"factor":"systolic_mm_hg_lt_90","points":0,"present":false},{"value":37,"factor":"temperature_extreme","points":0,"present":false},{"value":80,"factor":"heart_rate_ge_125","points":0,"present":false},{"value":7.4,"factor":"arterial_ph_lt_7_35","points":0,"present":false},{"value":14,"factor":"bun_ge_30","points":0,"present":false},{"value":140,"factor":"sodium_lt_130","points":0,"present":false},{"value":90,"factor":"glucose_ge_250","points":0,"present":false},{"value":42,"factor":"hematocrit_lt_30","points":0,"present":false},{"value":90,"factor":"pao2_lt_60","points":0,"present":false},{"factor":"pleural_effusion","points":0,"present":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.","risk_class":1,"formula_expression":"PSI/PORT two-step (Fine 1997): Class I if age<=50 and no neoplastic, liver, CHF, cerebrovascular, renal, AMS and HR<125, RR<30, SBP>=90, temp>=35 and <40; else Table 2 points: age (men) or age-10 (women) + nursing_home 10 + neoplastic 30 + liver 20 + CHF 10 + cerebrovascular 10 + renal 10 + AMS 20 + RR>=30 20 + SBP<90 20 + (temp<35 or >=40) 15 + HR>=125 10 + pH<7.35 30 + BUN>=30 20 + Na<130 20 + glucose>=250 10 + Hct<30 10 + PaO2<60 10 + pleural_effusion 10; class I from step 1 else 2 if <=70, 3 if 71-90, 4 if 91-130, 5 if >130"}]}},"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_Ro5_gcIc38h4as0sVy0Ho","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":"Calculates the Fine 1997 Pneumonia Severity Index (PSI/PORT) risk class (I–V) and Table 2 point total for community-acquired pneumonia severity stratification.","exampleAgentPrompt":"Calculate the PSI/PORT pneumonia severity score for a 72-year-old male nursing home resident with CHF and no neoplastic, liver, cerebrovascular, or renal disease — his heart rate is 110 bpm, respiratory rate 22, systolic BP 95, temperature 38.2°C, arterial pH 7.38, BUN 25 mg/dL, sodium 138 mmol/L, glucose 120 mg/dL, hematocrit 38%, PaO2 75 mmHg, and no pleural effusion.","exampleUseCases":[{"title":"ED triage pneumonia risk class","prompt":"I have a 58-year-old female in the ED with community-acquired pneumonia — no comorbidities, heart rate 98, respiratory rate 24, systolic BP 100, temp 38.5°C, pH 7.40, BUN 18, sodium 140, glucose 110, hematocrit 40%, PaO2 80, no pleural effusion, not in a nursing home. What's her PSI PORT risk class and point total?"},{"title":"ICU admission stratification for elderly patient","prompt":"Score the Fine PSI for an 80-year-old male with neoplastic disease and renal disease — heart rate 130 bpm, respiratory rate 32, systolic BP 85, temp 36.0°C, arterial pH 7.28, BUN 35 mg/dL, sodium 132 mmol/L, glucose 250 mg/dL, hematocrit 29%, PaO2 50 mmHg, and pleural effusion present, not a nursing home resident, no liver disease, CHF, or cerebrovascular disease."},{"title":"Low-risk outpatient pneumonia check","prompt":"Run the PSI PORT score for a 38-year-old female with pneumonia — no neoplastic, liver, CHF, cerebrovascular, or renal disease, no altered mental status, heart rate 88, respiratory rate 18, systolic BP 115, temp 37.8°C, pH 7.42, BUN 12 mg/dL, sodium 141 mmol/L, glucose 95 mg/dL, hematocrit 42%, PaO2 88 mmHg, no pleural effusion, not in a nursing home."}],"resultDescription":"Returns the PSI/PORT risk class (I through V) determined by Fine 1997 step-wise logic — Class I if age ≤50 with no qualifying comorbidities or abnormal vitals, otherwise Classes II–V based on Table 2 total point score — and always includes the Table 2 cumulative numeric point total. Not intended as a medical device or site-of-care decision tool.","failureModes":["Missing required query parameters (age, sex, vitals, labs, comorbidity flags) returns an error","Out-of-range values for numeric fields (e.g. age <18 or >120, pH outside 6.80–7.80) may return validation errors","Incorrect data types (e.g. non-boolean for comorbidity flags) cause parameter parsing failures","Network or payment authorization failure returns HTTP 402 or 5xx"],"whenToPreferThis":"Choose this endpoint when you need a validated, algorithmic implementation of the Fine 1997 PSI/PORT score with full Table 2 point accounting — especially when your clinical decision support pipeline requires the numeric subtotal alongside the risk class, or when you need to confirm Step 1 Class I eligibility programmatically. Prefer it over SMART-COP (also available on this host) when the clinical question is mortality risk class rather than need for intensive respiratory or vasopressor support.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:37.508Z","isFirstParty":false}