{"uid":"cap_v4vDN7AqVzr3ZwPfUFU9q","slug":"wells-pe-score-calculator-0c8441b7","name":"Wells PE Score Calculator","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/wells_pe?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":["signs_dvt","pe_number_one","hr_gt_100","immobilization_or_surgery","previous_dvt_pe","hemoptysis","malignancy"],"properties":{"hr_gt_100":{"type":"boolean","description":"Heart rate >100 (1.5 points)."},"signs_dvt":{"type":"boolean","description":"Clinical signs and symptoms of DVT (3 points)."},"hemoptysis":{"type":"boolean","description":"Hemoptysis (1 point)."},"malignancy":{"type":"boolean","description":"Malignancy with treatment in last 6 months or palliative (1 point)."},"pe_number_one":{"type":"boolean","description":"PE is the number-one diagnosis or equally likely (3 points)."},"previous_dvt_pe":{"type":"boolean","description":"Previous DVT or PE (1.5 points)."},"immobilization_or_surgery":{"type":"boolean","description":"Immobilization ≥3 days or surgery in previous 4 weeks (1.5 points)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/wells_pe","count":2,"items":[{"score":6,"formula":"wells_pe","citation":{"id":"wells-pe-2001","doi":"10.7326/0003-4819-135-2-200107170-00010","title":"Excluding pulmonary embolism at the bedside without diagnostic imaging: management of patients with suspected pulmonary embolism presenting to the emergency department by using a simple clinical model and d-dimer","source":"Ann Intern Med. 2001;135(2):98-107","authors":"Wells PS, Anderson DR, Rodger M, et al."},"two_tier":"likely","max_score":12.5,"components":[{"factor":"signs_dvt","points":3,"present":true},{"factor":"pe_number_one","points":3,"present":true},{"factor":"hr_gt_100","points":0,"present":false},{"factor":"immobilization_or_surgery","points":0,"present":false},{"factor":"previous_dvt_pe","points":0,"present":false},{"factor":"hemoptysis","points":0,"present":false},{"factor":"malignancy","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.","three_tier":"moderate","formula_expression":"Wells PE = 3*signs_dvt + 3*pe_number_one + 1.5*hr_gt_100 + 1.5*immobilization_or_surgery + 1.5*previous_dvt_pe + 1*hemoptysis + 1*malignancy"},{"score":6,"formula":"wells_pe","citation":{"id":"wells-pe-2001","doi":"10.7326/0003-4819-135-2-200107170-00010","title":"Excluding pulmonary embolism at the bedside without diagnostic imaging: management of patients with suspected pulmonary embolism presenting to the emergency department by using a simple clinical model and d-dimer","source":"Ann Intern Med. 2001;135(2):98-107","authors":"Wells PS, Anderson DR, Rodger M, et al."},"two_tier":"likely","max_score":12.5,"components":[{"factor":"signs_dvt","points":3,"present":true},{"factor":"pe_number_one","points":3,"present":true},{"factor":"hr_gt_100","points":0,"present":false},{"factor":"immobilization_or_surgery","points":0,"present":false},{"factor":"previous_dvt_pe","points":0,"present":false},{"factor":"hemoptysis","points":0,"present":false},{"factor":"malignancy","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.","three_tier":"moderate","formula_expression":"Wells PE = 3*signs_dvt + 3*pe_number_one + 1.5*hr_gt_100 + 1.5*immobilization_or_surgery + 1.5*previous_dvt_pe + 1*hemoptysis + 1*malignancy"}]}},"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_MSG8bVRwelqgtZ7sMnneS","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 Wells pulmonary embolism probability score from seven discrete clinical flags, returning both three-tier and two-tier risk bands.","exampleAgentPrompt":"Calculate the Wells PE score for a patient who has clinical signs of DVT, PE is the number-one diagnosis, heart rate over 100, was immobilized for more than 3 days, has a history of previous DVT, no hemoptysis, and no active malignancy.","exampleUseCases":[{"title":"ED triage for suspected PE","prompt":"My ER patient has leg swelling suggesting DVT, PE is my top diagnosis, heart rate is 112, they had surgery two weeks ago, no prior DVT or PE, no hemoptysis, and no cancer — what does the Wells PE score say about their risk?"},{"title":"Hospitalist pre-test probability assessment","prompt":"Can you run the Wells PE criteria for a patient who has clinical DVT signs, PE is equally likely as the top diagnosis, HR above 100, no recent immobilization or surgery, previous DVT two years ago, coughing up blood, and active palliative malignancy?"},{"title":"Telemedicine clinical decision support","prompt":"I'm evaluating a patient remotely — no DVT signs, PE is not the leading diagnosis, heart rate is 88, no immobilization or recent surgery, no prior DVT or PE, no hemoptysis, no malignancy. What is their Wells PE score and which risk tier do they fall into?"}],"resultDescription":"Returns the numeric Wells PE score along with a three-tier risk classification (low, moderate, high) and a two-tier classification (PE unlikely vs. PE likely), with a citation to the published Wells 2000/2001 scoring methodology. The result is deterministic and not a clinical diagnosis.","failureModes":["Missing required query parameter returns validation error","Invalid boolean value for any flag causes schema rejection","All flags false returns valid low-risk score (not an error)","Network timeout if server is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, published Wells PE risk stratification from seven binary clinical flags without any free-text interpretation. Prefer it over general clinical reasoning endpoints when you need a citable, reproducible score that maps directly to the Wells 2000 literature — particularly in ED triage, telemedicine decision support, or prior-authorization workflows requiring documented pre-test probability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:48:03.186Z","isFirstParty":false,"canonicalSlug":"wells-pe-score-calculator-0c8441b7"}