{"uid":"cap_1e1ainYhn7WfgceHAR-Vu","slug":"perc-rule-calculator-pulmonary-embolism-rule-out-criteria-d7aa603d","name":"PERC Rule Calculator (Pulmonary Embolism Rule-Out Criteria)","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/perc?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","heart_rate_bpm","spo2_percent","unilateral_leg_swelling","hemoptysis","recent_surgery_or_trauma","prior_vte","estrogen_use"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Criterion met when age < 50; 50 does not meet."},"prior_vte":{"type":"boolean","description":"Prior PE or DVT. true or false as assigned by the caller. Criterion met when false."},"hemoptysis":{"type":"boolean","description":"Hemoptysis. true or false as assigned by the caller. Criterion met when false."},"estrogen_use":{"type":"boolean","description":"Hormone or exogenous estrogen use. true or false as assigned by the caller. Criterion met when false."},"spo2_percent":{"type":"number","description":"Oxygen saturation percent (50-100). Criterion met when SaO2 > 94; 94 does not meet."},"heart_rate_bpm":{"type":"integer","description":"Pulse in beats per minute (integer 30-220). Criterion met when pulse < 100; 100 does not meet."},"unilateral_leg_swelling":{"type":"boolean","description":"Unilateral leg swelling. true or false as assigned by the caller. Criterion met when false."},"recent_surgery_or_trauma":{"type":"boolean","description":"Recent trauma or surgery. true or false as assigned by the caller. Criterion met when false."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/perc","count":2,"items":[{"formula":"perc","citation":{"id":"kline-2004","doi":"10.1111/j.1538-7836.2004.00790.x","title":"Clinical criteria to prevent unnecessary diagnostic testing in emergency department patients with suspected pulmonary embolism","source":"J Thromb Haemost. 2004;2(8):1247-1255","authors":"Kline JA, Mitchell AM, Kabrhel C, Richman PB, Courtney DM"},"criteria":[{"met":true,"value":40,"factor":"age_lt_50"},{"met":true,"value":80,"factor":"pulse_lt_100"},{"met":true,"value":98,"factor":"sao2_gt_94"},{"met":true,"factor":"no_unilateral_leg_swelling"},{"met":true,"factor":"no_hemoptysis"},{"met":true,"factor":"no_recent_surgery_or_trauma"},{"met":true,"factor":"no_prior_vte"},{"met":true,"factor":"no_estrogen_use"}],"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.","perc_negative":true,"formula_expression":"PERC-negative iff age < 50 and pulse < 100 bpm and SaO2 > 94% and no unilateral leg swelling and no hemoptysis and no recent trauma or surgery and no prior PE or DVT and no hormone use"},{"formula":"perc","citation":{"id":"kline-2004","doi":"10.1111/j.1538-7836.2004.00790.x","title":"Clinical criteria to prevent unnecessary diagnostic testing in emergency department patients with suspected pulmonary embolism","source":"J Thromb Haemost. 2004;2(8):1247-1255","authors":"Kline JA, Mitchell AM, Kabrhel C, Richman PB, Courtney DM"},"criteria":[{"met":true,"value":40,"factor":"age_lt_50"},{"met":true,"value":80,"factor":"pulse_lt_100"},{"met":true,"value":98,"factor":"sao2_gt_94"},{"met":true,"factor":"no_unilateral_leg_swelling"},{"met":true,"factor":"no_hemoptysis"},{"met":true,"factor":"no_recent_surgery_or_trauma"},{"met":true,"factor":"no_prior_vte"},{"met":true,"factor":"no_estrogen_use"}],"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.","perc_negative":true,"formula_expression":"PERC-negative iff age < 50 and pulse < 100 bpm and SaO2 > 94% and no unilateral leg swelling and no hemoptysis and no recent trauma or surgery and no prior PE or DVT and no hormone use"}]}},"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_Mwk7DzTmAnhD2ruxoBwip","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":"Evaluates all eight Kline 2004 PERC criteria to determine whether pulmonary embolism can be ruled out in a low-pretest-probability patient without further workup.","exampleAgentPrompt":"Check the PERC rule for a 42-year-old patient with a heart rate of 88 bpm, SpO2 of 97%, no unilateral leg swelling, no hemoptysis, no recent surgery or trauma, no prior PE or DVT, and no estrogen use — are all eight criteria met to rule out PE?","exampleUseCases":[{"title":"ED triage PE rule-out decision","prompt":"I have a 38-year-old ED patient with suspected PE and low pretest probability. Heart rate is 92, SpO2 is 96%, age 38, no leg swelling, no hemoptysis, no recent surgery, no prior clots, no hormone use — run the PERC rule and tell me if we can rule out PE without further testing."},{"title":"Avoid unnecessary D-dimer in low-risk patient","prompt":"My patient is 45 years old, pulse 78, oxygen sat 98%, and negative on all the other PERC flags — no leg swelling, no coughing blood, no recent trauma or surgery, no history of DVT or PE, no estrogen. Does PERC rule out pulmonary embolism so we can skip the D-dimer?"},{"title":"Clinical documentation support for PE workup","prompt":"Document whether PERC criteria are met for a 55-year-old patient with heart rate 95, SpO2 95%, no unilateral leg swelling, no hemoptysis, no recent surgery or trauma, no prior VTE, and no estrogen use — I need to know if PERC is positive or negative."}],"resultDescription":"Returns a structured result indicating whether the patient is PERC-negative (all eight criteria satisfied, PE rule-out supported in low-pretest-probability context) or PERC-positive (one or more criteria failed, further workup indicated), along with the pass/fail status of each individual criterion.","failureModes":["Missing required query parameters (age, heart_rate_bpm, spo2_percent, boolean flags) returns a 400-level error","Age outside valid range 18-120 or SpO2 outside 50-100 rejected as invalid input","Heart rate outside 30-220 bpm range rejected","Boolean fields passed as strings instead of true/false may cause parsing errors","Caller applying PERC without established low pretest probability yields clinically invalid results (not enforced by API)"],"whenToPreferThis":"Use this endpoint when you need a deterministic, published PERC rule-out calculation for a patient already assessed as low pretest probability for PE. Prefer this over custom logic or LLM reasoning for clinical decision support where reproducibility and fidelity to the Kline 2004 criteria are required. Not appropriate as a D-dimer substitute protocol, for high-pretest patients, or in altitude-adjusted contexts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:43:20.128Z","isFirstParty":false,"canonicalSlug":"perc-rule-calculator-pulmonary-embolism-rule-out-criteria-d7aa603d"}