{
  "x402Version": 2,
  "id": 39335,
  "slug": "39335",
  "resource": "https://api.magentlab.com/api/calc/apache_ii",
  "description": "Knaus 1985 APACHE II integer: 12 Acute Physiology Score items (worst in 24 hours as assigned by the caller) plus age and chronic-health points, max 71. Oxygenation uses A-aDO2 when FiO2 is at least 0.5 and PaO2 when FiO2 is below 0.5. Creatinine points double in acute renal failure. Does not compute predicted death risk. magent does not measure vitals.",
  "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": [
              {
                "aa_gradient": 100,
                "acute_renal_failure": false,
                "age": 40,
                "arterial_ph": 7.4,
                "chronic_health": false,
                "creatinine_mg_dl": 1,
                "elective_postop": false,
                "fio2": 0.21,
                "gcs": 15,
                "heart_rate": 80,
                "hematocrit_percent": 40,
                "map_mm_hg": 90,
                "pao2_mm_hg": 90,
                "potassium_mmol_l": 4,
                "respiratory_rate": 16,
                "sodium_mmol_l": 140,
                "temperature_c": 37,
                "wbc_k_ul": 8
              },
              {
                "aa_gradient": 100,
                "acute_renal_failure": false,
                "age": 40,
                "arterial_ph": 7.4,
                "chronic_health": false,
                "creatinine_mg_dl": 1,
                "elective_postop": false,
                "fio2": 0.21,
                "gcs": 15,
                "heart_rate": 80,
                "hematocrit_percent": 40,
                "map_mm_hg": 90,
                "pao2_mm_hg": 90,
                "potassium_mmol_l": 4,
                "respiratory_rate": 16,
                "sodium_mmol_l": 140,
                "temperature_c": 37,
                "wbc_k_ul": 8
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Knaus WA, Draper EA, Wagner DP, Zimmerman JE",
                  "doi": "10.1097/00003246-198510000-00009",
                  "id": "knaus-1985",
                  "pmid": "3928249",
                  "source": "Crit Care Med. 1985;13(10):818-829",
                  "title": "APACHE II: a severity of disease classification system"
                },
                "components": [
                  {
                    "factor": "temperature_c",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "factor": "map_mm_hg",
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "heart_rate",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "respiratory_rate",
                    "points": 0,
                    "present": false,
                    "value": 16
                  },
                  {
                    "branch": "pao2_mm_hg",
                    "factor": "oxygenation",
                    "fio2": 0.21,
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "arterial_ph",
                    "points": 0,
                    "present": false,
                    "value": 7.4
                  },
                  {
                    "factor": "sodium_mmol_l",
                    "points": 0,
                    "present": false,
                    "value": 140
                  },
                  {
                    "factor": "potassium_mmol_l",
                    "points": 0,
                    "present": false,
                    "value": 4
                  },
                  {
                    "acute_renal_failure": false,
                    "factor": "creatinine_mg_dl",
                    "points": 0,
                    "present": false,
                    "value": 1
                  },
                  {
                    "factor": "hematocrit_percent",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "wbc_k_ul",
                    "points": 0,
                    "present": false,
                    "value": 8
                  },
                  {
                    "factor": "gcs",
                    "points": 0,
                    "present": false,
                    "value": 15
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "chronic_health": false,
                    "elective_postop": false,
                    "factor": "chronic_health",
                    "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": "apache_ii",
                "formula_expression": "APACHE II = APS + age_points + chronic_health_points; APS is the sum of 12 Knaus 1985 Table 1 items (worst values in 24h as assigned by the caller): temperature_c, map_mm_hg, heart_rate, respiratory_rate, oxygenation (A-aDO2 if fio2 >= 0.5, PaO2 if fio2 < 0.5), arterial_ph, sodium_mmol_l, potassium_mmol_l, creatinine_mg_dl (doubled if acute_renal_failure), hematocrit_percent, wbc_k_ul, and 15-gcs; age <=44 → 0, 45-54 → 2, 55-64 → 3, 65-74 → 5, >=75 → 6; chronic health 0 if none, else +5 nonoperative or emergency postoperative or +2 elective postoperative; max 71",
                "max_score": 71,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Knaus WA, Draper EA, Wagner DP, Zimmerman JE",
                  "doi": "10.1097/00003246-198510000-00009",
                  "id": "knaus-1985",
                  "pmid": "3928249",
                  "source": "Crit Care Med. 1985;13(10):818-829",
                  "title": "APACHE II: a severity of disease classification system"
                },
                "components": [
                  {
                    "factor": "temperature_c",
                    "points": 0,
                    "present": false,
                    "value": 37
                  },
                  {
                    "factor": "map_mm_hg",
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "heart_rate",
                    "points": 0,
                    "present": false,
                    "value": 80
                  },
                  {
                    "factor": "respiratory_rate",
                    "points": 0,
                    "present": false,
                    "value": 16
                  },
                  {
                    "branch": "pao2_mm_hg",
                    "factor": "oxygenation",
                    "fio2": 0.21,
                    "points": 0,
                    "present": false,
                    "value": 90
                  },
                  {
                    "factor": "arterial_ph",
                    "points": 0,
                    "present": false,
                    "value": 7.4
                  },
                  {
                    "factor": "sodium_mmol_l",
                    "points": 0,
                    "present": false,
                    "value": 140
                  },
                  {
                    "factor": "potassium_mmol_l",
                    "points": 0,
                    "present": false,
                    "value": 4
                  },
                  {
                    "acute_renal_failure": false,
                    "factor": "creatinine_mg_dl",
                    "points": 0,
                    "present": false,
                    "value": 1
                  },
                  {
                    "factor": "hematocrit_percent",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "wbc_k_ul",
                    "points": 0,
                    "present": false,
                    "value": 8
                  },
                  {
                    "factor": "gcs",
                    "points": 0,
                    "present": false,
                    "value": 15
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "chronic_health": false,
                    "elective_postop": false,
                    "factor": "chronic_health",
                    "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": "apache_ii",
                "formula_expression": "APACHE II = APS + age_points + chronic_health_points; APS is the sum of 12 Knaus 1985 Table 1 items (worst values in 24h as assigned by the caller): temperature_c, map_mm_hg, heart_rate, respiratory_rate, oxygenation (A-aDO2 if fio2 >= 0.5, PaO2 if fio2 < 0.5), arterial_ph, sodium_mmol_l, potassium_mmol_l, creatinine_mg_dl (doubled if acute_renal_failure), hematocrit_percent, wbc_k_ul, and 15-gcs; age <=44 → 0, 45-54 → 2, 55-64 → 3, 65-74 → 5, >=75 → 6; chronic health 0 if none, else +5 nonoperative or emergency postoperative or +2 elective postoperative; max 71",
                "max_score": 71,
                "score": 0
              }
            ],
            "path": "/api/calc/apache_ii"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "aa_gradient": {
                          "description": "A-aDO2 in mm Hg (0-800). Required when fio2 ≥ 0.5. ≥500 → 4; 350-499 → 3; 200-349 → 2; <200 → 0. Ignored when fio2 < 0.5. magent does not compute A-aDO2 from PaO2.",
                          "type": "number"
                        },
                        "acute_renal_failure": {
                          "description": "true doubles the creatinine Table 1 points (Knaus 1985). false leaves creatinine points unchanged. magent does not diagnose renal failure.",
                          "type": "boolean"
                        },
                        "age": {
                          "description": "Age in years, integer 16-120. ≤44 → 0; 45-54 → 2; 55-64 → 3; 65-74 → 5; ≥75 → 6.",
                          "type": "integer"
                        },
                        "arterial_ph": {
                          "description": "Arterial pH (6.5-8.0). ≥7.70 → 4; 7.60-7.69 → 3; 7.50-7.59 → 1; 7.33-7.49 → 0; 7.25-7.32 → 2; 7.15-7.24 → 3; <7.15 → 4. Venous HCO3 substitution from Table 1 is not accepted.",
                          "type": "number"
                        },
                        "chronic_health": {
                          "description": "true if the caller assigns severe organ insufficiency or immunocompromise as defined in Knaus 1985. false → 0 chronic-health points and elective_postop must be false.",
                          "type": "boolean"
                        },
                        "creatinine_mg_dl": {
                          "description": "Serum creatinine in mg/dL (0.1-20). ≥3.5 → 4; 2.0-3.4 → 3; 1.5-1.9 → 2; 0.6-1.4 → 0; <0.6 → 2. Double that row when acute_renal_failure is true.",
                          "type": "number"
                        },
                        "elective_postop": {
                          "description": "true only for elective postoperative patients with chronic_health true (+2). false with chronic_health true is nonoperative or emergency postoperative (+5). Must be false when chronic_health is false.",
                          "type": "boolean"
                        },
                        "fio2": {
                          "description": "Inspired oxygen as a fraction 0.21-1.00, not a percent. If fio2 ≥ 0.5, oxygenation uses aa_gradient. If fio2 < 0.5, oxygenation uses pao2_mm_hg. The unused gas parameter is ignored.",
                          "type": "number"
                        },
                        "gcs": {
                          "description": "Glasgow Coma Scale total as assigned by the caller (integer 3-15). APS GCS points = 15 minus gcs. magent does not examine the patient.",
                          "type": "integer"
                        },
                        "heart_rate": {
                          "description": "Heart rate, ventricular response, integer 20-250. ≥180 → 4; 140-179 → 3; 110-139 → 2; 70-109 → 0; 55-69 → 2; 40-54 → 3; ≤39 → 4.",
                          "type": "integer"
                        },
                        "hematocrit_percent": {
                          "description": "Hematocrit percent (5-80). ≥60 → 4; 50-59.9 → 2; 46-49.9 → 1; 30-45.9 → 0; 20-29.9 → 2; <20 → 4.",
                          "type": "number"
                        },
                        "map_mm_hg": {
                          "description": "Mean arterial pressure in mm Hg (20-250). ≥160 → 4; 130-159 → 3; 110-129 → 2; 70-109 → 0; 50-69 → 2; ≤49 → 4. magent does not measure blood pressure.",
                          "type": "number"
                        },
                        "pao2_mm_hg": {
                          "description": "Arterial PaO2 in mm Hg (20-700). Required when fio2 < 0.5. >70 → 0; 61-70 → 1; 55-60 → 3; <55 → 4. Ignored when fio2 ≥ 0.5.",
                          "type": "number"
                        },
                        "potassium_mmol_l": {
                          "description": "Serum potassium in mmol/L (1-12). ≥7.0 → 4; 6.0-6.9 → 3; 5.5-5.9 → 1; 3.5-5.4 → 0; 3.0-3.4 → 1; 2.5-2.9 → 2; <2.5 → 4.",
                          "type": "number"
                        },
                        "respiratory_rate": {
                          "description": "Respiratory rate, non-ventilated or ventilated, integer 0-80. ≥50 → 4; 35-49 → 3; 25-34 → 1; 12-24 → 0; 10-11 → 1; 6-9 → 2; ≤5 → 4.",
                          "type": "integer"
                        },
                        "sodium_mmol_l": {
                          "description": "Serum sodium in mmol/L (90-200). ≥180 → 4; 160-179 → 3; 155-159 → 2; 150-154 → 1; 130-149 → 0; 120-129 → 2; 111-119 → 3; ≤110 → 4.",
                          "type": "number"
                        },
                        "temperature_c": {
                          "description": "Rectal temperature in °C (20-46) as assigned by the caller (Knaus 1985 Table 1). ≥41 → 4; 39-40.9 → 3; 38.5-38.9 → 1; 36-38.4 → 0; 34-35.9 → 1; 32-33.9 → 2; 30-31.9 → 3; ≤29.9 → 4. magent does not measure temperature or convert Fahrenheit.",
                          "type": "number"
                        },
                        "wbc_k_ul": {
                          "description": "White blood count in thousands per mm^3 (0.1-100). ≥40 → 4; 20-39.9 → 2; 15-19.9 → 1; 3-14.9 → 0; 1-2.9 → 2; <1 → 4.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "temperature_c",
                        "map_mm_hg",
                        "heart_rate",
                        "respiratory_rate",
                        "fio2",
                        "arterial_ph",
                        "sodium_mmol_l",
                        "potassium_mmol_l",
                        "creatinine_mg_dl",
                        "hematocrit_percent",
                        "wbc_k_ul",
                        "gcs",
                        "age",
                        "chronic_health",
                        "elective_postop",
                        "acute_renal_failure"
                      ],
                      "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": [
    "apache-ii",
    "icu",
    "severity",
    "physiology",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T23:01:32.672Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T23:01:32.491Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "aa_gradient": 100,
                  "acute_renal_failure": false,
                  "age": 40,
                  "arterial_ph": 7.4,
                  "chronic_health": false,
                  "creatinine_mg_dl": 1,
                  "elective_postop": false,
                  "fio2": 0.21,
                  "gcs": 15,
                  "heart_rate": 80,
                  "hematocrit_percent": 40,
                  "map_mm_hg": 90,
                  "pao2_mm_hg": 90,
                  "potassium_mmol_l": 4,
                  "respiratory_rate": 16,
                  "sodium_mmol_l": 140,
                  "temperature_c": 37,
                  "wbc_k_ul": 8
                },
                {
                  "aa_gradient": 100,
                  "acute_renal_failure": false,
                  "age": 40,
                  "arterial_ph": 7.4,
                  "chronic_health": false,
                  "creatinine_mg_dl": 1,
                  "elective_postop": false,
                  "fio2": 0.21,
                  "gcs": 15,
                  "heart_rate": 80,
                  "hematocrit_percent": 40,
                  "map_mm_hg": 90,
                  "pao2_mm_hg": 90,
                  "potassium_mmol_l": 4,
                  "respiratory_rate": 16,
                  "sodium_mmol_l": 140,
                  "temperature_c": 37,
                  "wbc_k_ul": 8
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Knaus WA, Draper EA, Wagner DP, Zimmerman JE",
                    "doi": "10.1097/00003246-198510000-00009",
                    "id": "knaus-1985",
                    "pmid": "3928249",
                    "source": "Crit Care Med. 1985;13(10):818-829",
                    "title": "APACHE II: a severity of disease classification system"
                  },
                  "components": [
                    {
                      "factor": "temperature_c",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "factor": "map_mm_hg",
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "heart_rate",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "respiratory_rate",
                      "points": 0,
                      "present": false,
                      "value": 16
                    },
                    {
                      "branch": "pao2_mm_hg",
                      "factor": "oxygenation",
                      "fio2": 0.21,
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "arterial_ph",
                      "points": 0,
                      "present": false,
                      "value": 7.4
                    },
                    {
                      "factor": "sodium_mmol_l",
                      "points": 0,
                      "present": false,
                      "value": 140
                    },
                    {
                      "factor": "potassium_mmol_l",
                      "points": 0,
                      "present": false,
                      "value": 4
                    },
                    {
                      "acute_renal_failure": false,
                      "factor": "creatinine_mg_dl",
                      "points": 0,
                      "present": false,
                      "value": 1
                    },
                    {
                      "factor": "hematocrit_percent",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "wbc_k_ul",
                      "points": 0,
                      "present": false,
                      "value": 8
                    },
                    {
                      "factor": "gcs",
                      "points": 0,
                      "present": false,
                      "value": 15
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "chronic_health": false,
                      "elective_postop": false,
                      "factor": "chronic_health",
                      "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": "apache_ii",
                  "formula_expression": "APACHE II = APS + age_points + chronic_health_points; APS is the sum of 12 Knaus 1985 Table 1 items (worst values in 24h as assigned by the caller): temperature_c, map_mm_hg, heart_rate, respiratory_rate, oxygenation (A-aDO2 if fio2 >= 0.5, PaO2 if fio2 < 0.5), arterial_ph, sodium_mmol_l, potassium_mmol_l, creatinine_mg_dl (doubled if acute_renal_failure), hematocrit_percent, wbc_k_ul, and 15-gcs; age <=44 → 0, 45-54 → 2, 55-64 → 3, 65-74 → 5, >=75 → 6; chronic health 0 if none, else +5 nonoperative or emergency postoperative or +2 elective postoperative; max 71",
                  "max_score": 71,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Knaus WA, Draper EA, Wagner DP, Zimmerman JE",
                    "doi": "10.1097/00003246-198510000-00009",
                    "id": "knaus-1985",
                    "pmid": "3928249",
                    "source": "Crit Care Med. 1985;13(10):818-829",
                    "title": "APACHE II: a severity of disease classification system"
                  },
                  "components": [
                    {
                      "factor": "temperature_c",
                      "points": 0,
                      "present": false,
                      "value": 37
                    },
                    {
                      "factor": "map_mm_hg",
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "heart_rate",
                      "points": 0,
                      "present": false,
                      "value": 80
                    },
                    {
                      "factor": "respiratory_rate",
                      "points": 0,
                      "present": false,
                      "value": 16
                    },
                    {
                      "branch": "pao2_mm_hg",
                      "factor": "oxygenation",
                      "fio2": 0.21,
                      "points": 0,
                      "present": false,
                      "value": 90
                    },
                    {
                      "factor": "arterial_ph",
                      "points": 0,
                      "present": false,
                      "value": 7.4
                    },
                    {
                      "factor": "sodium_mmol_l",
                      "points": 0,
                      "present": false,
                      "value": 140
                    },
                    {
                      "factor": "potassium_mmol_l",
                      "points": 0,
                      "present": false,
                      "value": 4
                    },
                    {
                      "acute_renal_failure": false,
                      "factor": "creatinine_mg_dl",
                      "points": 0,
                      "present": false,
                      "value": 1
                    },
                    {
                      "factor": "hematocrit_percent",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "wbc_k_ul",
                      "points": 0,
                      "present": false,
                      "value": 8
                    },
                    {
                      "factor": "gcs",
                      "points": 0,
                      "present": false,
                      "value": 15
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "chronic_health": false,
                      "elective_postop": false,
                      "factor": "chronic_health",
                      "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": "apache_ii",
                  "formula_expression": "APACHE II = APS + age_points + chronic_health_points; APS is the sum of 12 Knaus 1985 Table 1 items (worst values in 24h as assigned by the caller): temperature_c, map_mm_hg, heart_rate, respiratory_rate, oxygenation (A-aDO2 if fio2 >= 0.5, PaO2 if fio2 < 0.5), arterial_ph, sodium_mmol_l, potassium_mmol_l, creatinine_mg_dl (doubled if acute_renal_failure), hematocrit_percent, wbc_k_ul, and 15-gcs; age <=44 → 0, 45-54 → 2, 55-64 → 3, 65-74 → 5, >=75 → 6; chronic health 0 if none, else +5 nonoperative or emergency postoperative or +2 elective postoperative; max 71",
                  "max_score": 71,
                  "score": 0
                }
              ],
              "path": "/api/calc/apache_ii"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "aa_gradient": {
                            "description": "A-aDO2 in mm Hg (0-800). Required when fio2 ≥ 0.5. ≥500 → 4; 350-499 → 3; 200-349 → 2; <200 → 0. Ignored when fio2 < 0.5. magent does not compute A-aDO2 from PaO2.",
                            "type": "number"
                          },
                          "acute_renal_failure": {
                            "description": "true doubles the creatinine Table 1 points (Knaus 1985). false leaves creatinine points unchanged. magent does not diagnose renal failure.",
                            "type": "boolean"
                          },
                          "age": {
                            "description": "Age in years, integer 16-120. ≤44 → 0; 45-54 → 2; 55-64 → 3; 65-74 → 5; ≥75 → 6.",
                            "type": "integer"
                          },
                          "arterial_ph": {
                            "description": "Arterial pH (6.5-8.0). ≥7.70 → 4; 7.60-7.69 → 3; 7.50-7.59 → 1; 7.33-7.49 → 0; 7.25-7.32 → 2; 7.15-7.24 → 3; <7.15 → 4. Venous HCO3 substitution from Table 1 is not accepted.",
                            "type": "number"
                          },
                          "chronic_health": {
                            "description": "true if the caller assigns severe organ insufficiency or immunocompromise as defined in Knaus 1985. false → 0 chronic-health points and elective_postop must be false.",
                            "type": "boolean"
                          },
                          "creatinine_mg_dl": {
                            "description": "Serum creatinine in mg/dL (0.1-20). ≥3.5 → 4; 2.0-3.4 → 3; 1.5-1.9 → 2; 0.6-1.4 → 0; <0.6 → 2. Double that row when acute_renal_failure is true.",
                            "type": "number"
                          },
                          "elective_postop": {
                            "description": "true only for elective postoperative patients with chronic_health true (+2). false with chronic_health true is nonoperative or emergency postoperative (+5). Must be false when chronic_health is false.",
                            "type": "boolean"
                          },
                          "fio2": {
                            "description": "Inspired oxygen as a fraction 0.21-1.00, not a percent. If fio2 ≥ 0.5, oxygenation uses aa_gradient. If fio2 < 0.5, oxygenation uses pao2_mm_hg. The unused gas parameter is ignored.",
                            "type": "number"
                          },
                          "gcs": {
                            "description": "Glasgow Coma Scale total as assigned by the caller (integer 3-15). APS GCS points = 15 minus gcs. magent does not examine the patient.",
                            "type": "integer"
                          },
                          "heart_rate": {
                            "description": "Heart rate, ventricular response, integer 20-250. ≥180 → 4; 140-179 → 3; 110-139 → 2; 70-109 → 0; 55-69 → 2; 40-54 → 3; ≤39 → 4.",
                            "type": "integer"
                          },
                          "hematocrit_percent": {
                            "description": "Hematocrit percent (5-80). ≥60 → 4; 50-59.9 → 2; 46-49.9 → 1; 30-45.9 → 0; 20-29.9 → 2; <20 → 4.",
                            "type": "number"
                          },
                          "map_mm_hg": {
                            "description": "Mean arterial pressure in mm Hg (20-250). ≥160 → 4; 130-159 → 3; 110-129 → 2; 70-109 → 0; 50-69 → 2; ≤49 → 4. magent does not measure blood pressure.",
                            "type": "number"
                          },
                          "pao2_mm_hg": {
                            "description": "Arterial PaO2 in mm Hg (20-700). Required when fio2 < 0.5. >70 → 0; 61-70 → 1; 55-60 → 3; <55 → 4. Ignored when fio2 ≥ 0.5.",
                            "type": "number"
                          },
                          "potassium_mmol_l": {
                            "description": "Serum potassium in mmol/L (1-12). ≥7.0 → 4; 6.0-6.9 → 3; 5.5-5.9 → 1; 3.5-5.4 → 0; 3.0-3.4 → 1; 2.5-2.9 → 2; <2.5 → 4.",
                            "type": "number"
                          },
                          "respiratory_rate": {
                            "description": "Respiratory rate, non-ventilated or ventilated, integer 0-80. ≥50 → 4; 35-49 → 3; 25-34 → 1; 12-24 → 0; 10-11 → 1; 6-9 → 2; ≤5 → 4.",
                            "type": "integer"
                          },
                          "sodium_mmol_l": {
                            "description": "Serum sodium in mmol/L (90-200). ≥180 → 4; 160-179 → 3; 155-159 → 2; 150-154 → 1; 130-149 → 0; 120-129 → 2; 111-119 → 3; ≤110 → 4.",
                            "type": "number"
                          },
                          "temperature_c": {
                            "description": "Rectal temperature in °C (20-46) as assigned by the caller (Knaus 1985 Table 1). ≥41 → 4; 39-40.9 → 3; 38.5-38.9 → 1; 36-38.4 → 0; 34-35.9 → 1; 32-33.9 → 2; 30-31.9 → 3; ≤29.9 → 4. magent does not measure temperature or convert Fahrenheit.",
                            "type": "number"
                          },
                          "wbc_k_ul": {
                            "description": "White blood count in thousands per mm^3 (0.1-100). ≥40 → 4; 20-39.9 → 2; 15-19.9 → 1; 3-14.9 → 0; 1-2.9 → 2; <1 → 4.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "temperature_c",
                          "map_mm_hg",
                          "heart_rate",
                          "respiratory_rate",
                          "fio2",
                          "arterial_ph",
                          "sodium_mmol_l",
                          "potassium_mmol_l",
                          "creatinine_mg_dl",
                          "hematocrit_percent",
                          "wbc_k_ul",
                          "gcs",
                          "age",
                          "chronic_health",
                          "elective_postop",
                          "acute_renal_failure"
                        ],
                        "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"
  }
}