{"api":"v1","generated_at":"2026-10-02T17:28:03.362Z","licence":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"TOLL, with a link to the page cited"},"page":"https://tollindex.com/e/api-magentlab-com-api-calc-saps-ii-d46afe","pinned_page":"https://tollindex.com/e/api-magentlab-com-api-calc-saps-ii-d46afe/at/2026-10-02T12-31Z","pinned":false,"method":"https://tollindex.com/ledger/method","snapshot_at":"2026-10-02T12:31:46.748Z","snapshot_stamp":"2026-10-02T12-31Z","endpoint":{"slug":"api-magentlab-com-api-calc-saps-ii-d46afe","canonical_url":"https://api.magentlab.com/api/calc/saps_ii","resource":"https://api.magentlab.com/api/calc/saps_ii","http_method":"POST","type":"http","x402_version":2,"registries":["cdp"],"primary_registry":"cdp","curated_by_coinbase":false,"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.","service_name":"magent","declared_category":null,"declared_tags":["saps-ii","icu","severity","physiology","mortality"],"route_template":null,"registry_updated":"2026-09-28T14:39:41.611Z"},"derived":{"note":"fields no registry supplies; TOLL derives them and marks them derived on the page","title":"calc saps ii","category":"search","first_observed_by_toll":"2026-09-28T13:51:25.436Z","last_observed_by_toll":"2026-10-02T12:31:46.748Z","observation_began":"2026-09-10"},"presence":{"listed_now":true,"first_absent_at":null,"delisting_confirmed_at":null,"events":[{"registry":"cdp","at":"2026-09-28T13:51:25.437Z","event":"listed"}]},"accepts":[{"registry":"cdp","ordinal":0,"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","asset_name":"USD Coin","symbol":"USDC","decimals":6,"amount_display":"0.005 USDC","amount_units":0.005,"decimals_known":true,"pay_to":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","scheme":"exact"}],"counters":{"observed_at":"2026-10-02T12:31:46.748Z","calls_30d":1,"unique_payers_30d":1,"last_called_at":"2026-09-28T14:39:41.480Z"},"validation":{"latest":{"observed_at":"2026-10-02T16:50:38.392Z","state":"pass","failed_checks":[],"endpoint_http_status":402,"run_id":"daily-2026-10-02"},"uptime":[{"days":7,"observed":5,"passed":5,"ratio":1},{"days":30,"observed":5,"passed":5,"ratio":1},{"days":90,"observed":5,"passed":5,"ratio":1}],"history_90d":[{"observed_at":"2026-10-02T16:50:38.392Z","state":"pass","failed_checks":[],"run_id":"daily-2026-10-02","state_changed":false},{"observed_at":"2026-10-01T09:32:32.191Z","state":"pass","failed_checks":[],"run_id":"daily-2026-10-01","state_changed":false},{"observed_at":"2026-09-30T09:00:38.762Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-30","state_changed":false},{"observed_at":"2026-09-29T21:05:43.222Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-29","state_changed":false},{"observed_at":"2026-09-28T16:49:22.828Z","state":"pass","failed_checks":[],"run_id":"new-after-daily-2026-09-28","state_changed":true}]},"seller":{"wallet":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","page":"https://tollindex.com/seller/0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","endpoints":844,"hosts":1},"reports":0,"registry_record":{"cdp":[{"tags":["saps-ii","icu","severity","physiology","mortality"],"type":"http","accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2","paymentFlow":"upfront","resourceUrl":"https://api.magentlab.com/api/calc/saps_ii","assetTransferMethod":"eip3009"},"payTo":"0x836Be278f1739fB4308091cD1852F7971Bc19Ee2","amount":"5000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":600}],"quality":{"lastCalledAt":"2026-09-28T14:39:41.48Z","l30DaysTotalCalls":1,"l30DaysUniquePayers":1},"resource":"https://api.magentlab.com/api/calc/saps_ii","extensions":{"bazaar":{"info":{"input":{"body":{"items":[{"age":35,"gcs":15,"wbc_k_ul":8,"bun_mg_dl":15,"pao2_fio2":250,"heart_rate":80,"ventilated":false,"urea_mmol_l":5,"sodium_mmol_l":140,"temperature_c":37,"admission_type":"scheduled_surgical","bilirubin_mg_dl":0.8,"chronic_disease":"none","bilirubin_umol_l":14,"potassium_mmol_l":4,"bicarbonate_meq_l":24,"systolic_bp_mm_hg":120,"urine_output_l_day":1.5},{"age":35,"gcs":15,"wbc_k_ul":8,"bun_mg_dl":15,"pao2_fio2":250,"heart_rate":80,"ventilated":false,"urea_mmol_l":5,"sodium_mmol_l":140,"temperature_c":37,"admission_type":"scheduled_surgical","bilirubin_mg_dl":0.8,"chronic_disease":"none","bilirubin_umol_l":14,"potassium_mmol_l":4,"bicarbonate_meq_l":24,"systolic_bp_mm_hg":120,"urine_output_l_day":1.5}]},"type":"http","method":"POST"},"output":{"type":"json","example":{"path":"/api/calc/saps_ii","count":2,"items":[{"logit":-7.7631,"score":0,"formula":"saps_ii","citation":{"id":"le-gall-1993","doi":"10.1001/jama.270.24.2957","pmid":"8254858","title":"A new Simplified Acute Physiology Score (SAPS II) based on a European/North American multicenter study","source":"JAMA. 1993;270(24):2957-2963","authors":"Le Gall JR, Lemeshow S, Saulnier F"},"max_score":163,"components":[{"value":35,"factor":"age","points":0,"present":false},{"value":80,"factor":"heart_rate","points":0,"present":false},{"value":120,"factor":"systolic_bp_mm_hg","points":0,"present":false},{"value":37,"factor":"temperature_c","points":0,"present":false},{"value":null,"branch":"not_ventilated","factor":"oxygenation","points":0,"present":false,"ventilated":false},{"value":1.5,"factor":"urine_output_l_day","points":0,"present":false},{"value":5,"branch":"urea_mmol_l","factor":"urea","points":0,"present":false},{"value":8,"factor":"wbc_k_ul","points":0,"present":false},{"value":4,"factor":"potassium_mmol_l","points":0,"present":false},{"value":140,"factor":"sodium_mmol_l","points":0,"present":false},{"value":24,"factor":"bicarbonate_meq_l","points":0,"present":false},{"value":0.8,"branch":"bilirubin_mg_dl","factor":"bilirubin","points":0,"present":false},{"value":15,"factor":"gcs","points":0,"present":false},{"value":"scheduled_surgical","factor":"admission_type","points":0,"present":false},{"value":"none","factor":"chronic_disease","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.","formula_expression":"SAPS II = sum of 17 Le Gall 1993 variables (worst values in 24h as assigned by the caller): heart_rate (<40 → 11, 40-69 → 2, 70-119 → 0, 120-159 → 4, ≥160 → 7), systolic_bp_mm_hg (<70 → 13, 70-99 → 5, 100-199 → 0, ≥200 → 2), temperature_c (<39 → 0, ≥39 → 3), PaO2/FiO2 mm Hg if ventilated or CPAP (<100 → 11, 100-199 → 9, ≥200 → 6) else 0, urine_output_l_day (<0.500 → 11, 0.500-0.999 → 4, ≥1.000 → 0), urea_mmol_l (<10.0 → 0, 10.0-29.9 → 6, ≥30.0 → 10) or bun_mg_dl (<28 → 0, 28-83 → 6, ≥84 → 10), wbc_k_ul (<1.0 → 12, 1.0-19.9 → 0, ≥20.0 → 3), potassium_mmol_l (<3.0 or ≥5.0 → 3, 3.0-4.9 → 0), sodium_mmol_l (<125 → 5, 125-144 → 0, ≥145 → 1), bicarbonate_meq_l (<15 → 6, 15-19 → 3, ≥20 → 0), bilirubin_mg_dl (<4.0 → 0, 4.0-5.9 → 4, ≥6.0 → 9) or bilirubin_umol_l (<68.4 → 0, 68.4-102.5 → 4, ≥102.6 → 9), gcs (<6 → 26, 6-8 → 13, 9-10 → 7, 11-13 → 5, 14-15 → 0), age (<40 → 0, 40-59 → 7, 60-69 → 12, 70-74 → 15, 75-79 → 16, ≥80 → 18), admission_type (scheduled_surgical → 0, medical → 6, unscheduled_surgical → 8), chronic_disease (none → 0, metastatic_cancer → 9, hematologic_malignancy → 10, aids → 17, one row not additive); logit = -7.7631 + 0.0737*SAPS_II + 0.9971*ln(SAPS_II+1); hospital_mortality_probability = exp(logit)/(1+exp(logit)); max 163","hospital_mortality_probability":0.000425},{"logit":-7.7631,"score":0,"formula":"saps_ii","citation":{"id":"le-gall-1993","doi":"10.1001/jama.270.24.2957","pmid":"8254858","title":"A new Simplified Acute Physiology Score (SAPS II) based on a European/North American multicenter study","source":"JAMA. 1993;270(24):2957-2963","authors":"Le Gall JR, Lemeshow S, Saulnier F"},"max_score":163,"components":[{"value":35,"factor":"age","points":0,"present":false},{"value":80,"factor":"heart_rate","points":0,"present":false},{"value":120,"factor":"systolic_bp_mm_hg","points":0,"present":false},{"value":37,"factor":"temperature_c","points":0,"present":false},{"value":null,"branch":"not_ventilated","factor":"oxygenation","points":0,"present":false,"ventilated":false},{"value":1.5,"factor":"urine_output_l_day","points":0,"present":false},{"value":5,"branch":"urea_mmol_l","factor":"urea","points":0,"present":false},{"value":8,"factor":"wbc_k_ul","points":0,"present":false},{"value":4,"factor":"potassium_mmol_l","points":0,"present":false},{"value":140,"factor":"sodium_mmol_l","points":0,"present":false},{"value":24,"factor":"bicarbonate_meq_l","points":0,"present":false},{"value":0.8,"branch":"bilirubin_mg_dl","factor":"bilirubin","points":0,"present":false},{"value":15,"factor":"gcs","points":0,"present":false},{"value":"scheduled_surgical","factor":"admission_type","points":0,"present":false},{"value":"none","factor":"chronic_disease","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.","formula_expression":"SAPS II = sum of 17 Le Gall 1993 variables (worst values in 24h as assigned by the caller): heart_rate (<40 → 11, 40-69 → 2, 70-119 → 0, 120-159 → 4, ≥160 → 7), systolic_bp_mm_hg (<70 → 13, 70-99 → 5, 100-199 → 0, ≥200 → 2), temperature_c (<39 → 0, ≥39 → 3), PaO2/FiO2 mm Hg if ventilated or CPAP (<100 → 11, 100-199 → 9, ≥200 → 6) else 0, urine_output_l_day (<0.500 → 11, 0.500-0.999 → 4, ≥1.000 → 0), urea_mmol_l (<10.0 → 0, 10.0-29.9 → 6, ≥30.0 → 10) or bun_mg_dl (<28 → 0, 28-83 → 6, ≥84 → 10), wbc_k_ul (<1.0 → 12, 1.0-19.9 → 0, ≥20.0 → 3), potassium_mmol_l (<3.0 or ≥5.0 → 3, 3.0-4.9 → 0), sodium_mmol_l (<125 → 5, 125-144 → 0, ≥145 → 1), bicarbonate_meq_l (<15 → 6, 15-19 → 3, ≥20 → 0), bilirubin_mg_dl (<4.0 → 0, 4.0-5.9 → 4, ≥6.0 → 9) or bilirubin_umol_l (<68.4 → 0, 68.4-102.5 → 4, ≥102.6 → 9), gcs (<6 → 26, 6-8 → 13, 9-10 → 7, 11-13 → 5, 14-15 → 0), age (<40 → 0, 40-59 → 7, 60-69 → 12, 70-74 → 15, 75-79 → 16, ≥80 → 18), admission_type (scheduled_surgical → 0, medical → 6, unscheduled_surgical → 8), chronic_disease (none → 0, metastatic_cancer → 9, hematologic_malignancy → 10, aids → 17, one row not additive); logit = -7.7631 + 0.0737*SAPS_II + 0.9971*ln(SAPS_II+1); hospital_mortality_probability = exp(logit)/(1+exp(logit)); max 163","hospital_mortality_probability":0.000425}]}},"iconUrl":"https://api.magentlab.com/favicon.ico"},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"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."}}},"maxItems":25,"minItems":1}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"type":"string","const":"POST"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}}},"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.","lastUpdated":"2026-09-28T14:39:41.611Z","serviceName":"magent","x402Version":2}]}}