{"uid":"cap_V-EXcX380QLKJX8eC2wh-","slug":"apache-ii-score-calculator-727a2d68","name":"APACHE II Score Calculator","description":"Knaus 1985 APACHE II integer: 12 Acute Physiology Score items (worst in 24 hours as assigned by the caller) plus age and chronic-health points, max 71. Oxygenation uses A-aDO2 when FiO2 is at least 0.5 and PaO2 when FiO2 is below 0.5. Creatinine points double in acute renal failure. Does not compute predicted death risk. magent does not measure vitals.","url":"https://api.magentlab.com/api/calc/apache_ii","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":["temperature_c","map_mm_hg","heart_rate","respiratory_rate","fio2","arterial_ph","sodium_mmol_l","potassium_mmol_l","creatinine_mg_dl","hematocrit_percent","wbc_k_ul","gcs","age","chronic_health","elective_postop","acute_renal_failure"],"properties":{"age":{"type":"integer","description":"Age in years, integer 16-120. ≤44 → 0; 45-54 → 2; 55-64 → 3; 65-74 → 5; ≥75 → 6."},"gcs":{"type":"integer","description":"Glasgow Coma Scale total as assigned by the caller (integer 3-15). APS GCS points = 15 minus gcs. magent does not examine the patient."},"fio2":{"type":"number","description":"Inspired oxygen as a fraction 0.21-1.00, not a percent. If fio2 ≥ 0.5, oxygenation uses aa_gradient. If fio2 < 0.5, oxygenation uses pao2_mm_hg. The unused gas parameter is ignored."},"wbc_k_ul":{"type":"number","description":"White blood count in thousands per mm^3 (0.1-100). ≥40 → 4; 20-39.9 → 2; 15-19.9 → 1; 3-14.9 → 0; 1-2.9 → 2; <1 → 4."},"map_mm_hg":{"type":"number","description":"Mean arterial pressure in mm Hg (20-250). ≥160 → 4; 130-159 → 3; 110-129 → 2; 70-109 → 0; 50-69 → 2; ≤49 → 4. magent does not measure blood pressure."},"heart_rate":{"type":"integer","description":"Heart rate, ventricular response, integer 20-250. ≥180 → 4; 140-179 → 3; 110-139 → 2; 70-109 → 0; 55-69 → 2; 40-54 → 3; ≤39 → 4."},"pao2_mm_hg":{"type":"number","description":"Arterial PaO2 in mm Hg (20-700). Required when fio2 < 0.5. >70 → 0; 61-70 → 1; 55-60 → 3; <55 → 4. Ignored when fio2 ≥ 0.5."},"aa_gradient":{"type":"number","description":"A-aDO2 in mm Hg (0-800). Required when fio2 ≥ 0.5. ≥500 → 4; 350-499 → 3; 200-349 → 2; <200 → 0. Ignored when fio2 < 0.5. magent does not compute A-aDO2 from PaO2."},"arterial_ph":{"type":"number","description":"Arterial pH (6.5-8.0). ≥7.70 → 4; 7.60-7.69 → 3; 7.50-7.59 → 1; 7.33-7.49 → 0; 7.25-7.32 → 2; 7.15-7.24 → 3; <7.15 → 4. Venous HCO3 substitution from Table 1 is not accepted."},"sodium_mmol_l":{"type":"number","description":"Serum sodium in mmol/L (90-200). ≥180 → 4; 160-179 → 3; 155-159 → 2; 150-154 → 1; 130-149 → 0; 120-129 → 2; 111-119 → 3; ≤110 → 4."},"temperature_c":{"type":"number","description":"Rectal temperature in °C (20-46) as assigned by the caller (Knaus 1985 Table 1). ≥41 → 4; 39-40.9 → 3; 38.5-38.9 → 1; 36-38.4 → 0; 34-35.9 → 1; 32-33.9 → 2; 30-31.9 → 3; ≤29.9 → 4. magent does not measure temperature or convert Fahrenheit."},"chronic_health":{"type":"boolean","description":"true if the caller assigns severe organ insufficiency or immunocompromise as defined in Knaus 1985. false → 0 chronic-health points and elective_postop must be false."},"elective_postop":{"type":"boolean","description":"true only for elective postoperative patients with chronic_health true (+2). false with chronic_health true is nonoperative or emergency postoperative (+5). Must be false when chronic_health is false."},"creatinine_mg_dl":{"type":"number","description":"Serum creatinine in mg/dL (0.1-20). ≥3.5 → 4; 2.0-3.4 → 3; 1.5-1.9 → 2; 0.6-1.4 → 0; <0.6 → 2. Double that row when acute_renal_failure is true."},"potassium_mmol_l":{"type":"number","description":"Serum potassium in mmol/L (1-12). ≥7.0 → 4; 6.0-6.9 → 3; 5.5-5.9 → 1; 3.5-5.4 → 0; 3.0-3.4 → 1; 2.5-2.9 → 2; <2.5 → 4."},"respiratory_rate":{"type":"integer","description":"Respiratory rate, non-ventilated or ventilated, integer 0-80. ≥50 → 4; 35-49 → 3; 25-34 → 1; 12-24 → 0; 10-11 → 1; 6-9 → 2; ≤5 → 4."},"hematocrit_percent":{"type":"number","description":"Hematocrit percent (5-80). ≥60 → 4; 50-59.9 → 2; 46-49.9 → 1; 30-45.9 → 0; 20-29.9 → 2; <20 → 4."},"acute_renal_failure":{"type":"boolean","description":"true doubles the creatinine Table 1 points (Knaus 1985). false leaves creatinine points unchanged. magent does not diagnose renal failure."}}}},"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_niPnGYwfI4f_YKsIDGvCd","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 integer APACHE II score (0–71) from 12 acute physiology parameters, age, and chronic-health points using the Knaus 1985 methodology","exampleAgentPrompt":"Calculate the APACHE II score for my ICU patient: temperature 38.2°C, MAP 65 mmHg, heart rate 110, respiratory rate 22, FiO2 0.4, arterial pH 7.32, sodium 138, potassium 4.1, creatinine 2.1 mg/dL, hematocrit 32%, WBC 14 k/µL, GCS 13, age 67, chronic health points 2, not elective postop, no acute renal failure — PaO2 is 68 mmHg.","exampleUseCases":[{"title":"ICU admission severity triage","prompt":"I need the APACHE II score for a newly admitted ICU patient: temp 39.0°C, MAP 72 mmHg, HR 130, RR 28, FiO2 0.6 with an A-aDO2 of 310 mmHg, arterial pH 7.28, sodium 145, potassium 5.2, creatinine 1.8 mg/dL, hematocrit 38%, WBC 18 k/µL, GCS 10, age 58, no chronic health points, not elective postop, no acute renal failure."},{"title":"Renal failure patient scoring","prompt":"Compute the APACHE II score for a septic patient with acute renal failure: temp 37.8°C, MAP 55 mmHg, HR 95, RR 18, FiO2 0.35 with PaO2 62 mmHg, pH 7.35, sodium 136, potassium 4.8, creatinine 3.5 mg/dL, hematocrit 29%, WBC 22 k/µL, GCS 15, age 72, chronic health points 5, not elective postop, acute renal failure present."},{"title":"Post-surgical ICU severity assessment","prompt":"What's the APACHE II score for my elective postop patient in the ICU? Temp 37.0°C, MAP 88 mmHg, HR 78, RR 14, FiO2 0.5 with A-aDO2 of 180 mmHg, pH 7.42, sodium 140, potassium 3.9, creatinine 1.0 mg/dL, hematocrit 36%, WBC 10 k/µL, GCS 15, age 55, chronic health points 0, elective postop yes, no acute renal failure."}],"resultDescription":"Returns an integer APACHE II total score (0–71) derived from the sum of the Acute Physiology Score (12 worst-24-hour physiologic variable points), age points, and chronic health points. Oxygenation is scored via A-aDO2 when FiO2 ≥ 0.5 and via PaO2 when FiO2 < 0.5. Creatinine points are doubled when acute renal failure is flagged. Does not include predicted mortality risk percentage.","failureModes":["Missing required query parameters returns an error — all 16 required fields must be supplied","Out-of-range values (e.g. age < 16, GCS outside 3–15, FiO2 outside 0.21–1.00) may return a validation error","Providing aa_gradient when FiO2 < 0.5 or pao2_mm_hg when FiO2 ≥ 0.5 — the unused gas parameter is silently ignored but the required one must be present","Payment failure (x402) if USDC balance is insufficient or x402 headers are not correctly configured","Network timeout if the API is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need a programmatic, deterministic APACHE II integer score computation conforming to the original Knaus 1985 methodology, including correct oxygenation switching (A-aDO2 vs PaO2 based on FiO2 threshold) and acute renal failure creatinine doubling. Prefer this over general-purpose LLM arithmetic when audit-grade reproducibility of ICU severity scoring is required. Do not use if you need predicted mortality probability — this endpoint returns only the integer score.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:21:01.542Z","isFirstParty":false}