{
  "x402Version": 2,
  "id": 39323,
  "slug": "39323",
  "resource": "https://api.magentlab.com/api/calc/acef_ii",
  "description": "Ranucci 2018 ACEF II for cardiac surgery: ACEF II = age/EF + 2.0 if serum creatinine > 2.0 mg/dL + 3.0 if emergency surgery + 0.2 × (hematocrit points below 36%). Hematocrit ≥ 36% contributes 0. Returns the published score only (4 decimals). Not original ACEF 2009, not a predicted-mortality percent, and not an operative clearance.",
  "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": [
              {
                "age": 70,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88.42,
                "ejection_fraction_percent": 50,
                "emergency_surgery": false,
                "hematocrit_percent": 40
              },
              {
                "age": 70,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88.42,
                "ejection_fraction_percent": 50,
                "emergency_surgery": false,
                "hematocrit_percent": 40
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 70,
                "citation": {
                  "authors": "Ranucci M, Pistuddi V, Scolletta S, de Vincentiis C, Menicanti L",
                  "doi": "10.1093/eurheartj/ehx228",
                  "id": "ranucci-2018",
                  "pmid": "28498904",
                  "source": "Eur Heart J. 2018;39(23):2183-2189",
                  "title": "The ACEF II Risk Score for cardiac surgery: updated but still parsimonious"
                },
                "creatinine_mg_dl": 1,
                "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.",
                "ejection_fraction_percent": 50,
                "emergency_surgery": false,
                "formula": "acef_ii",
                "formula_expression": "ACEF II = age/EF + 2.0 (if serum creatinine > 2.0 mg/dL) + 3.0 (if emergency surgery) + 0.2 × (HCT points below 36%)",
                "hematocrit_percent": 40,
                "score": 1.4
              },
              {
                "age_years": 70,
                "citation": {
                  "authors": "Ranucci M, Pistuddi V, Scolletta S, de Vincentiis C, Menicanti L",
                  "doi": "10.1093/eurheartj/ehx228",
                  "id": "ranucci-2018",
                  "pmid": "28498904",
                  "source": "Eur Heart J. 2018;39(23):2183-2189",
                  "title": "The ACEF II Risk Score for cardiac surgery: updated but still parsimonious"
                },
                "creatinine_mg_dl": 1,
                "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.",
                "ejection_fraction_percent": 50,
                "emergency_surgery": false,
                "formula": "acef_ii",
                "formula_expression": "ACEF II = age/EF + 2.0 (if serum creatinine > 2.0 mg/dL) + 3.0 (if emergency surgery) + 0.2 × (HCT points below 36%)",
                "hematocrit_percent": 40,
                "score": 1.4
              }
            ],
            "path": "/api/calc/acef_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": {
                        "age": {
                          "description": "Age in years (18-120). magent clamp; Ranucci 2018 uses age in years.",
                          "type": "integer"
                        },
                        "creatinine_mg_dl": {
                          "description": "Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Extra 2.0 only when strictly greater than 2.0 mg/dL (Ranucci 2018).",
                          "type": "number"
                        },
                        "creatinine_umol_l": {
                          "description": "Serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42.",
                          "type": "number"
                        },
                        "ejection_fraction_percent": {
                          "description": "Left-ventricular ejection fraction in percent (10-80). magent clamp. Denominator of age/EF.",
                          "type": "number"
                        },
                        "emergency_surgery": {
                          "description": "true if the operation is emergency cardiac surgery (Ranucci 2018 +3.0). true or false.",
                          "type": "boolean"
                        },
                        "hematocrit_percent": {
                          "description": "Preoperative hematocrit in percent (15-60). magent clamp. HCT ≥ 36 contributes 0; each percentage point below 36 adds 0.2.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "ejection_fraction_percent",
                        "emergency_surgery",
                        "hematocrit_percent"
                      ],
                      "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": [
    "acef-ii",
    "cardiac-surgery",
    "ranucci",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T23:20:51.407Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T23:20:51.269Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 70,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88.42,
                  "ejection_fraction_percent": 50,
                  "emergency_surgery": false,
                  "hematocrit_percent": 40
                },
                {
                  "age": 70,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88.42,
                  "ejection_fraction_percent": 50,
                  "emergency_surgery": false,
                  "hematocrit_percent": 40
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 70,
                  "citation": {
                    "authors": "Ranucci M, Pistuddi V, Scolletta S, de Vincentiis C, Menicanti L",
                    "doi": "10.1093/eurheartj/ehx228",
                    "id": "ranucci-2018",
                    "pmid": "28498904",
                    "source": "Eur Heart J. 2018;39(23):2183-2189",
                    "title": "The ACEF II Risk Score for cardiac surgery: updated but still parsimonious"
                  },
                  "creatinine_mg_dl": 1,
                  "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.",
                  "ejection_fraction_percent": 50,
                  "emergency_surgery": false,
                  "formula": "acef_ii",
                  "formula_expression": "ACEF II = age/EF + 2.0 (if serum creatinine > 2.0 mg/dL) + 3.0 (if emergency surgery) + 0.2 × (HCT points below 36%)",
                  "hematocrit_percent": 40,
                  "score": 1.4
                },
                {
                  "age_years": 70,
                  "citation": {
                    "authors": "Ranucci M, Pistuddi V, Scolletta S, de Vincentiis C, Menicanti L",
                    "doi": "10.1093/eurheartj/ehx228",
                    "id": "ranucci-2018",
                    "pmid": "28498904",
                    "source": "Eur Heart J. 2018;39(23):2183-2189",
                    "title": "The ACEF II Risk Score for cardiac surgery: updated but still parsimonious"
                  },
                  "creatinine_mg_dl": 1,
                  "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.",
                  "ejection_fraction_percent": 50,
                  "emergency_surgery": false,
                  "formula": "acef_ii",
                  "formula_expression": "ACEF II = age/EF + 2.0 (if serum creatinine > 2.0 mg/dL) + 3.0 (if emergency surgery) + 0.2 × (HCT points below 36%)",
                  "hematocrit_percent": 40,
                  "score": 1.4
                }
              ],
              "path": "/api/calc/acef_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": {
                          "age": {
                            "description": "Age in years (18-120). magent clamp; Ranucci 2018 uses age in years.",
                            "type": "integer"
                          },
                          "creatinine_mg_dl": {
                            "description": "Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Extra 2.0 only when strictly greater than 2.0 mg/dL (Ranucci 2018).",
                            "type": "number"
                          },
                          "creatinine_umol_l": {
                            "description": "Serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42.",
                            "type": "number"
                          },
                          "ejection_fraction_percent": {
                            "description": "Left-ventricular ejection fraction in percent (10-80). magent clamp. Denominator of age/EF.",
                            "type": "number"
                          },
                          "emergency_surgery": {
                            "description": "true if the operation is emergency cardiac surgery (Ranucci 2018 +3.0). true or false.",
                            "type": "boolean"
                          },
                          "hematocrit_percent": {
                            "description": "Preoperative hematocrit in percent (15-60). magent clamp. HCT ≥ 36 contributes 0; each percentage point below 36 adds 0.2.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "ejection_fraction_percent",
                          "emergency_surgery",
                          "hematocrit_percent"
                        ],
                        "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"
  }
}