Le Gall 1993 Simplified Acute Physiology Score II from 12 physiology variables (
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.
Asked 1.4x its listed price for its own exampleour last check, 2026-09-28
1 of 1checks answered this week
373 msmedian answer time
$0.005listed price per call
$0.007price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.magentlab.com/api/calc/saps_ii
| Category | Everything else |
|---|---|
| Provider host | api.magentlab.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-28 | valid payment request | 402 | $0.007 | 373 ms |
Example input (from the provider)
{
"body": {
"items": [
{
"admission_type": "scheduled_surgical",
"age": 35,
"bicarbonate_meq_l": 24,
"bilirubin_mg_dl": 0.8,
"bilirubin_umol_l": 14,
"bun_mg_dl": 15,
"chronic_disease": "none",
"gcs": 15,
"heart_rate": 80,
"pao2_fio2": 250,
"potassium_mmol_l": 4,
"sodium_mmol_l": 140,
"systolic_bp_mm_hg": 120,
"temperature_c": 37,
"urea_mmol_l": 5,
"urine_output_l_day": 1.5,
"ventilated": false,
"wbc_k_ul": 8
},
{
"admission_type": "scheduled_surgical",
"age": 35,
"bicarbonate_meq_l": 24,
"bilirubin_mg_dl": 0.8,
"bilirubin_umol_l": 14,
"bun_mg_dl": 15,
"chronic_disease": "none",
"gcs": 15,
"heart_rate": 80,
"pao2_fio2": 250,
"potassium_mmol_l": 4,
"sodium_mmol_l": 140,
"systolic_bp_mm_hg": 120,
"temperature_c": 37,
"urea_mmol_l": 5,
"urine_output_l_day": 1.5,
"ventilated": false,
"wbc_k_ul": 8
}
]
},
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"properties": {
"admission_type": {
"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.",
"enum": [
"scheduled_surgical",
"medical",
"unscheduled_surgical"
],
"type": "string"
},
"age": {
"description": "Age in years, integer 18-120 (Le Gall 1993 excluded patients younger than 18). <40 \u2192 0; 40-59 \u2192 7; 60-69 \u2192 12; 70-74 \u2192 15; 75-79 \u2192 16; \u226580 \u2192 18.",
"type": "integer"
},
"bicarbonate_meq_l": {
"description": "Serum bicarbonate in mEq/L (2-60). <15 \u2192 6; 15-19 \u2192 3; \u226520 \u2192 0. Arterial pH is not a SAPS II variable.",
"type": "number"
},
"bilirubin_mg_dl": {
"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 \u2192 0; 4.0-5.9 \u2192 4; \u22656.0 \u2192 9.",
"type": "number"
},
"bilirubin_umol_l": {
"description": "Serum bilirubin in \u00b5mol/L (0-684). Alternate to bilirubin_mg_dl (Le Gall 1993 SI column). Ignored when bilirubin_mg_dl is present. <68.4 \u2192 0; 68.4-102.5 \u2192 4; \u2265102.6 \u2192 9. magent does not convert units.",
"type": "number"
},
"bun_mg_dl": {
"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 \u2192 0; 28-83 \u2192 6; \u226584 \u2192 10. magent does not convert BUN to urea.",
"type": "number"
},
"chronic_disease": {
"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.",
"enum": [
"none",
"metastatic_cancer",
"hematologic_malignancy",
"aids"
],
"type": "string"
},
"gcs": {
"description": "Glasgow Coma Scale total as assigned by the caller (integer 3-15). <6 \u2192 26; 6-8 \u2192 13; 9-10 \u2192 7; 11-13 \u2192 5; 14-15 \u2192 0. magent does not examine the patient.",
"type": "integer"
},
"heart_rate": {
"description": "Heart rate in beats/min, integer 20-250, worst in 24h as assigned by the caller. <40 \u2192 11; 40-69 \u2192 2; 70-119 \u2192 0; 120-159 \u2192 4; \u2265160 \u2192 7. magent does not measure pulse.",
"type": "integer"
},
"pao2_fio2": {
"description": "PaO2/FiO2 ratio in mm Hg (10-800). Required when ventilated is true. <100 \u2192 11; 100-199 \u2192 9; \u2265200 \u2192 6. Ignored when ventilated is false. magent does not compute the ratio from PaO2 and FiO2.",
"type": "number"
},
"potassium_mmol_l": {
"description": "Serum potassium in mmol/L (1-12). <3.0 \u2192 3; 3.0-4.9 \u2192 0; \u22655.0 \u2192 3.",
"type": "number"
},
"sodium_mmol_l": {
"description": "Serum sodium in mmol/L (90-200). <125 \u2192 5; 125-144 \u2192 0; \u2265145 \u2192 1.",
"type": "number"
},
"systolic_bp_mm_hg": {
"description": "Systolic blood pressure in mm Hg (20-300), worst in 24h as assigned by the caller. <70 \u2192 13; 70-99 \u2192 5; 100-199 \u2192 0; \u2265200 \u2192 2. magent does not measure blood pressure.",
"type": "number"
},
"temperature_c": {
"description": "Body temperature in \u00b0C (20-46). <39 \u2192 0; \u226539 \u2192 3. The 1993 table has no hypothermia points. magent does not measure temperature or convert Fahrenheit.",
"type": "number"
},
"urea_mmol_l": {
"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 \u2192 0; 10.0-29.9 \u2192 6; \u226530.0 \u2192 10.",
"type": "number"
},
"urine_output_l_day": {
"description": "Urine output in L/24h (0-20) as assigned by the caller. <0.500 \u2192 11; 0.500-0.999 \u2192 4; \u22651.000 \u2192 0. magent does not measure urine.",
"type": "number"
},
"ventilated": {
"description": "true if the caller assigns mechanical ventilation or CPAP in the first 24h (Le Gall 1993 PaO2/FiO2 row). false \u2192 0 oxygenation points and pao2_fio2 is ignored. Ventilated or CPAP scores at least 6 even when PaO2/FiO2 is \u2265200.",
"type": "boolean"
},