{"uid":"cap_wvv6Ri2Vq50UmvftOAOkN","slug":"pesi-calculator-pulmonary-embolism-severity-index-e8fb0c42","name":"PESI Calculator (Pulmonary Embolism Severity Index)","description":"Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.","url":"https://api.magentlab.com/api/calc/pesi?utm_source=zero.xyz","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","cancer","heart_failure","chronic_lung_disease","heart_rate_bpm","systolic_mm_hg","respiratory_rate","temperature_c","altered_mentation","spo2_percent"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Adds 1 point per year (the age integer itself)."},"sex":{"type":"string","description":"Sex (female or male). Male scores +10."},"cancer":{"type":"boolean","description":"Cancer as assigned by the caller. true or false. +30 if true."},"spo2_percent":{"type":"number","description":"Arterial oxygen saturation percent (50-100). Scores +20 when <90; 90 does not score."},"heart_failure":{"type":"boolean","description":"Heart failure as assigned by the caller (separate from chronic lung disease). true or false. +10 if true."},"temperature_c":{"type":"number","description":"Temperature in °C (30-45). Scores +20 when <36; 36.0 does not score."},"heart_rate_bpm":{"type":"integer","description":"Heart rate in beats per minute (integer 30-220). Scores +20 when ≥110; 109 does not score."},"systolic_mm_hg":{"type":"number","description":"Systolic blood pressure in mm Hg (50-250). Scores +30 when <100; 100 does not score."},"respiratory_rate":{"type":"integer","description":"Respiratory rate in breaths/min (integer 4-80). Scores +20 when ≥30; 29 does not score."},"altered_mentation":{"type":"boolean","description":"Altered mental status as assigned by the caller. true or false. +60 if true."},"chronic_lung_disease":{"type":"boolean","description":"Chronic lung disease as assigned by the caller (separate from heart failure). true or false. +10 if true."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/pesi","count":2,"items":[{"score":50,"formula":"pesi","citation":{"id":"aujesky-2005","doi":"10.1164/rccm.200506-862OC","title":"Derivation and validation of a prognostic model for pulmonary embolism","source":"Am J Respir Crit Care Med. 2005;172(8):1041-1046","authors":"Aujesky D, Obrosky DS, Stone RA, et al."},"age_years":50,"components":[{"value":50,"factor":"age","points":50,"present":true},{"value":"female","factor":"male_sex","points":0,"present":false},{"factor":"cancer","points":0,"present":false},{"factor":"heart_failure","points":0,"present":false},{"factor":"chronic_lung_disease","points":0,"present":false},{"value":80,"factor":"heart_rate_ge_110","points":0,"present":false},{"value":120,"factor":"systolic_mm_hg_lt_100","points":0,"present":false},{"value":16,"factor":"respiratory_rate_ge_30","points":0,"present":false},{"value":37,"factor":"temperature_lt_36","points":0,"present":false},{"factor":"altered_mentation","points":0,"present":false},{"value":96,"factor":"spo2_lt_90","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.","pesi_class":"I","formula_expression":"PESI = age_in_years + 10*male + 30*cancer + 10*heart_failure + 10*chronic_lung_disease + 20*(HR>=110) + 30*(SBP<100) + 20*(RR>=30) + 20*(temp<36) + 60*altered_mentation + 20*(SpO2<90); classes I <=65, II 66-85, III 86-105, IV 106-125, V >125"},{"score":50,"formula":"pesi","citation":{"id":"aujesky-2005","doi":"10.1164/rccm.200506-862OC","title":"Derivation and validation of a prognostic model for pulmonary embolism","source":"Am J Respir Crit Care Med. 2005;172(8):1041-1046","authors":"Aujesky D, Obrosky DS, Stone RA, et al."},"age_years":50,"components":[{"value":50,"factor":"age","points":50,"present":true},{"value":"female","factor":"male_sex","points":0,"present":false},{"factor":"cancer","points":0,"present":false},{"factor":"heart_failure","points":0,"present":false},{"factor":"chronic_lung_disease","points":0,"present":false},{"value":80,"factor":"heart_rate_ge_110","points":0,"present":false},{"value":120,"factor":"systolic_mm_hg_lt_100","points":0,"present":false},{"value":16,"factor":"respiratory_rate_ge_30","points":0,"present":false},{"value":37,"factor":"temperature_lt_36","points":0,"present":false},{"factor":"altered_mentation","points":0,"present":false},{"value":96,"factor":"spo2_lt_90","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.","pesi_class":"I","formula_expression":"PESI = age_in_years + 10*male + 30*cancer + 10*heart_failure + 10*chronic_lung_disease + 20*(HR>=110) + 30*(SBP<100) + 20*(RR>=30) + 20*(temp<36) + 60*altered_mentation + 20*(SpO2<90); classes I <=65, II 66-85, III 86-105, IV 106-125, V >125"}]}},"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_sK97m5Pj_O7FknCC6ec09","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 Pulmonary Embolism Severity Index (PESI) score and risk class (I–V) for a patient with confirmed PE, based on Aujesky 2005 criteria.","exampleAgentPrompt":"Calculate the PESI score for a 68-year-old male with confirmed PE — he has cancer and heart failure, heart rate is 115 bpm, blood pressure is 95 mm Hg systolic, respiratory rate is 28, temperature is 36.8°C, SpO2 is 92%, no altered mental status, and no chronic lung disease.","exampleUseCases":[{"title":"ED triage of acute PE patient","prompt":"I have a 55-year-old female with a confirmed PE in the ED — no cancer, no heart failure, no chronic lung disease, heart rate 105 bpm, blood pressure 110 mm Hg systolic, respiratory rate 22, temperature 37.1°C, SpO2 95%, and she's alert. What's her PESI score and class?"},{"title":"Inpatient severity stratification for admitted PE","prompt":"Compute the PESI for my 80-year-old male patient admitted with PE — he has COPD and cancer, HR is 122 bpm, SBP is 88 mm Hg, respiratory rate 32, temp 35.8°C, SpO2 88%, and he's confused."},{"title":"Decision support for clinical documentation","prompt":"For a 63-year-old female with diagnosed pulmonary embolism, no cancer, no heart failure, no chronic lung disease, HR 98, SBP 105, RR 18, temp 36.5°C, SpO2 93%, fully oriented — what is her Aujesky PESI total score and risk class?"}],"resultDescription":"Returns the total PESI integer score and corresponding risk class (Class I ≤65 through Class V >125), reflecting 30-day mortality risk for patients with confirmed pulmonary embolism.","failureModes":["Missing required parameters (age, sex, vitals, comorbidities) returns a validation error","Out-of-range values (e.g. age <18 or >120, SpO2 <50 or >100) are rejected","Using this for PE diagnosis rather than post-diagnosis stratification is a clinical misuse — the API computes only; clinical judgment is required","Confusing this with sPESI (simplified PESI) or the 17-variable laboratory model will yield different risk classes","Payment failure (402) if x402 micropayment is not completed"],"whenToPreferThis":"Use this endpoint when you need to compute the classic Aujesky 2005 PESI score (11 variables, no labs) for a patient with an already-confirmed pulmonary embolism diagnosis. Prefer this over sPESI when full PESI granularity is required or when institutional protocols specify Aujesky 2005 criteria. Do not use for PE diagnosis, outpatient disposition protocols, or when the simplified 6-variable sPESI is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:42:11.955Z","isFirstParty":false,"canonicalSlug":"pesi-calculator-pulmonary-embolism-severity-index-e8fb0c42"}