{
  "x402Version": 2,
  "id": 39535,
  "slug": "39535",
  "resource": "https://api.magentlab.com/api/calc/saps_3",
  "description": "Moreno 2005 SAPS 3 admission score from caller-assigned ICU-hour boxes (age, comorbidities, stay, location, vasoactive drugs, admission circumstances, and ten physiology items) plus the published 16-point offset. Converts the integer to hospital-mortality percent with the Part 2 global logit. Not SAPS II. Not APACHE. magent does not measure vitals.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "acute_abdomen": false,
                "age": 35,
                "aids": false,
                "anaphylactic_or_mixed_shock": false,
                "arterial_ph": 7.4,
                "bilirubin_mg_dl": 0.8,
                "bilirubin_umol_l": 14,
                "cancer_therapy": false,
                "chronic_hf_nyha_iv": false,
                "cirrhosis": false,
                "coma_stupor_agitation": false,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88,
                "focal_neurologic_deficit": false,
                "gcs": 15,
                "heart_rate": 80,
                "hematologic_cancer": false,
                "hypovolemic_shock": false,
                "icu_admission": "planned",
                "intracranial_mass_effect": false,
                "leukocytes_g_l": 8,
                "liver_failure": false,
                "location": "operating_room",
                "los_days": 1,
                "mechanical_ventilation": false,
                "metastatic_cancer": false,
                "nosocomial_infection": false,
                "pao2_fio2": 250,
                "pao2_mm_hg": 90,
                "platelets_g_l": 250,
                "respiratory_infection": false,
                "rhythm_disturbances": false,
                "seizures": false,
                "septic_shock": false,
                "severe_pancreatitis": false,
                "surgery_site": "all_others",
                "surgical_status": "scheduled_surgery",
                "systolic_bp_mm_hg": 120,
                "temperature_c": 37,
                "vasoactive_drugs": false
              },
              {
                "acute_abdomen": false,
                "age": 35,
                "aids": false,
                "anaphylactic_or_mixed_shock": false,
                "arterial_ph": 7.4,
                "bilirubin_mg_dl": 0.8,
                "bilirubin_umol_l": 14,
                "cancer_therapy": false,
                "chronic_hf_nyha_iv": false,
                "cirrhosis": false,
                "coma_stupor_agitation": false,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88,
                "focal_neurologic_deficit": false,
                "gcs": 15,
                "heart_rate": 80,
                "hematologic_cancer": false,
                "hypovolemic_shock": false,
                "icu_admission": "planned",
                "intracranial_mass_effect": false,
                "leukocytes_g_l": 8,
                "liver_failure": false,
                "location": "operating_room",
                "los_days": 1,
                "mechanical_ventilation": false,
                "metastatic_cancer": false,
                "nosocomial_infection": false,
                "pao2_fio2": 250,
                "pao2_mm_hg": 90,
                "platelets_g_l": 250,
                "respiratory_infection": false,
                "rhythm_disturbances": false,
                "seizures": false,
                "septic_shock": false,
                "severe_pancreatitis": false,
                "surgery_site": "all_others",
                "surgical_status": "scheduled_surgery",
                "systolic_bp_mm_hg": 120,
                "temperature_c": 37,
                "vasoactive_drugs": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Moreno RP, Metnitz PGH, Almeida E, et al; SAPS 3 Investigators",
                  "doi": "10.1007/s00134-005-2763-5",
                  "id": "moreno-2005",
                  "pmid": "16132893",
                  "source": "Intensive Care Med. 2005;31(10):1345-1355",
                  "title": "SAPS 3—From evaluation of the patient to evaluation of the intensive care unit. Part 2: Development of a prognostic model for hospital mortality at ICU admission"
                },
                "components": [
                  {
                    "factor": "admission_offset",
                    "points": 16,
                    "present": true,
                    "value": 16
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 35
                  },
                  {
                    "factor": "los_days",
                    "points": 0,
                    "present": false,
                    "value": 1
                  },
                  {
                    "factor": "location",
                    "points": 0,
                    "present": false,
                    "value": "operating_room"
                  },
                  {
                    "aids": false,
                    "cancer_therapy": false,
                    "chronic_hf_nyha_iv": false,
                    "cirrhosis": false,
                    "factor": "comorbidities",
                    "hematologic_cancer": false,
                    "metastatic_cancer": false,
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "vasoactive_drugs",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "icu_admission",
                    "points": 0,
                    "present": false,
                    "value": "planned"
                  },
                  {
                    "acute_abdomen": false,
                    "anaphylactic_or_mixed_shock": false,
                    "coma_stupor_agitation": false,
                    "factor": "reasons_for_admission",
                    "focal_neurologic_deficit": false,
                    "hypovolemic_shock": false,
                    "intracranial_mass_effect": false,
                    "liver_failure": false,
                    "points": 0,
                    "present": false,
                    "rhythm_disturbances": false,
                    "seizures": false,
                    "septic_shock": false,
                    "severe_pancreatitis": false
                  },
                  {
                    "factor": "surgical_status",
                    "points": 0,
                    "present": false,
                    "value": "scheduled_surgery"
                  },
                  {
                    "factor": "surgery_site",
                    "points": 0,
                    "present": false,
                    "value": "all_others"
                  },
                  {
                    "factor": "infection",
                    "nosocomial_infection": false,
                    "points": 0,
                    "present": false,
                    "respiratory_infection": false
                  },
                  {
                    "factor": "gcs",
                    "points": 0,
                    "present": false,
                    "value": 15
                  },
                  {
                    "branch": "bilirubin_mg_dl",
                    "factor": "bilirubin",
                    "points": 0,
                    "present": false,
                    "value": 0.8
                  },
                  {
                    "factor": "temperature_c",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "branch": "creatinine_mg_dl",
                    "factor": "creatinine",
                    "points": 0,
                    "present": false,
                    "value": 1
                  },
                  {
                    "factor": "heart_rate",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "leukocytes_g_l",
                    "points": 0,
                    "present": false,
                    "value": 8
                  },
                  {
                    "factor": "arterial_ph",
                    "points": 0,
                    "present": false,
                    "value": 7.4
                  },
                  {
                    "factor": "platelets_g_l",
                    "points": 0,
                    "present": false,
                    "value": 250
                  },
                  {
                    "factor": "systolic_bp_mm_hg",
                    "points": 0,
                    "present": false,
                    "value": 120
                  },
                  {
                    "branch": "pao2_no_mv",
                    "factor": "oxygenation",
                    "mechanical_ventilation": false,
                    "points": 0,
                    "present": false,
                    "value": 90
                  }
                ],
                "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.",
                "estimated_probability_percent": 0.17,
                "formula": "saps_3",
                "formula_expression": "SAPS 3 = 16 (admission offset) + Box I + Box II + Box III (Moreno 2005 Part 2 scoresheet). Box I: age (<40 → 0, 40-59 → 5, 60-69 → 9, 70-74 → 13, 75-79 → 15, ≥80 → 18); los_days (<14 → 0, 14-27 → 6, ≥28 → 7); location (operating_room → 0, emergency_room → 5, other_icu → 7, other → 8); comorbidities additive (cancer_therapy → 3, metastatic_cancer → 11, hematologic_cancer → 6, chronic_hf_nyha_iv → 6, cirrhosis → 8, aids → 8); vasoactive_drugs → 3. Box II: unplanned ICU admission → 3; reasons additive (rhythm_disturbances → -5, hypovolemic_shock → 3, septic_shock → 5, anaphylactic_or_mixed_shock → 5, liver_failure → 6, severe_pancreatitis → 9, acute_abdomen → 3, intracranial_mass_effect → 10, focal_neurologic_deficit → 7, seizures → -4, coma_stupor_agitation → 4; if rhythm and seizures both, only -4; hypovolemic_shock plus acute_abdomen scores both); surgical_status (scheduled_surgery → 0, emergency_surgery → 6, no_surgery → 5); surgery_site (transplantation → -11, trauma_isolated or trauma_multiple → -8, cabg_no_valve → -6, neurosurgery_cva → 5, all_others → 0); nosocomial_infection → 4, respiratory_infection → 5. Box III within ±1 h as assigned: GCS (3-4 → 15, 5 → 10, 6 → 7, 7-12 → 2, ≥13 → 0); bilirubin_mg_dl (<2 → 0, 2-<6 → 4, ≥6 → 5) or bilirubin_umol_l (<34.2 → 0, 34.2-<102.6 → 4, ≥102.6 → 5); temperature_c (<35 → 7, ≥35 → 0); creatinine_mg_dl (<1.2 → 0, 1.2-<2 → 2, 2-<3.5 → 7, ≥3.5 → 8) or creatinine_umol_l (<106.1 → 0, 106.1-<176.8 → 2, 176.8-<309.4 → 7, ≥309.4 → 8); heart_rate (<120 → 0, 120-159 → 5, ≥160 → 7); leukocytes_g_l (<15 → 0, ≥15 → 2); arterial_ph (≤7.25 → 3, >7.25 → 0); platelets_g_l (<20 → 13, 20-<50 → 8, 50-<100 → 5, ≥100 → 0); systolic_bp_mm_hg (<40 → 11, 40-<70 → 8, 70-<120 → 3, ≥120 → 0); oxygenation (PaO2/FiO2 <100 and MV → 11, PaO2/FiO2 ≥100 and MV → 7, PaO2 <60 and no MV → 5, else 0). logit = -32.6659 + ln(SAPS_3 + 20.5958) × 7.3068; estimated_probability_percent = 100 × exp(logit)/(1+exp(logit)); max 217",
                "logit": -6.3619,
                "max_score": 217,
                "score": 16
              },
              {
                "citation": {
                  "authors": "Moreno RP, Metnitz PGH, Almeida E, et al; SAPS 3 Investigators",
                  "doi": "10.1007/s00134-005-2763-5",
                  "id": "moreno-2005",
                  "pmid": "16132893",
                  "source": "Intensive Care Med. 2005;31(10):1345-1355",
                  "title": "SAPS 3—From evaluation of the patient to evaluation of the intensive care unit. Part 2: Development of a prognostic model for hospital mortality at ICU admission"
                },
                "components": [
                  {
                    "factor": "admission_offset",
                    "points": 16,
                    "present": true,
                    "value": 16
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 35
                  },
                  {
                    "factor": "los_days",
                    "points": 0,
                    "present": false,
                    "value": 1
                  },
                  {
                    "factor": "location",
                    "points": 0,
                    "present": false,
                    "value": "operating_room"
                  },
                  {
                    "aids": false,
                    "cancer_therapy": false,
                    "chronic_hf_nyha_iv": false,
                    "cirrhosis": false,
                    "factor": "comorbidities",
                    "hematologic_cancer": false,
                    "metastatic_cancer": false,
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "vasoactive_drugs",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "icu_admission",
                    "points": 0,
                    "present": false,
                    "value": "planned"
                  },
                  {
                    "acute_abdomen": false,
                    "anaphylactic_or_mixed_shock": false,
                    "coma_stupor_agitation": false,
                    "factor": "reasons_for_admission",
                    "focal_neurologic_deficit": false,
                    "hypovolemic_shock": false,
                    "intracranial_mass_effect": false,
                    "liver_failure": false,
                    "points": 0,
                    "present": false,
                    "rhythm_disturbances": false,
                    "seizures": false,
                    "septic_shock": false,
                    "severe_pancreatitis": false
                  },
                  {
                    "factor": "surgical_status",
                    "points": 0,
                    "present": false,
                    "value": "scheduled_surgery"
                  },
                  {
                    "factor": "surgery_site",
                    "points": 0,
                    "present": false,
                    "value": "all_others"
                  },
                  {
                    "factor": "infection",
                    "nosocomial_infection": false,
                    "points": 0,
                    "present": false,
                    "respiratory_infection": false
                  },
                  {
                    "factor": "gcs",
                    "points": 0,
                    "present": false,
                    "value": 15
                  },
                  {
                    "branch": "bilirubin_mg_dl",
                    "factor": "bilirubin",
                    "points": 0,
                    "present": false,
                    "value": 0.8
                  },
                  {
                    "factor": "temperature_c",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "branch": "creatinine_mg_dl",
                    "factor": "creatinine",
                    "points": 0,
                    "present": false,
                    "value": 1
                  },
                  {
                    "factor": "heart_rate",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "leukocytes_g_l",
                    "points": 0,
                    "present": false,
                    "value": 8
                  },
                  {
                    "factor": "arterial_ph",
                    "points": 0,
                    "present": false,
                    "value": 7.4
                  },
                  {
                    "factor": "platelets_g_l",
                    "points": 0,
                    "present": false,
                    "value": 250
                  },
                  {
                    "factor": "systolic_bp_mm_hg",
                    "points": 0,
                    "present": false,
                    "value": 120
                  },
                  {
                    "branch": "pao2_no_mv",
                    "factor": "oxygenation",
                    "mechanical_ventilation": false,
                    "points": 0,
                    "present": false,
                    "value": 90
                  }
                ],
                "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.",
                "estimated_probability_percent": 0.17,
                "formula": "saps_3",
                "formula_expression": "SAPS 3 = 16 (admission offset) + Box I + Box II + Box III (Moreno 2005 Part 2 scoresheet). Box I: age (<40 → 0, 40-59 → 5, 60-69 → 9, 70-74 → 13, 75-79 → 15, ≥80 → 18); los_days (<14 → 0, 14-27 → 6, ≥28 → 7); location (operating_room → 0, emergency_room → 5, other_icu → 7, other → 8); comorbidities additive (cancer_therapy → 3, metastatic_cancer → 11, hematologic_cancer → 6, chronic_hf_nyha_iv → 6, cirrhosis → 8, aids → 8); vasoactive_drugs → 3. Box II: unplanned ICU admission → 3; reasons additive (rhythm_disturbances → -5, hypovolemic_shock → 3, septic_shock → 5, anaphylactic_or_mixed_shock → 5, liver_failure → 6, severe_pancreatitis → 9, acute_abdomen → 3, intracranial_mass_effect → 10, focal_neurologic_deficit → 7, seizures → -4, coma_stupor_agitation → 4; if rhythm and seizures both, only -4; hypovolemic_shock plus acute_abdomen scores both); surgical_status (scheduled_surgery → 0, emergency_surgery → 6, no_surgery → 5); surgery_site (transplantation → -11, trauma_isolated or trauma_multiple → -8, cabg_no_valve → -6, neurosurgery_cva → 5, all_others → 0); nosocomial_infection → 4, respiratory_infection → 5. Box III within ±1 h as assigned: GCS (3-4 → 15, 5 → 10, 6 → 7, 7-12 → 2, ≥13 → 0); bilirubin_mg_dl (<2 → 0, 2-<6 → 4, ≥6 → 5) or bilirubin_umol_l (<34.2 → 0, 34.2-<102.6 → 4, ≥102.6 → 5); temperature_c (<35 → 7, ≥35 → 0); creatinine_mg_dl (<1.2 → 0, 1.2-<2 → 2, 2-<3.5 → 7, ≥3.5 → 8) or creatinine_umol_l (<106.1 → 0, 106.1-<176.8 → 2, 176.8-<309.4 → 7, ≥309.4 → 8); heart_rate (<120 → 0, 120-159 → 5, ≥160 → 7); leukocytes_g_l (<15 → 0, ≥15 → 2); arterial_ph (≤7.25 → 3, >7.25 → 0); platelets_g_l (<20 → 13, 20-<50 → 8, 50-<100 → 5, ≥100 → 0); systolic_bp_mm_hg (<40 → 11, 40-<70 → 8, 70-<120 → 3, ≥120 → 0); oxygenation (PaO2/FiO2 <100 and MV → 11, PaO2/FiO2 ≥100 and MV → 7, PaO2 <60 and no MV → 5, else 0). logit = -32.6659 + ln(SAPS_3 + 20.5958) × 7.3068; estimated_probability_percent = 100 × exp(logit)/(1+exp(logit)); max 217",
                "logit": -6.3619,
                "max_score": 217,
                "score": 16
              }
            ],
            "path": "/api/calc/saps_3"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "acute_abdomen": {
                          "description": "Digestive acute abdomen or other digestive (not pancreatitis) as one Box II row (+3). Additive with hypovolemic_shock. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "age": {
                          "description": "Age in years, integer 18-120, as assigned at ICU admission. <40 → 0; 40-59 → 5; 60-69 → 9; 70-74 → 13; 75-79 → 15; ≥80 → 18.",
                          "type": "integer"
                        },
                        "aids": {
                          "description": "AIDS as assigned (+8). Additive with cirrhosis. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "anaphylactic_or_mixed_shock": {
                          "description": "Anaphylactic, mixed, or undefined shock (+5). Additive. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "arterial_ph": {
                          "description": "Lowest arterial pH (6.5-8.0). ≤7.25 → 3; >7.25 → 0.",
                          "type": "number"
                        },
                        "bilirubin_mg_dl": {
                          "description": "Highest total 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. <2 → 0; 2-<6 → 4; ≥6 → 5.",
                          "type": "number"
                        },
                        "bilirubin_umol_l": {
                          "description": "Highest total bilirubin in µmol/L (0-684). Alternate to bilirubin_mg_dl. Ignored when bilirubin_mg_dl is present. <34.2 → 0; 34.2-<102.6 → 4; ≥102.6 → 5. magent does not convert units.",
                          "type": "number"
                        },
                        "cancer_therapy": {
                          "description": "Chemotherapy, other immunosuppression, radiotherapy, or steroid treatment as assigned (+3). Additive with other comorbidity flags. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "chronic_hf_nyha_iv": {
                          "description": "Chronic heart failure NYHA class IV as assigned (+6). Additive. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "cirrhosis": {
                          "description": "Cirrhosis as assigned (+8). Additive with aids. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "coma_stupor_agitation": {
                          "description": "Coma, stupor, obtunded, agitation, vigilance disturbance, confusion, or delirium (+4). Omit or false → 0.",
                          "type": "boolean"
                        },
                        "creatinine_mg_dl": {
                          "description": "Highest creatinine in mg/dL (0.1-20). One of creatinine_mg_dl or creatinine_umol_l is required. If both are sent, creatinine_mg_dl is scored. <1.2 → 0; 1.2-<2 → 2; 2-<3.5 → 7; ≥3.5 → 8.",
                          "type": "number"
                        },
                        "creatinine_umol_l": {
                          "description": "Highest creatinine in µmol/L (9-1768). Alternate to creatinine_mg_dl. Ignored when creatinine_mg_dl is present. <106.1 → 0; 106.1-<176.8 → 2; 176.8-<309.4 → 7; ≥309.4 → 8. magent does not convert units.",
                          "type": "number"
                        },
                        "focal_neurologic_deficit": {
                          "description": "Focal neurologic deficit (+7). Additive. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "gcs": {
                          "description": "Lowest estimated Glasgow Coma Scale, integer 3-15, within ±1 h of ICU admission as assigned by the caller. 3-4 → 15; 5 → 10; 6 → 7; 7-12 → 2; ≥13 → 0. magent does not examine the patient.",
                          "type": "integer"
                        },
                        "heart_rate": {
                          "description": "Highest heart rate in beats/min, integer 20-250. <120 → 0; 120-159 → 5; ≥160 → 7. magent does not measure pulse.",
                          "type": "integer"
                        },
                        "hematologic_cancer": {
                          "description": "Haematological cancer as assigned (+6). Additive. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "hypovolemic_shock": {
                          "description": "Hypovolemic hemorrhagic or non-hemorrhagic shock as one Box II row (+3). Additive with acute_abdomen. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "icu_admission": {
                          "description": "Planned (0) or unplanned (3) ICU admission as assigned by the caller. magent does not classify the admission.",
                          "enum": [
                            "planned",
                            "unplanned"
                          ],
                          "type": "string"
                        },
                        "intracranial_mass_effect": {
                          "description": "Neurologic intracranial mass effect (+10). Additive. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "leukocytes_g_l": {
                          "description": "Lowest leukocytes in G/L (0.1-200), numerically equal to 10^9/L. <15 → 0; ≥15 → 2. magent does not count cells.",
                          "type": "number"
                        },
                        "liver_failure": {
                          "description": "Hepatic liver failure as a reason for ICU admission (+6). Omit or false → 0.",
                          "type": "boolean"
                        },
                        "location": {
                          "description": "Intra-hospital location before ICU admission: operating_room (0), emergency_room (5), other_icu (7; intermediate/high-dependency, other ICU, or recovery), or other (8; ward or other). magent does not classify the bed.",
                          "enum": [
                            "operating_room",
                            "emergency_room",
                            "other_icu",
                            "other"
                          ],
                          "type": "string"
                        },
                        "los_days": {
                          "description": "Hospital stay in days before ICU admission as assigned by the caller (integer 0-365). <14 → 0; 14-27 → 6; ≥28 → 7. magent does not subtract timestamps.",
                          "type": "integer"
                        },
                        "mechanical_ventilation": {
                          "description": "true if the caller assigns mechanical ventilation at ICU admission. true scores PaO2/FiO2 (pao2_fio2 required). false scores PaO2 (pao2_mm_hg required) and pao2_fio2 is ignored.",
                          "type": "boolean"
                        },
                        "metastatic_cancer": {
                          "description": "Metastatic cancer as assigned (+11). Additive. Omit or false → 0. magent does not diagnose.",
                          "type": "boolean"
                        },
                        "nosocomial_infection": {
                          "description": "Hospital-acquired infection at ICU admission (+4). Additive with respiratory_infection. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "pao2_fio2": {
                          "description": "PaO2/FiO2 ratio in mm Hg (10-800). Required when mechanical_ventilation is true. <100 → 11; ≥100 → 7. Ignored when mechanical_ventilation is false. magent does not compute the ratio.",
                          "type": "number"
                        },
                        "pao2_mm_hg": {
                          "description": "Lowest PaO2 in mm Hg (20-700). Required when mechanical_ventilation is false. <60 → 5; ≥60 → 0. Ignored when mechanical_ventilation is true.",
                          "type": "number"
                        },
                        "platelets_g_l": {
                          "description": "Lowest platelets in G/L (0-2000). <20 → 13; 20-<50 → 8; 50-<100 → 5; ≥100 → 0.",
                          "type": "number"
                        },
                        "respiratory_infection": {
                          "description": "Lower respiratory tract infection at ICU admission (+5). Additive with nosocomial_infection. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "rhythm_disturbances": {
                          "description": "Cardiovascular reason: rhythm disturbances (-5). If seizures is also true, only -4 is scored. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "seizures": {
                          "description": "Seizures (-4). If rhythm_disturbances is also true, only -4 is scored. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "septic_shock": {
                          "description": "Septic shock as a reason for ICU admission (+5). Additive. Omit or false → 0.",
                          "type": "boolean"
                        },
                        "severe_pancreatitis": {
                          "description": "Severe pancreatitis (+9). Omit or false → 0.",
                          "type": "boolean"
                        },
                        "surgery_site": {
                          "description": "Anatomical site of surgery as assigned: all_others (0), transplantation (-11), trauma_isolated or trauma_multiple (-8), cabg_no_valve (-6), or neurosurgery_cva (5). One token. magent does not classify a procedure.",
                          "enum": [
                            "all_others",
                            "transplantation",
                            "trauma_isolated",
                            "trauma_multiple",
                            "cabg_no_valve",
                            "neurosurgery_cva"
                          ],
                          "type": "string"
                        },
                        "surgical_status": {
                          "description": "Surgical status at ICU admission: scheduled_surgery (0), emergency_surgery (6), or no_surgery (5).",
                          "enum": [
                            "scheduled_surgery",
                            "emergency_surgery",
                            "no_surgery"
                          ],
                          "type": "string"
                        },
                        "systolic_bp_mm_hg": {
                          "description": "Lowest systolic blood pressure in mm Hg (20-300). <40 → 11; 40-<70 → 8; 70-<120 → 3; ≥120 → 0. magent does not measure blood pressure.",
                          "type": "number"
                        },
                        "temperature_c": {
                          "description": "Highest body temperature in °C (20-46) within ±1 h as assigned. <35 → 7; ≥35 → 0. The scoresheet has no hyperthermia points. magent does not measure temperature or convert Fahrenheit.",
                          "type": "number"
                        },
                        "vasoactive_drugs": {
                          "description": "true if the caller assigns vasoactive drugs before ICU admission (+3). false → 0. magent does not inspect the medication list.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "los_days",
                        "location",
                        "vasoactive_drugs",
                        "icu_admission",
                        "surgical_status",
                        "surgery_site",
                        "gcs",
                        "temperature_c",
                        "heart_rate",
                        "leukocytes_g_l",
                        "arterial_ph",
                        "platelets_g_l",
                        "systolic_bp_mm_hg",
                        "mechanical_ventilation"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "saps-3",
    "icu",
    "severity",
    "physiology",
    "mortality",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:27:05.399Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T14:27:05.214Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "acute_abdomen": false,
                  "age": 35,
                  "aids": false,
                  "anaphylactic_or_mixed_shock": false,
                  "arterial_ph": 7.4,
                  "bilirubin_mg_dl": 0.8,
                  "bilirubin_umol_l": 14,
                  "cancer_therapy": false,
                  "chronic_hf_nyha_iv": false,
                  "cirrhosis": false,
                  "coma_stupor_agitation": false,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88,
                  "focal_neurologic_deficit": false,
                  "gcs": 15,
                  "heart_rate": 80,
                  "hematologic_cancer": false,
                  "hypovolemic_shock": false,
                  "icu_admission": "planned",
                  "intracranial_mass_effect": false,
                  "leukocytes_g_l": 8,
                  "liver_failure": false,
                  "location": "operating_room",
                  "los_days": 1,
                  "mechanical_ventilation": false,
                  "metastatic_cancer": false,
                  "nosocomial_infection": false,
                  "pao2_fio2": 250,
                  "pao2_mm_hg": 90,
                  "platelets_g_l": 250,
                  "respiratory_infection": false,
                  "rhythm_disturbances": false,
                  "seizures": false,
                  "septic_shock": false,
                  "severe_pancreatitis": false,
                  "surgery_site": "all_others",
                  "surgical_status": "scheduled_surgery",
                  "systolic_bp_mm_hg": 120,
                  "temperature_c": 37,
                  "vasoactive_drugs": false
                },
                {
                  "acute_abdomen": false,
                  "age": 35,
                  "aids": false,
                  "anaphylactic_or_mixed_shock": false,
                  "arterial_ph": 7.4,
                  "bilirubin_mg_dl": 0.8,
                  "bilirubin_umol_l": 14,
                  "cancer_therapy": false,
                  "chronic_hf_nyha_iv": false,
                  "cirrhosis": false,
                  "coma_stupor_agitation": false,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88,
                  "focal_neurologic_deficit": false,
                  "gcs": 15,
                  "heart_rate": 80,
                  "hematologic_cancer": false,
                  "hypovolemic_shock": false,
                  "icu_admission": "planned",
                  "intracranial_mass_effect": false,
                  "leukocytes_g_l": 8,
                  "liver_failure": false,
                  "location": "operating_room",
                  "los_days": 1,
                  "mechanical_ventilation": false,
                  "metastatic_cancer": false,
                  "nosocomial_infection": false,
                  "pao2_fio2": 250,
                  "pao2_mm_hg": 90,
                  "platelets_g_l": 250,
                  "respiratory_infection": false,
                  "rhythm_disturbances": false,
                  "seizures": false,
                  "septic_shock": false,
                  "severe_pancreatitis": false,
                  "surgery_site": "all_others",
                  "surgical_status": "scheduled_surgery",
                  "systolic_bp_mm_hg": 120,
                  "temperature_c": 37,
                  "vasoactive_drugs": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Moreno RP, Metnitz PGH, Almeida E, et al; SAPS 3 Investigators",
                    "doi": "10.1007/s00134-005-2763-5",
                    "id": "moreno-2005",
                    "pmid": "16132893",
                    "source": "Intensive Care Med. 2005;31(10):1345-1355",
                    "title": "SAPS 3—From evaluation of the patient to evaluation of the intensive care unit. Part 2: Development of a prognostic model for hospital mortality at ICU admission"
                  },
                  "components": [
                    {
                      "factor": "admission_offset",
                      "points": 16,
                      "present": true,
                      "value": 16
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 35
                    },
                    {
                      "factor": "los_days",
                      "points": 0,
                      "present": false,
                      "value": 1
                    },
                    {
                      "factor": "location",
                      "points": 0,
                      "present": false,
                      "value": "operating_room"
                    },
                    {
                      "aids": false,
                      "cancer_therapy": false,
                      "chronic_hf_nyha_iv": false,
                      "cirrhosis": false,
                      "factor": "comorbidities",
                      "hematologic_cancer": false,
                      "metastatic_cancer": false,
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "vasoactive_drugs",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "icu_admission",
                      "points": 0,
                      "present": false,
                      "value": "planned"
                    },
                    {
                      "acute_abdomen": false,
                      "anaphylactic_or_mixed_shock": false,
                      "coma_stupor_agitation": false,
                      "factor": "reasons_for_admission",
                      "focal_neurologic_deficit": false,
                      "hypovolemic_shock": false,
                      "intracranial_mass_effect": false,
                      "liver_failure": false,
                      "points": 0,
                      "present": false,
                      "rhythm_disturbances": false,
                      "seizures": false,
                      "septic_shock": false,
                      "severe_pancreatitis": false
                    },
                    {
                      "factor": "surgical_status",
                      "points": 0,
                      "present": false,
                      "value": "scheduled_surgery"
                    },
                    {
                      "factor": "surgery_site",
                      "points": 0,
                      "present": false,
                      "value": "all_others"
                    },
                    {
                      "factor": "infection",
                      "nosocomial_infection": false,
                      "points": 0,
                      "present": false,
                      "respiratory_infection": false
                    },
                    {
                      "factor": "gcs",
                      "points": 0,
                      "present": false,
                      "value": 15
                    },
                    {
                      "branch": "bilirubin_mg_dl",
                      "factor": "bilirubin",
                      "points": 0,
                      "present": false,
                      "value": 0.8
                    },
                    {
                      "factor": "temperature_c",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "branch": "creatinine_mg_dl",
                      "factor": "creatinine",
                      "points": 0,
                      "present": false,
                      "value": 1
                    },
                    {
                      "factor": "heart_rate",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "leukocytes_g_l",
                      "points": 0,
                      "present": false,
                      "value": 8
                    },
                    {
                      "factor": "arterial_ph",
                      "points": 0,
                      "present": false,
                      "value": 7.4
                    },
                    {
                      "factor": "platelets_g_l",
                      "points": 0,
                      "present": false,
                      "value": 250
                    },
                    {
                      "factor": "systolic_bp_mm_hg",
                      "points": 0,
                      "present": false,
                      "value": 120
                    },
                    {
                      "branch": "pao2_no_mv",
                      "factor": "oxygenation",
                      "mechanical_ventilation": false,
                      "points": 0,
                      "present": false,
                      "value": 90
                    }
                  ],
                  "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.",
                  "estimated_probability_percent": 0.17,
                  "formula": "saps_3",
                  "formula_expression": "SAPS 3 = 16 (admission offset) + Box I + Box II + Box III (Moreno 2005 Part 2 scoresheet). Box I: age (<40 → 0, 40-59 → 5, 60-69 → 9, 70-74 → 13, 75-79 → 15, ≥80 → 18); los_days (<14 → 0, 14-27 → 6, ≥28 → 7); location (operating_room → 0, emergency_room → 5, other_icu → 7, other → 8); comorbidities additive (cancer_therapy → 3, metastatic_cancer → 11, hematologic_cancer → 6, chronic_hf_nyha_iv → 6, cirrhosis → 8, aids → 8); vasoactive_drugs → 3. Box II: unplanned ICU admission → 3; reasons additive (rhythm_disturbances → -5, hypovolemic_shock → 3, septic_shock → 5, anaphylactic_or_mixed_shock → 5, liver_failure → 6, severe_pancreatitis → 9, acute_abdomen → 3, intracranial_mass_effect → 10, focal_neurologic_deficit → 7, seizures → -4, coma_stupor_agitation → 4; if rhythm and seizures both, only -4; hypovolemic_shock plus acute_abdomen scores both); surgical_status (scheduled_surgery → 0, emergency_surgery → 6, no_surgery → 5); surgery_site (transplantation → -11, trauma_isolated or trauma_multiple → -8, cabg_no_valve → -6, neurosurgery_cva → 5, all_others → 0); nosocomial_infection → 4, respiratory_infection → 5. Box III within ±1 h as assigned: GCS (3-4 → 15, 5 → 10, 6 → 7, 7-12 → 2, ≥13 → 0); bilirubin_mg_dl (<2 → 0, 2-<6 → 4, ≥6 → 5) or bilirubin_umol_l (<34.2 → 0, 34.2-<102.6 → 4, ≥102.6 → 5); temperature_c (<35 → 7, ≥35 → 0); creatinine_mg_dl (<1.2 → 0, 1.2-<2 → 2, 2-<3.5 → 7, ≥3.5 → 8) or creatinine_umol_l (<106.1 → 0, 106.1-<176.8 → 2, 176.8-<309.4 → 7, ≥309.4 → 8); heart_rate (<120 → 0, 120-159 → 5, ≥160 → 7); leukocytes_g_l (<15 → 0, ≥15 → 2); arterial_ph (≤7.25 → 3, >7.25 → 0); platelets_g_l (<20 → 13, 20-<50 → 8, 50-<100 → 5, ≥100 → 0); systolic_bp_mm_hg (<40 → 11, 40-<70 → 8, 70-<120 → 3, ≥120 → 0); oxygenation (PaO2/FiO2 <100 and MV → 11, PaO2/FiO2 ≥100 and MV → 7, PaO2 <60 and no MV → 5, else 0). logit = -32.6659 + ln(SAPS_3 + 20.5958) × 7.3068; estimated_probability_percent = 100 × exp(logit)/(1+exp(logit)); max 217",
                  "logit": -6.3619,
                  "max_score": 217,
                  "score": 16
                },
                {
                  "citation": {
                    "authors": "Moreno RP, Metnitz PGH, Almeida E, et al; SAPS 3 Investigators",
                    "doi": "10.1007/s00134-005-2763-5",
                    "id": "moreno-2005",
                    "pmid": "16132893",
                    "source": "Intensive Care Med. 2005;31(10):1345-1355",
                    "title": "SAPS 3—From evaluation of the patient to evaluation of the intensive care unit. Part 2: Development of a prognostic model for hospital mortality at ICU admission"
                  },
                  "components": [
                    {
                      "factor": "admission_offset",
                      "points": 16,
                      "present": true,
                      "value": 16
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 35
                    },
                    {
                      "factor": "los_days",
                      "points": 0,
                      "present": false,
                      "value": 1
                    },
                    {
                      "factor": "location",
                      "points": 0,
                      "present": false,
                      "value": "operating_room"
                    },
                    {
                      "aids": false,
                      "cancer_therapy": false,
                      "chronic_hf_nyha_iv": false,
                      "cirrhosis": false,
                      "factor": "comorbidities",
                      "hematologic_cancer": false,
                      "metastatic_cancer": false,
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "vasoactive_drugs",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "icu_admission",
                      "points": 0,
                      "present": false,
                      "value": "planned"
                    },
                    {
                      "acute_abdomen": false,
                      "anaphylactic_or_mixed_shock": false,
                      "coma_stupor_agitation": false,
                      "factor": "reasons_for_admission",
                      "focal_neurologic_deficit": false,
                      "hypovolemic_shock": false,
                      "intracranial_mass_effect": false,
                      "liver_failure": false,
                      "points": 0,
                      "present": false,
                      "rhythm_disturbances": false,
                      "seizures": false,
                      "septic_shock": false,
                      "severe_pancreatitis": false
                    },
                    {
                      "factor": "surgical_status",
                      "points": 0,
                      "present": false,
                      "value": "scheduled_surgery"
                    },
                    {
                      "factor": "surgery_site",
                      "points": 0,
                      "present": false,
                      "value": "all_others"
                    },
                    {
                      "factor": "infection",
                      "nosocomial_infection": false,
                      "points": 0,
                      "present": false,
                      "respiratory_infection": false
                    },
                    {
                      "factor": "gcs",
                      "points": 0,
                      "present": false,
                      "value": 15
                    },
                    {
                      "branch": "bilirubin_mg_dl",
                      "factor": "bilirubin",
                      "points": 0,
                      "present": false,
                      "value": 0.8
                    },
                    {
                      "factor": "temperature_c",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "branch": "creatinine_mg_dl",
                      "factor": "creatinine",
                      "points": 0,
                      "present": false,
                      "value": 1
                    },
                    {
                      "factor": "heart_rate",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "leukocytes_g_l",
                      "points": 0,
                      "present": false,
                      "value": 8
                    },
                    {
                      "factor": "arterial_ph",
                      "points": 0,
                      "present": false,
                      "value": 7.4
                    },
                    {
                      "factor": "platelets_g_l",
                      "points": 0,
                      "present": false,
                      "value": 250
                    },
                    {
                      "factor": "systolic_bp_mm_hg",
                      "points": 0,
                      "present": false,
                      "value": 120
                    },
                    {
                      "branch": "pao2_no_mv",
                      "factor": "oxygenation",
                      "mechanical_ventilation": false,
                      "points": 0,
                      "present": false,
                      "value": 90
                    }
                  ],
                  "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.",
                  "estimated_probability_percent": 0.17,
                  "formula": "saps_3",
                  "formula_expression": "SAPS 3 = 16 (admission offset) + Box I + Box II + Box III (Moreno 2005 Part 2 scoresheet). Box I: age (<40 → 0, 40-59 → 5, 60-69 → 9, 70-74 → 13, 75-79 → 15, ≥80 → 18); los_days (<14 → 0, 14-27 → 6, ≥28 → 7); location (operating_room → 0, emergency_room → 5, other_icu → 7, other → 8); comorbidities additive (cancer_therapy → 3, metastatic_cancer → 11, hematologic_cancer → 6, chronic_hf_nyha_iv → 6, cirrhosis → 8, aids → 8); vasoactive_drugs → 3. Box II: unplanned ICU admission → 3; reasons additive (rhythm_disturbances → -5, hypovolemic_shock → 3, septic_shock → 5, anaphylactic_or_mixed_shock → 5, liver_failure → 6, severe_pancreatitis → 9, acute_abdomen → 3, intracranial_mass_effect → 10, focal_neurologic_deficit → 7, seizures → -4, coma_stupor_agitation → 4; if rhythm and seizures both, only -4; hypovolemic_shock plus acute_abdomen scores both); surgical_status (scheduled_surgery → 0, emergency_surgery → 6, no_surgery → 5); surgery_site (transplantation → -11, trauma_isolated or trauma_multiple → -8, cabg_no_valve → -6, neurosurgery_cva → 5, all_others → 0); nosocomial_infection → 4, respiratory_infection → 5. Box III within ±1 h as assigned: GCS (3-4 → 15, 5 → 10, 6 → 7, 7-12 → 2, ≥13 → 0); bilirubin_mg_dl (<2 → 0, 2-<6 → 4, ≥6 → 5) or bilirubin_umol_l (<34.2 → 0, 34.2-<102.6 → 4, ≥102.6 → 5); temperature_c (<35 → 7, ≥35 → 0); creatinine_mg_dl (<1.2 → 0, 1.2-<2 → 2, 2-<3.5 → 7, ≥3.5 → 8) or creatinine_umol_l (<106.1 → 0, 106.1-<176.8 → 2, 176.8-<309.4 → 7, ≥309.4 → 8); heart_rate (<120 → 0, 120-159 → 5, ≥160 → 7); leukocytes_g_l (<15 → 0, ≥15 → 2); arterial_ph (≤7.25 → 3, >7.25 → 0); platelets_g_l (<20 → 13, 20-<50 → 8, 50-<100 → 5, ≥100 → 0); systolic_bp_mm_hg (<40 → 11, 40-<70 → 8, 70-<120 → 3, ≥120 → 0); oxygenation (PaO2/FiO2 <100 and MV → 11, PaO2/FiO2 ≥100 and MV → 7, PaO2 <60 and no MV → 5, else 0). logit = -32.6659 + ln(SAPS_3 + 20.5958) × 7.3068; estimated_probability_percent = 100 × exp(logit)/(1+exp(logit)); max 217",
                  "logit": -6.3619,
                  "max_score": 217,
                  "score": 16
                }
              ],
              "path": "/api/calc/saps_3"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "acute_abdomen": {
                            "description": "Digestive acute abdomen or other digestive (not pancreatitis) as one Box II row (+3). Additive with hypovolemic_shock. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "age": {
                            "description": "Age in years, integer 18-120, as assigned at ICU admission. <40 → 0; 40-59 → 5; 60-69 → 9; 70-74 → 13; 75-79 → 15; ≥80 → 18.",
                            "type": "integer"
                          },
                          "aids": {
                            "description": "AIDS as assigned (+8). Additive with cirrhosis. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "anaphylactic_or_mixed_shock": {
                            "description": "Anaphylactic, mixed, or undefined shock (+5). Additive. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "arterial_ph": {
                            "description": "Lowest arterial pH (6.5-8.0). ≤7.25 → 3; >7.25 → 0.",
                            "type": "number"
                          },
                          "bilirubin_mg_dl": {
                            "description": "Highest total 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. <2 → 0; 2-<6 → 4; ≥6 → 5.",
                            "type": "number"
                          },
                          "bilirubin_umol_l": {
                            "description": "Highest total bilirubin in µmol/L (0-684). Alternate to bilirubin_mg_dl. Ignored when bilirubin_mg_dl is present. <34.2 → 0; 34.2-<102.6 → 4; ≥102.6 → 5. magent does not convert units.",
                            "type": "number"
                          },
                          "cancer_therapy": {
                            "description": "Chemotherapy, other immunosuppression, radiotherapy, or steroid treatment as assigned (+3). Additive with other comorbidity flags. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "chronic_hf_nyha_iv": {
                            "description": "Chronic heart failure NYHA class IV as assigned (+6). Additive. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "cirrhosis": {
                            "description": "Cirrhosis as assigned (+8). Additive with aids. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "coma_stupor_agitation": {
                            "description": "Coma, stupor, obtunded, agitation, vigilance disturbance, confusion, or delirium (+4). Omit or false → 0.",
                            "type": "boolean"
                          },
                          "creatinine_mg_dl": {
                            "description": "Highest creatinine in mg/dL (0.1-20). One of creatinine_mg_dl or creatinine_umol_l is required. If both are sent, creatinine_mg_dl is scored. <1.2 → 0; 1.2-<2 → 2; 2-<3.5 → 7; ≥3.5 → 8.",
                            "type": "number"
                          },
                          "creatinine_umol_l": {
                            "description": "Highest creatinine in µmol/L (9-1768). Alternate to creatinine_mg_dl. Ignored when creatinine_mg_dl is present. <106.1 → 0; 106.1-<176.8 → 2; 176.8-<309.4 → 7; ≥309.4 → 8. magent does not convert units.",
                            "type": "number"
                          },
                          "focal_neurologic_deficit": {
                            "description": "Focal neurologic deficit (+7). Additive. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "gcs": {
                            "description": "Lowest estimated Glasgow Coma Scale, integer 3-15, within ±1 h of ICU admission as assigned by the caller. 3-4 → 15; 5 → 10; 6 → 7; 7-12 → 2; ≥13 → 0. magent does not examine the patient.",
                            "type": "integer"
                          },
                          "heart_rate": {
                            "description": "Highest heart rate in beats/min, integer 20-250. <120 → 0; 120-159 → 5; ≥160 → 7. magent does not measure pulse.",
                            "type": "integer"
                          },
                          "hematologic_cancer": {
                            "description": "Haematological cancer as assigned (+6). Additive. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "hypovolemic_shock": {
                            "description": "Hypovolemic hemorrhagic or non-hemorrhagic shock as one Box II row (+3). Additive with acute_abdomen. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "icu_admission": {
                            "description": "Planned (0) or unplanned (3) ICU admission as assigned by the caller. magent does not classify the admission.",
                            "enum": [
                              "planned",
                              "unplanned"
                            ],
                            "type": "string"
                          },
                          "intracranial_mass_effect": {
                            "description": "Neurologic intracranial mass effect (+10). Additive. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "leukocytes_g_l": {
                            "description": "Lowest leukocytes in G/L (0.1-200), numerically equal to 10^9/L. <15 → 0; ≥15 → 2. magent does not count cells.",
                            "type": "number"
                          },
                          "liver_failure": {
                            "description": "Hepatic liver failure as a reason for ICU admission (+6). Omit or false → 0.",
                            "type": "boolean"
                          },
                          "location": {
                            "description": "Intra-hospital location before ICU admission: operating_room (0), emergency_room (5), other_icu (7; intermediate/high-dependency, other ICU, or recovery), or other (8; ward or other). magent does not classify the bed.",
                            "enum": [
                              "operating_room",
                              "emergency_room",
                              "other_icu",
                              "other"
                            ],
                            "type": "string"
                          },
                          "los_days": {
                            "description": "Hospital stay in days before ICU admission as assigned by the caller (integer 0-365). <14 → 0; 14-27 → 6; ≥28 → 7. magent does not subtract timestamps.",
                            "type": "integer"
                          },
                          "mechanical_ventilation": {
                            "description": "true if the caller assigns mechanical ventilation at ICU admission. true scores PaO2/FiO2 (pao2_fio2 required). false scores PaO2 (pao2_mm_hg required) and pao2_fio2 is ignored.",
                            "type": "boolean"
                          },
                          "metastatic_cancer": {
                            "description": "Metastatic cancer as assigned (+11). Additive. Omit or false → 0. magent does not diagnose.",
                            "type": "boolean"
                          },
                          "nosocomial_infection": {
                            "description": "Hospital-acquired infection at ICU admission (+4). Additive with respiratory_infection. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "pao2_fio2": {
                            "description": "PaO2/FiO2 ratio in mm Hg (10-800). Required when mechanical_ventilation is true. <100 → 11; ≥100 → 7. Ignored when mechanical_ventilation is false. magent does not compute the ratio.",
                            "type": "number"
                          },
                          "pao2_mm_hg": {
                            "description": "Lowest PaO2 in mm Hg (20-700). Required when mechanical_ventilation is false. <60 → 5; ≥60 → 0. Ignored when mechanical_ventilation is true.",
                            "type": "number"
                          },
                          "platelets_g_l": {
                            "description": "Lowest platelets in G/L (0-2000). <20 → 13; 20-<50 → 8; 50-<100 → 5; ≥100 → 0.",
                            "type": "number"
                          },
                          "respiratory_infection": {
                            "description": "Lower respiratory tract infection at ICU admission (+5). Additive with nosocomial_infection. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "rhythm_disturbances": {
                            "description": "Cardiovascular reason: rhythm disturbances (-5). If seizures is also true, only -4 is scored. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "seizures": {
                            "description": "Seizures (-4). If rhythm_disturbances is also true, only -4 is scored. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "septic_shock": {
                            "description": "Septic shock as a reason for ICU admission (+5). Additive. Omit or false → 0.",
                            "type": "boolean"
                          },
                          "severe_pancreatitis": {
                            "description": "Severe pancreatitis (+9). Omit or false → 0.",
                            "type": "boolean"
                          },
                          "surgery_site": {
                            "description": "Anatomical site of surgery as assigned: all_others (0), transplantation (-11), trauma_isolated or trauma_multiple (-8), cabg_no_valve (-6), or neurosurgery_cva (5). One token. magent does not classify a procedure.",
                            "enum": [
                              "all_others",
                              "transplantation",
                              "trauma_isolated",
                              "trauma_multiple",
                              "cabg_no_valve",
                              "neurosurgery_cva"
                            ],
                            "type": "string"
                          },
                          "surgical_status": {
                            "description": "Surgical status at ICU admission: scheduled_surgery (0), emergency_surgery (6), or no_surgery (5).",
                            "enum": [
                              "scheduled_surgery",
                              "emergency_surgery",
                              "no_surgery"
                            ],
                            "type": "string"
                          },
                          "systolic_bp_mm_hg": {
                            "description": "Lowest systolic blood pressure in mm Hg (20-300). <40 → 11; 40-<70 → 8; 70-<120 → 3; ≥120 → 0. magent does not measure blood pressure.",
                            "type": "number"
                          },
                          "temperature_c": {
                            "description": "Highest body temperature in °C (20-46) within ±1 h as assigned. <35 → 7; ≥35 → 0. The scoresheet has no hyperthermia points. magent does not measure temperature or convert Fahrenheit.",
                            "type": "number"
                          },
                          "vasoactive_drugs": {
                            "description": "true if the caller assigns vasoactive drugs before ICU admission (+3). false → 0. magent does not inspect the medication list.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "los_days",
                          "location",
                          "vasoactive_drugs",
                          "icu_admission",
                          "surgical_status",
                          "surgery_site",
                          "gcs",
                          "temperature_c",
                          "heart_rate",
                          "leukocytes_g_l",
                          "arterial_ph",
                          "platelets_g_l",
                          "systolic_bp_mm_hg",
                          "mechanical_ventilation"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}