{"uid":"cap_75a8Wr861Hz01aw0iIiAn","slug":"saps-ii-score-calculator-82dbd82a","name":"SAPS II Score Calculator","description":"Le Gall 1993 Simplified Acute Physiology Score II from 12 physiology variables (worst values in the first 24 hours as assigned by the caller), age, type of admission, and one chronic disease (AIDS, metastatic cancer, or hematologic malignancy). Max 163. Converts the integer to hospital-mortality probability with the paper's logit. PaO2/FiO2 is scored only if ventilated or CPAP. Not SAPS 3. Not APACHE. magent does not measure vitals.","url":"https://api.magentlab.com/api/calc/saps_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":["age","heart_rate","systolic_bp_mm_hg","temperature_c","ventilated","urine_output_l_day","wbc_k_ul","potassium_mmol_l","sodium_mmol_l","bicarbonate_meq_l","gcs","admission_type","chronic_disease"],"properties":{"age":{"type":"integer","description":"Age in years, integer 18-120 (Le Gall 1993 excluded patients younger than 18). <40 → 0; 40-59 → 7; 60-69 → 12; 70-74 → 15; 75-79 → 16; ≥80 → 18."},"gcs":{"type":"integer","description":"Glasgow Coma Scale total as assigned by the caller (integer 3-15). <6 → 26; 6-8 → 13; 9-10 → 7; 11-13 → 5; 14-15 → 0. magent does not examine the patient."},"wbc_k_ul":{"type":"number","description":"White blood count in thousands per mm^3 (0-100). <1.0 → 12; 1.0-19.9 → 0; ≥20.0 → 3."},"bun_mg_dl":{"type":"number","description":"Blood urea nitrogen in mg/dL (1-250). Alternate to urea_mmol_l (Le Gall 1993 US column). Ignored when urea_mmol_l is present. <28 → 0; 28-83 → 6; ≥84 → 10. magent does not convert BUN to urea."},"pao2_fio2":{"type":"number","description":"PaO2/FiO2 ratio in mm Hg (10-800). Required when ventilated is true. <100 → 11; 100-199 → 9; ≥200 → 6. Ignored when ventilated is false. magent does not compute the ratio from PaO2 and FiO2."},"heart_rate":{"type":"integer","description":"Heart rate in beats/min, integer 20-250, worst in 24h as assigned by the caller. <40 → 11; 40-69 → 2; 70-119 → 0; 120-159 → 4; ≥160 → 7. magent does not measure pulse."},"ventilated":{"type":"boolean","description":"true if the caller assigns mechanical ventilation or CPAP in the first 24h (Le Gall 1993 PaO2/FiO2 row). false → 0 oxygenation points and pao2_fio2 is ignored. Ventilated or CPAP scores at least 6 even when PaO2/FiO2 is ≥200."},"urea_mmol_l":{"type":"number","description":"Serum urea in mmol/L (0.1-80). One of urea_mmol_l or bun_mg_dl is required. If both are sent, urea_mmol_l is scored and bun_mg_dl is ignored. <10.0 → 0; 10.0-29.9 → 6; ≥30.0 → 10."},"sodium_mmol_l":{"type":"number","description":"Serum sodium in mmol/L (90-200). <125 → 5; 125-144 → 0; ≥145 → 1."},"temperature_c":{"type":"number","description":"Body temperature in °C (20-46). <39 → 0; ≥39 → 3. The 1993 table has no hypothermia points. magent does not measure temperature or convert Fahrenheit."},"admission_type":{"enum":["scheduled_surgical","medical","unscheduled_surgical"],"type":"string","description":"Le Gall 1993 type of admission as assigned by the caller: scheduled_surgical (0), medical (6), or unscheduled_surgical (8). magent does not classify the admission."},"bilirubin_mg_dl":{"type":"number","description":"Serum bilirubin in mg/dL (0-40). One of bilirubin_mg_dl or bilirubin_umol_l is required. If both are sent, bilirubin_mg_dl is scored and bilirubin_umol_l is ignored. <4.0 → 0; 4.0-5.9 → 4; ≥6.0 → 9."},"chronic_disease":{"enum":["none","metastatic_cancer","hematologic_malignancy","aids"],"type":"string","description":"Le Gall 1993 chronic-disease row as assigned by the caller: none (0), metastatic_cancer (9), hematologic_malignancy (10), or aids (17). One token; the paper's table is not additive. magent does not diagnose."},"bilirubin_umol_l":{"type":"number","description":"Serum bilirubin in µmol/L (0-684). Alternate to bilirubin_mg_dl (Le Gall 1993 SI column). Ignored when bilirubin_mg_dl is present. <68.4 → 0; 68.4-102.5 → 4; ≥102.6 → 9. magent does not convert units."},"potassium_mmol_l":{"type":"number","description":"Serum potassium in mmol/L (1-12). <3.0 → 3; 3.0-4.9 → 0; ≥5.0 → 3."},"bicarbonate_meq_l":{"type":"number","description":"Serum bicarbonate in mEq/L (2-60). <15 → 6; 15-19 → 3; ≥20 → 0. Arterial pH is not a SAPS II variable."},"systolic_bp_mm_hg":{"type":"number","description":"Systolic blood pressure in mm Hg (20-300), worst in 24h as assigned by the caller. <70 → 13; 70-99 → 5; 100-199 → 0; ≥200 → 2. magent does not measure blood pressure."},"urine_output_l_day":{"type":"number","description":"Urine output in L/24h (0-20) as assigned by the caller. <0.500 → 11; 0.500-0.999 → 4; ≥1.000 → 0. magent does not measure urine."}}}},"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_-UybC4K95CaYmxNoeYLw_","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 Le Gall 1993 SAPS II score (0–163) from 12 physiology variables, age, admission type, and chronic disease, then converts it to a hospital-mortality probability using the original logit.","exampleAgentPrompt":"Calculate a SAPS II score for a 67-year-old ICU patient admitted as a non-operative medical case, no chronic disease, heart rate 110, systolic BP 95, temperature 38.2°C, GCS 12, urine output 0.8 L/day, WBC 14.5, potassium 3.8, sodium 138, bicarbonate 18, and the patient is not ventilated — what's the score and estimated hospital mortality?","exampleUseCases":[{"title":"ICU mortality risk on admission","prompt":"I have a 72-year-old ventilated post-operative surgical ICU patient, heart rate 130, systolic BP 80, temp 36.5°C, GCS 7, urine output 0.4 L/day, WBC 22, potassium 5.2, sodium 145, bicarbonate 14, PaO2/FiO2 180, no chronic disease — what's the SAPS II score and what mortality probability does that imply?"},{"title":"Benchmarking ICU severity for quality reporting","prompt":"For our quality dashboard, calculate SAPS II for a 55-year-old medical admission with hematologic malignancy, heart rate 95, systolic BP 110, temp 39.1°C, GCS 14, urine output 1.2 L/day, WBC 0.8, potassium 4.0, sodium 132, bicarbonate 20, not ventilated — give me the integer score and the logit-based mortality estimate."},{"title":"Comparing severity across two ICU patients","prompt":"Compare the SAPS II scores for two patients: Patient A is 48 years old, medical admission, no chronic disease, HR 85, SBP 120, temp 37.0°C, GCS 15, urine 1.8 L/day, WBC 8, K 4.1, Na 140, bicarb 24, not ventilated; Patient B is 81 years old, non-operative medical, metastatic cancer, HR 155, SBP 70, temp 35.8°C, GCS 5, urine 0.2 L/day, WBC 25, K 6.1, Na 152, bicarb 10, ventilated with PaO2/FiO2 85 — calculate both scores and mortality probabilities."}],"resultDescription":"Returns the SAPS II integer score (0–163, summed from the Le Gall 1993 point table) and the corresponding hospital-mortality probability derived from the paper's logistic regression logit. Does not measure or collect any vitals itself — all inputs are caller-supplied worst values from the first 24 ICU hours.","failureModes":["Missing required query parameters (age, heart_rate, systolic_bp_mm_hg, temperature_c, ventilated, urine_output_l_day, wbc_k_ul, potassium_mmol_l, sodium_mmol_l, bicarbonate_meq_l, gcs, admission_type, chronic_disease) returns an error","pao2_fio2 required but omitted when ventilated=true causes an error","Values outside accepted ranges (e.g. age <18, GCS outside 3–15) may return validation errors","Neither urea_mmol_l nor bun_mg_dl provided may cause missing oxygenation or BUN scoring","Payment not attached or insufficient USDC causes HTTP 402"],"whenToPreferThis":"Use this endpoint when you need a standards-compliant Le Gall 1993 SAPS II score and associated hospital-mortality probability for an adult ICU patient based on worst values in the first 24 hours. Prefer this over APACHE or SAPS 3 calculators when the clinical protocol specifically calls for SAPS II. Not appropriate for pediatric patients (under 18), for real-time vital-sign monitoring, or when you need APACHE II/III or SAPS 3 scoring.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:21:01.547Z","isFirstParty":false}