{
  "x402Version": 2,
  "id": 39183,
  "slug": "39183",
  "resource": "https://api.magentlab.com/api/calc/euroscore_ii",
  "description": "Nashef 2012 EuroSCORE II Table 6 logistic in-hospital mortality after adult cardiac surgery. Age Xi is 1 if age <= 60, else age - 59. Renal function is a caller-assigned creatinine-clearance band or dialysis; magent does not run Cockcroft-Gault. Returns logit and estimated_probability_percent from the unrounded logit. Not additive EuroSCORE I, not a medical device, and Nashef 2012 publishes no low/intermediate/high percent cuts.",
  "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": [
              {
                "active_endocarditis": false,
                "age": 60,
                "ccs_class_4": false,
                "chronic_lung_disease": false,
                "critical_preoperative_state": false,
                "extracardiac_arteriopathy": false,
                "insulin_dependent_diabetes": false,
                "lv_function": "good",
                "nyha": 1,
                "poor_mobility": false,
                "previous_cardiac_surgery": false,
                "pulmonary_hypertension": "none",
                "recent_mi": false,
                "renal": "cc_gt_85",
                "sex": "male",
                "thoracic_aorta": false,
                "urgency": "elective",
                "weight_of_procedure": "isolated_cabg"
              },
              {
                "active_endocarditis": false,
                "age": 60,
                "ccs_class_4": false,
                "chronic_lung_disease": false,
                "critical_preoperative_state": false,
                "extracardiac_arteriopathy": false,
                "insulin_dependent_diabetes": false,
                "lv_function": "good",
                "nyha": 1,
                "poor_mobility": false,
                "previous_cardiac_surgery": false,
                "pulmonary_hypertension": "none",
                "recent_mi": false,
                "renal": "cc_gt_85",
                "sex": "male",
                "thoracic_aorta": false,
                "urgency": "elective",
                "weight_of_procedure": "isolated_cabg"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "active_endocarditis": false,
                "age_step": 1,
                "age_years": 60,
                "ccs_class_4": false,
                "chronic_lung_disease": false,
                "citation": {
                  "authors": "Nashef SAM, Roques F, Sharples LD, Nilsson J, Smith C, Goldstone AR, Lockowandt U",
                  "doi": "10.1093/ejcts/ezs043",
                  "id": "nashef-2012",
                  "pmid": "22378855",
                  "source": "Eur J Cardiothorac Surg. 2012;41(4):734-745",
                  "title": "EuroSCORE II"
                },
                "critical_preoperative_state": 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.",
                "estimated_probability_percent": 0.5,
                "extracardiac_arteriopathy": false,
                "formula": "euroscore_ii",
                "formula_expression": "y = -5.324537 + 0.0285181*age_step + female + renal + extracardiac_arteriopathy + poor_mobility + previous_cardiac_surgery + chronic_lung_disease + active_endocarditis + critical_preoperative_state + insulin_dependent_diabetes + nyha + ccs_class_4 + lv_function + recent_mi + pulmonary_hypertension + urgency + weight_of_procedure + thoracic_aorta (Nashef 2012 Table 6 multivariable); age_step = 1 if age <= 60 else (age - 59); female 0.2196434; renal cc_gt_85 0, cc_51_85 0.303553, cc_le_50 0.8592256, dialysis 0.6421508; extracardiac_arteriopathy 0.5360268; poor_mobility 0.2407181; previous_cardiac_surgery 1.118599; chronic_lung_disease 0.1886564; active_endocarditis 0.6194522; critical_preoperative_state 1.086517; insulin_dependent_diabetes 0.3542749; nyha 1 0, 2 0.1070545, 3 0.2958358, 4 0.5597929; ccs_class_4 0.2226147; lv_function good 0, moderate 0.3150652, poor 0.8084096, very_poor 0.9346919; recent_mi 0.1528943; pulmonary_hypertension none 0, moderate 0.1788899, severe 0.3491475; urgency elective 0, urgent 0.3174673, emergency 0.7039121, salvage 1.362947; weight_of_procedure isolated_cabg 0, single_non_cabg 0.0062118, two 0.5521478, three_plus 0.9724533; thoracic_aorta 0.6527205; estimated_probability_percent = 100 * exp(y) / (1 + exp(y))",
                "insulin_dependent_diabetes": false,
                "logit": -5.296,
                "lv_function": "good",
                "nyha": 1,
                "poor_mobility": false,
                "previous_cardiac_surgery": false,
                "pulmonary_hypertension": "none",
                "recent_mi": false,
                "renal": "cc_gt_85",
                "sex": "male",
                "thoracic_aorta": false,
                "urgency": "elective",
                "weight_of_procedure": "isolated_cabg"
              },
              {
                "active_endocarditis": false,
                "age_step": 1,
                "age_years": 60,
                "ccs_class_4": false,
                "chronic_lung_disease": false,
                "citation": {
                  "authors": "Nashef SAM, Roques F, Sharples LD, Nilsson J, Smith C, Goldstone AR, Lockowandt U",
                  "doi": "10.1093/ejcts/ezs043",
                  "id": "nashef-2012",
                  "pmid": "22378855",
                  "source": "Eur J Cardiothorac Surg. 2012;41(4):734-745",
                  "title": "EuroSCORE II"
                },
                "critical_preoperative_state": 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.",
                "estimated_probability_percent": 0.5,
                "extracardiac_arteriopathy": false,
                "formula": "euroscore_ii",
                "formula_expression": "y = -5.324537 + 0.0285181*age_step + female + renal + extracardiac_arteriopathy + poor_mobility + previous_cardiac_surgery + chronic_lung_disease + active_endocarditis + critical_preoperative_state + insulin_dependent_diabetes + nyha + ccs_class_4 + lv_function + recent_mi + pulmonary_hypertension + urgency + weight_of_procedure + thoracic_aorta (Nashef 2012 Table 6 multivariable); age_step = 1 if age <= 60 else (age - 59); female 0.2196434; renal cc_gt_85 0, cc_51_85 0.303553, cc_le_50 0.8592256, dialysis 0.6421508; extracardiac_arteriopathy 0.5360268; poor_mobility 0.2407181; previous_cardiac_surgery 1.118599; chronic_lung_disease 0.1886564; active_endocarditis 0.6194522; critical_preoperative_state 1.086517; insulin_dependent_diabetes 0.3542749; nyha 1 0, 2 0.1070545, 3 0.2958358, 4 0.5597929; ccs_class_4 0.2226147; lv_function good 0, moderate 0.3150652, poor 0.8084096, very_poor 0.9346919; recent_mi 0.1528943; pulmonary_hypertension none 0, moderate 0.1788899, severe 0.3491475; urgency elective 0, urgent 0.3174673, emergency 0.7039121, salvage 1.362947; weight_of_procedure isolated_cabg 0, single_non_cabg 0.0062118, two 0.5521478, three_plus 0.9724533; thoracic_aorta 0.6527205; estimated_probability_percent = 100 * exp(y) / (1 + exp(y))",
                "insulin_dependent_diabetes": false,
                "logit": -5.296,
                "lv_function": "good",
                "nyha": 1,
                "poor_mobility": false,
                "previous_cardiac_surgery": false,
                "pulmonary_hypertension": "none",
                "recent_mi": false,
                "renal": "cc_gt_85",
                "sex": "male",
                "thoracic_aorta": false,
                "urgency": "elective",
                "weight_of_procedure": "isolated_cabg"
              }
            ],
            "path": "/api/calc/euroscore_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": {
                        "active_endocarditis": {
                          "description": "true if still on antibiotic treatment for endocarditis at the time of surgery (Nashef 2012 Table 6 AE +0.6194522). true or false.",
                          "type": "boolean"
                        },
                        "age": {
                          "description": "Age in years (18-120). Nashef 2012 Table 6: Xi = 1 if age <= 60; Xi = age - 59 if older (age 61 → 2). Coefficient 0.0285181 on the encoded step, not on raw years.",
                          "type": "integer"
                        },
                        "ccs_class_4": {
                          "description": "true if CCS class 4 angina (Nashef 2012 Table 6 CCS4 +0.2226147). true or false.",
                          "type": "boolean"
                        },
                        "chronic_lung_disease": {
                          "description": "true if chronic pulmonary dysfunction is present (Nashef 2012 Table 6 CPD +0.1886564). true or false.",
                          "type": "boolean"
                        },
                        "critical_preoperative_state": {
                          "description": "true if a Nashef 2012 critical preoperative state is present (Table 6 +1.086517). true or false. magent does not assign this from a chart.",
                          "type": "boolean"
                        },
                        "extracardiac_arteriopathy": {
                          "description": "true if extracardiac arteriopathy is present (Nashef 2012 Table 6 ECA +0.5360268). true or false.",
                          "type": "boolean"
                        },
                        "insulin_dependent_diabetes": {
                          "description": "true if insulin-dependent diabetes mellitus (Nashef 2012 Table 6 IDDM +0.3542749). true or false.",
                          "type": "boolean"
                        },
                        "lv_function": {
                          "description": "Left-ventricular function band as assigned by the caller: good (LVEF 51% or more, reference 0), moderate (31-50%, +0.3150652), poor (21-30%, +0.8084096), or very_poor (20% or less, +0.9346919). magent does not parse an ejection-fraction number.",
                          "enum": [
                            "good",
                            "moderate",
                            "poor",
                            "very_poor"
                          ],
                          "type": "string"
                        },
                        "nyha": {
                          "description": "NYHA class 1-4 as assigned by the caller (Nashef 2012 Table 6). class 1 is the reference (0); class 2 +0.1070545; class 3 +0.2958358; class 4 +0.5597929.",
                          "type": "integer"
                        },
                        "poor_mobility": {
                          "description": "true if severe impairment of mobility secondary to musculoskeletal or neurological dysfunction (Nashef 2012 Table 6 N/M mob +0.2407181). true or false.",
                          "type": "boolean"
                        },
                        "previous_cardiac_surgery": {
                          "description": "true if one or more previous major cardiac operations involving opening the pericardium (Nashef 2012 Table 6 redo +1.118599). true or false.",
                          "type": "boolean"
                        },
                        "pulmonary_hypertension": {
                          "description": "Nashef 2012 Table 6 PA systolic-pressure band as assigned by the caller: none (reference, 0), moderate (31-55 mmHg, +0.1788899), or severe (>=55 mmHg, +0.3491475). magent does not parse a PA pressure number.",
                          "enum": [
                            "none",
                            "moderate",
                            "severe"
                          ],
                          "type": "string"
                        },
                        "recent_mi": {
                          "description": "true if myocardial infarction within 90 days before operation (Nashef 2012 Table 6 +0.1528943). true or false.",
                          "type": "boolean"
                        },
                        "renal": {
                          "description": "Nashef 2012 renal-function band as assigned by the caller: cc_gt_85 (reference, 0), cc_51_85 (+0.303553), cc_le_50 (+0.8592256), or dialysis (+0.6421508). magent does not run Cockcroft-Gault and does not parse a creatinine number.",
                          "enum": [
                            "cc_gt_85",
                            "cc_51_85",
                            "cc_le_50",
                            "dialysis"
                          ],
                          "type": "string"
                        },
                        "sex": {
                          "description": "Sex as assigned by the caller. male is the reference (0). female adds 0.2196434 (Nashef 2012 Table 6).",
                          "enum": [
                            "male",
                            "female"
                          ],
                          "type": "string"
                        },
                        "thoracic_aorta": {
                          "description": "true if surgery on the thoracic aorta (Nashef 2012 Table 6 +0.6527205). true or false.",
                          "type": "boolean"
                        },
                        "urgency": {
                          "description": "Nashef 2012 urgency as assigned by the caller: elective (reference, 0), urgent (+0.3174673), emergency (+0.7039121), or salvage (+1.362947).",
                          "enum": [
                            "elective",
                            "urgent",
                            "emergency",
                            "salvage"
                          ],
                          "type": "string"
                        },
                        "weight_of_procedure": {
                          "description": "Nashef 2012 weight of the intervention as assigned by the caller: isolated_cabg (reference, 0), single_non_cabg (+0.0062118), two (+0.5521478), or three_plus (+0.9724533). magent does not classify an operative note.",
                          "enum": [
                            "isolated_cabg",
                            "single_non_cabg",
                            "two",
                            "three_plus"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "renal",
                        "nyha",
                        "lv_function",
                        "urgency",
                        "weight_of_procedure",
                        "pulmonary_hypertension",
                        "extracardiac_arteriopathy",
                        "poor_mobility",
                        "previous_cardiac_surgery",
                        "chronic_lung_disease",
                        "active_endocarditis",
                        "critical_preoperative_state",
                        "insulin_dependent_diabetes",
                        "ccs_class_4",
                        "recent_mi",
                        "thoracic_aorta"
                      ],
                      "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": [
    "euroscore-ii",
    "cardiac-surgery",
    "mortality",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T03:36:50.818Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T03:36:50.682Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "active_endocarditis": false,
                  "age": 60,
                  "ccs_class_4": false,
                  "chronic_lung_disease": false,
                  "critical_preoperative_state": false,
                  "extracardiac_arteriopathy": false,
                  "insulin_dependent_diabetes": false,
                  "lv_function": "good",
                  "nyha": 1,
                  "poor_mobility": false,
                  "previous_cardiac_surgery": false,
                  "pulmonary_hypertension": "none",
                  "recent_mi": false,
                  "renal": "cc_gt_85",
                  "sex": "male",
                  "thoracic_aorta": false,
                  "urgency": "elective",
                  "weight_of_procedure": "isolated_cabg"
                },
                {
                  "active_endocarditis": false,
                  "age": 60,
                  "ccs_class_4": false,
                  "chronic_lung_disease": false,
                  "critical_preoperative_state": false,
                  "extracardiac_arteriopathy": false,
                  "insulin_dependent_diabetes": false,
                  "lv_function": "good",
                  "nyha": 1,
                  "poor_mobility": false,
                  "previous_cardiac_surgery": false,
                  "pulmonary_hypertension": "none",
                  "recent_mi": false,
                  "renal": "cc_gt_85",
                  "sex": "male",
                  "thoracic_aorta": false,
                  "urgency": "elective",
                  "weight_of_procedure": "isolated_cabg"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "active_endocarditis": false,
                  "age_step": 1,
                  "age_years": 60,
                  "ccs_class_4": false,
                  "chronic_lung_disease": false,
                  "citation": {
                    "authors": "Nashef SAM, Roques F, Sharples LD, Nilsson J, Smith C, Goldstone AR, Lockowandt U",
                    "doi": "10.1093/ejcts/ezs043",
                    "id": "nashef-2012",
                    "pmid": "22378855",
                    "source": "Eur J Cardiothorac Surg. 2012;41(4):734-745",
                    "title": "EuroSCORE II"
                  },
                  "critical_preoperative_state": 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.",
                  "estimated_probability_percent": 0.5,
                  "extracardiac_arteriopathy": false,
                  "formula": "euroscore_ii",
                  "formula_expression": "y = -5.324537 + 0.0285181*age_step + female + renal + extracardiac_arteriopathy + poor_mobility + previous_cardiac_surgery + chronic_lung_disease + active_endocarditis + critical_preoperative_state + insulin_dependent_diabetes + nyha + ccs_class_4 + lv_function + recent_mi + pulmonary_hypertension + urgency + weight_of_procedure + thoracic_aorta (Nashef 2012 Table 6 multivariable); age_step = 1 if age <= 60 else (age - 59); female 0.2196434; renal cc_gt_85 0, cc_51_85 0.303553, cc_le_50 0.8592256, dialysis 0.6421508; extracardiac_arteriopathy 0.5360268; poor_mobility 0.2407181; previous_cardiac_surgery 1.118599; chronic_lung_disease 0.1886564; active_endocarditis 0.6194522; critical_preoperative_state 1.086517; insulin_dependent_diabetes 0.3542749; nyha 1 0, 2 0.1070545, 3 0.2958358, 4 0.5597929; ccs_class_4 0.2226147; lv_function good 0, moderate 0.3150652, poor 0.8084096, very_poor 0.9346919; recent_mi 0.1528943; pulmonary_hypertension none 0, moderate 0.1788899, severe 0.3491475; urgency elective 0, urgent 0.3174673, emergency 0.7039121, salvage 1.362947; weight_of_procedure isolated_cabg 0, single_non_cabg 0.0062118, two 0.5521478, three_plus 0.9724533; thoracic_aorta 0.6527205; estimated_probability_percent = 100 * exp(y) / (1 + exp(y))",
                  "insulin_dependent_diabetes": false,
                  "logit": -5.296,
                  "lv_function": "good",
                  "nyha": 1,
                  "poor_mobility": false,
                  "previous_cardiac_surgery": false,
                  "pulmonary_hypertension": "none",
                  "recent_mi": false,
                  "renal": "cc_gt_85",
                  "sex": "male",
                  "thoracic_aorta": false,
                  "urgency": "elective",
                  "weight_of_procedure": "isolated_cabg"
                },
                {
                  "active_endocarditis": false,
                  "age_step": 1,
                  "age_years": 60,
                  "ccs_class_4": false,
                  "chronic_lung_disease": false,
                  "citation": {
                    "authors": "Nashef SAM, Roques F, Sharples LD, Nilsson J, Smith C, Goldstone AR, Lockowandt U",
                    "doi": "10.1093/ejcts/ezs043",
                    "id": "nashef-2012",
                    "pmid": "22378855",
                    "source": "Eur J Cardiothorac Surg. 2012;41(4):734-745",
                    "title": "EuroSCORE II"
                  },
                  "critical_preoperative_state": 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.",
                  "estimated_probability_percent": 0.5,
                  "extracardiac_arteriopathy": false,
                  "formula": "euroscore_ii",
                  "formula_expression": "y = -5.324537 + 0.0285181*age_step + female + renal + extracardiac_arteriopathy + poor_mobility + previous_cardiac_surgery + chronic_lung_disease + active_endocarditis + critical_preoperative_state + insulin_dependent_diabetes + nyha + ccs_class_4 + lv_function + recent_mi + pulmonary_hypertension + urgency + weight_of_procedure + thoracic_aorta (Nashef 2012 Table 6 multivariable); age_step = 1 if age <= 60 else (age - 59); female 0.2196434; renal cc_gt_85 0, cc_51_85 0.303553, cc_le_50 0.8592256, dialysis 0.6421508; extracardiac_arteriopathy 0.5360268; poor_mobility 0.2407181; previous_cardiac_surgery 1.118599; chronic_lung_disease 0.1886564; active_endocarditis 0.6194522; critical_preoperative_state 1.086517; insulin_dependent_diabetes 0.3542749; nyha 1 0, 2 0.1070545, 3 0.2958358, 4 0.5597929; ccs_class_4 0.2226147; lv_function good 0, moderate 0.3150652, poor 0.8084096, very_poor 0.9346919; recent_mi 0.1528943; pulmonary_hypertension none 0, moderate 0.1788899, severe 0.3491475; urgency elective 0, urgent 0.3174673, emergency 0.7039121, salvage 1.362947; weight_of_procedure isolated_cabg 0, single_non_cabg 0.0062118, two 0.5521478, three_plus 0.9724533; thoracic_aorta 0.6527205; estimated_probability_percent = 100 * exp(y) / (1 + exp(y))",
                  "insulin_dependent_diabetes": false,
                  "logit": -5.296,
                  "lv_function": "good",
                  "nyha": 1,
                  "poor_mobility": false,
                  "previous_cardiac_surgery": false,
                  "pulmonary_hypertension": "none",
                  "recent_mi": false,
                  "renal": "cc_gt_85",
                  "sex": "male",
                  "thoracic_aorta": false,
                  "urgency": "elective",
                  "weight_of_procedure": "isolated_cabg"
                }
              ],
              "path": "/api/calc/euroscore_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": {
                          "active_endocarditis": {
                            "description": "true if still on antibiotic treatment for endocarditis at the time of surgery (Nashef 2012 Table 6 AE +0.6194522). true or false.",
                            "type": "boolean"
                          },
                          "age": {
                            "description": "Age in years (18-120). Nashef 2012 Table 6: Xi = 1 if age <= 60; Xi = age - 59 if older (age 61 → 2). Coefficient 0.0285181 on the encoded step, not on raw years.",
                            "type": "integer"
                          },
                          "ccs_class_4": {
                            "description": "true if CCS class 4 angina (Nashef 2012 Table 6 CCS4 +0.2226147). true or false.",
                            "type": "boolean"
                          },
                          "chronic_lung_disease": {
                            "description": "true if chronic pulmonary dysfunction is present (Nashef 2012 Table 6 CPD +0.1886564). true or false.",
                            "type": "boolean"
                          },
                          "critical_preoperative_state": {
                            "description": "true if a Nashef 2012 critical preoperative state is present (Table 6 +1.086517). true or false. magent does not assign this from a chart.",
                            "type": "boolean"
                          },
                          "extracardiac_arteriopathy": {
                            "description": "true if extracardiac arteriopathy is present (Nashef 2012 Table 6 ECA +0.5360268). true or false.",
                            "type": "boolean"
                          },
                          "insulin_dependent_diabetes": {
                            "description": "true if insulin-dependent diabetes mellitus (Nashef 2012 Table 6 IDDM +0.3542749). true or false.",
                            "type": "boolean"
                          },
                          "lv_function": {
                            "description": "Left-ventricular function band as assigned by the caller: good (LVEF 51% or more, reference 0), moderate (31-50%, +0.3150652), poor (21-30%, +0.8084096), or very_poor (20% or less, +0.9346919). magent does not parse an ejection-fraction number.",
                            "enum": [
                              "good",
                              "moderate",
                              "poor",
                              "very_poor"
                            ],
                            "type": "string"
                          },
                          "nyha": {
                            "description": "NYHA class 1-4 as assigned by the caller (Nashef 2012 Table 6). class 1 is the reference (0); class 2 +0.1070545; class 3 +0.2958358; class 4 +0.5597929.",
                            "type": "integer"
                          },
                          "poor_mobility": {
                            "description": "true if severe impairment of mobility secondary to musculoskeletal or neurological dysfunction (Nashef 2012 Table 6 N/M mob +0.2407181). true or false.",
                            "type": "boolean"
                          },
                          "previous_cardiac_surgery": {
                            "description": "true if one or more previous major cardiac operations involving opening the pericardium (Nashef 2012 Table 6 redo +1.118599). true or false.",
                            "type": "boolean"
                          },
                          "pulmonary_hypertension": {
                            "description": "Nashef 2012 Table 6 PA systolic-pressure band as assigned by the caller: none (reference, 0), moderate (31-55 mmHg, +0.1788899), or severe (>=55 mmHg, +0.3491475). magent does not parse a PA pressure number.",
                            "enum": [
                              "none",
                              "moderate",
                              "severe"
                            ],
                            "type": "string"
                          },
                          "recent_mi": {
                            "description": "true if myocardial infarction within 90 days before operation (Nashef 2012 Table 6 +0.1528943). true or false.",
                            "type": "boolean"
                          },
                          "renal": {
                            "description": "Nashef 2012 renal-function band as assigned by the caller: cc_gt_85 (reference, 0), cc_51_85 (+0.303553), cc_le_50 (+0.8592256), or dialysis (+0.6421508). magent does not run Cockcroft-Gault and does not parse a creatinine number.",
                            "enum": [
                              "cc_gt_85",
                              "cc_51_85",
                              "cc_le_50",
                              "dialysis"
                            ],
                            "type": "string"
                          },
                          "sex": {
                            "description": "Sex as assigned by the caller. male is the reference (0). female adds 0.2196434 (Nashef 2012 Table 6).",
                            "enum": [
                              "male",
                              "female"
                            ],
                            "type": "string"
                          },
                          "thoracic_aorta": {
                            "description": "true if surgery on the thoracic aorta (Nashef 2012 Table 6 +0.6527205). true or false.",
                            "type": "boolean"
                          },
                          "urgency": {
                            "description": "Nashef 2012 urgency as assigned by the caller: elective (reference, 0), urgent (+0.3174673), emergency (+0.7039121), or salvage (+1.362947).",
                            "enum": [
                              "elective",
                              "urgent",
                              "emergency",
                              "salvage"
                            ],
                            "type": "string"
                          },
                          "weight_of_procedure": {
                            "description": "Nashef 2012 weight of the intervention as assigned by the caller: isolated_cabg (reference, 0), single_non_cabg (+0.0062118), two (+0.5521478), or three_plus (+0.9724533). magent does not classify an operative note.",
                            "enum": [
                              "isolated_cabg",
                              "single_non_cabg",
                              "two",
                              "three_plus"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "renal",
                          "nyha",
                          "lv_function",
                          "urgency",
                          "weight_of_procedure",
                          "pulmonary_hypertension",
                          "extracardiac_arteriopathy",
                          "poor_mobility",
                          "previous_cardiac_surgery",
                          "chronic_lung_disease",
                          "active_endocarditis",
                          "critical_preoperative_state",
                          "insulin_dependent_diabetes",
                          "ccs_class_4",
                          "recent_mi",
                          "thoracic_aorta"
                        ],
                        "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"
  }
}