{
  "x402Version": 2,
  "id": 39134,
  "slug": "39134",
  "resource": "https://api.magentlab.com/api/calc/gupta_mica",
  "description": "Gupta 2011 Table 2 logistic probability of 30-day myocardial infarction or cardiac arrest after surgery from age, ASA class, functional status, creatinine category (normal, abnormal >1.5 mg/dL, or missing), and surgery type (hernia reference). Returns logit and estimated_probability_percent. Not a medical device, not a diagnosis, not surgical clearance, and not RCRI. Gupta 2011 publishes no low/high cutoff.",
  "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": 40,
                "asa_class": 2,
                "creatinine": "normal",
                "functional_status": "independent",
                "surgery": "gbaas"
              },
              {
                "age": 40,
                "asa_class": 2,
                "creatinine": "normal",
                "functional_status": "independent",
                "surgery": "gbaas"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 40,
                "asa_class": 2,
                "citation": {
                  "authors": "Gupta PK, Gupta H, Sundaram A, et al.",
                  "doi": "10.1161/CIRCULATIONAHA.110.015701",
                  "id": "gupta-2011",
                  "pmid": "21730309",
                  "source": "Circulation. 2011;124(4):381-387",
                  "title": "Development and validation of a risk calculator for prediction of cardiac risk after surgery"
                },
                "creatinine": "normal",
                "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.08,
                "formula": "gupta_mica",
                "formula_expression": "L = -5.25 + 0.02*age + functional_status + asa_class + creatinine + surgery (Gupta 2011 Table 2); independent 0, partially_dependent 0.65, totally_dependent 1.03; ASA1 -5.17, ASA2 -3.29, ASA3 -1.92, ASA4 -0.95, ASA5 0; creatinine normal 0, abnormal 0.61, missing -0.10; hernia 0, anorectal -0.16, aortic 1.60, bariatric -0.25, brain 1.40, breast -1.61, cardiac 1.01, ent 0.71, foregut_hpb 1.39, gbaas 0.59, intestinal 1.14, neck 0.18, obstetric_gynecologic 0.76, orthopedic 0.80, other_abdomen 1.13, peripheral_vascular 0.86, skin 0.54, spine 0.21, thoracic 0.40, vein -1.09, urology -0.26; estimated_probability_percent = 100 * exp(L) / (1 + exp(L))",
                "functional_status": "independent",
                "logit": -7.15,
                "surgery": "gbaas"
              },
              {
                "age_years": 40,
                "asa_class": 2,
                "citation": {
                  "authors": "Gupta PK, Gupta H, Sundaram A, et al.",
                  "doi": "10.1161/CIRCULATIONAHA.110.015701",
                  "id": "gupta-2011",
                  "pmid": "21730309",
                  "source": "Circulation. 2011;124(4):381-387",
                  "title": "Development and validation of a risk calculator for prediction of cardiac risk after surgery"
                },
                "creatinine": "normal",
                "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.08,
                "formula": "gupta_mica",
                "formula_expression": "L = -5.25 + 0.02*age + functional_status + asa_class + creatinine + surgery (Gupta 2011 Table 2); independent 0, partially_dependent 0.65, totally_dependent 1.03; ASA1 -5.17, ASA2 -3.29, ASA3 -1.92, ASA4 -0.95, ASA5 0; creatinine normal 0, abnormal 0.61, missing -0.10; hernia 0, anorectal -0.16, aortic 1.60, bariatric -0.25, brain 1.40, breast -1.61, cardiac 1.01, ent 0.71, foregut_hpb 1.39, gbaas 0.59, intestinal 1.14, neck 0.18, obstetric_gynecologic 0.76, orthopedic 0.80, other_abdomen 1.13, peripheral_vascular 0.86, skin 0.54, spine 0.21, thoracic 0.40, vein -1.09, urology -0.26; estimated_probability_percent = 100 * exp(L) / (1 + exp(L))",
                "functional_status": "independent",
                "logit": -7.15,
                "surgery": "gbaas"
              }
            ],
            "path": "/api/calc/gupta_mica"
          },
          "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). Gupta 2011 Table 2: +0.02 per year.",
                          "type": "integer"
                        },
                        "asa_class": {
                          "description": "ASA physical status 1-5 (Gupta 2011 Table 2; class 5 is the reference). class 1 -5.17, class 2 -3.29, class 3 -1.92, class 4 -0.95, class 5 adds 0. Caller-assigned integer.",
                          "type": "integer"
                        },
                        "creatinine": {
                          "description": "Gupta 2011 creatinine category as assigned by the caller: normal (reference, 0), abnormal (>1.5 mg/dL, +0.61), or missing (-0.10). Do not send a creatinine number.",
                          "enum": [
                            "normal",
                            "abnormal",
                            "missing"
                          ],
                          "type": "string"
                        },
                        "functional_status": {
                          "description": "Gupta 2011 functional status as assigned by the caller: independent (reference, 0), partially_dependent (+0.65), or totally_dependent (+1.03). magent does not examine the patient.",
                          "enum": [
                            "independent",
                            "partially_dependent",
                            "totally_dependent"
                          ],
                          "type": "string"
                        },
                        "surgery": {
                          "description": "Gupta 2011 Table 2 procedure category as assigned by the caller. hernia is the reference (0). gbaas is gallbladder, adrenal, appendix, or spleen (laparoscopic cholecystectomy in the paper example). magent does not classify a CPT code.",
                          "enum": [
                            "hernia",
                            "anorectal",
                            "aortic",
                            "bariatric",
                            "brain",
                            "breast",
                            "cardiac",
                            "ent",
                            "foregut_hpb",
                            "gbaas",
                            "intestinal",
                            "neck",
                            "obstetric_gynecologic",
                            "orthopedic",
                            "other_abdomen",
                            "peripheral_vascular",
                            "skin",
                            "spine",
                            "thoracic",
                            "vein",
                            "urology"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "functional_status",
                        "asa_class",
                        "creatinine",
                        "surgery"
                      ],
                      "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": [
    "gupta-mica",
    "preoperative",
    "cardiac-risk",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T05:16:36.681Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T05:16:36.564Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "asa_class": 2,
                  "creatinine": "normal",
                  "functional_status": "independent",
                  "surgery": "gbaas"
                },
                {
                  "age": 40,
                  "asa_class": 2,
                  "creatinine": "normal",
                  "functional_status": "independent",
                  "surgery": "gbaas"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 40,
                  "asa_class": 2,
                  "citation": {
                    "authors": "Gupta PK, Gupta H, Sundaram A, et al.",
                    "doi": "10.1161/CIRCULATIONAHA.110.015701",
                    "id": "gupta-2011",
                    "pmid": "21730309",
                    "source": "Circulation. 2011;124(4):381-387",
                    "title": "Development and validation of a risk calculator for prediction of cardiac risk after surgery"
                  },
                  "creatinine": "normal",
                  "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.08,
                  "formula": "gupta_mica",
                  "formula_expression": "L = -5.25 + 0.02*age + functional_status + asa_class + creatinine + surgery (Gupta 2011 Table 2); independent 0, partially_dependent 0.65, totally_dependent 1.03; ASA1 -5.17, ASA2 -3.29, ASA3 -1.92, ASA4 -0.95, ASA5 0; creatinine normal 0, abnormal 0.61, missing -0.10; hernia 0, anorectal -0.16, aortic 1.60, bariatric -0.25, brain 1.40, breast -1.61, cardiac 1.01, ent 0.71, foregut_hpb 1.39, gbaas 0.59, intestinal 1.14, neck 0.18, obstetric_gynecologic 0.76, orthopedic 0.80, other_abdomen 1.13, peripheral_vascular 0.86, skin 0.54, spine 0.21, thoracic 0.40, vein -1.09, urology -0.26; estimated_probability_percent = 100 * exp(L) / (1 + exp(L))",
                  "functional_status": "independent",
                  "logit": -7.15,
                  "surgery": "gbaas"
                },
                {
                  "age_years": 40,
                  "asa_class": 2,
                  "citation": {
                    "authors": "Gupta PK, Gupta H, Sundaram A, et al.",
                    "doi": "10.1161/CIRCULATIONAHA.110.015701",
                    "id": "gupta-2011",
                    "pmid": "21730309",
                    "source": "Circulation. 2011;124(4):381-387",
                    "title": "Development and validation of a risk calculator for prediction of cardiac risk after surgery"
                  },
                  "creatinine": "normal",
                  "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.08,
                  "formula": "gupta_mica",
                  "formula_expression": "L = -5.25 + 0.02*age + functional_status + asa_class + creatinine + surgery (Gupta 2011 Table 2); independent 0, partially_dependent 0.65, totally_dependent 1.03; ASA1 -5.17, ASA2 -3.29, ASA3 -1.92, ASA4 -0.95, ASA5 0; creatinine normal 0, abnormal 0.61, missing -0.10; hernia 0, anorectal -0.16, aortic 1.60, bariatric -0.25, brain 1.40, breast -1.61, cardiac 1.01, ent 0.71, foregut_hpb 1.39, gbaas 0.59, intestinal 1.14, neck 0.18, obstetric_gynecologic 0.76, orthopedic 0.80, other_abdomen 1.13, peripheral_vascular 0.86, skin 0.54, spine 0.21, thoracic 0.40, vein -1.09, urology -0.26; estimated_probability_percent = 100 * exp(L) / (1 + exp(L))",
                  "functional_status": "independent",
                  "logit": -7.15,
                  "surgery": "gbaas"
                }
              ],
              "path": "/api/calc/gupta_mica"
            },
            "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). Gupta 2011 Table 2: +0.02 per year.",
                            "type": "integer"
                          },
                          "asa_class": {
                            "description": "ASA physical status 1-5 (Gupta 2011 Table 2; class 5 is the reference). class 1 -5.17, class 2 -3.29, class 3 -1.92, class 4 -0.95, class 5 adds 0. Caller-assigned integer.",
                            "type": "integer"
                          },
                          "creatinine": {
                            "description": "Gupta 2011 creatinine category as assigned by the caller: normal (reference, 0), abnormal (>1.5 mg/dL, +0.61), or missing (-0.10). Do not send a creatinine number.",
                            "enum": [
                              "normal",
                              "abnormal",
                              "missing"
                            ],
                            "type": "string"
                          },
                          "functional_status": {
                            "description": "Gupta 2011 functional status as assigned by the caller: independent (reference, 0), partially_dependent (+0.65), or totally_dependent (+1.03). magent does not examine the patient.",
                            "enum": [
                              "independent",
                              "partially_dependent",
                              "totally_dependent"
                            ],
                            "type": "string"
                          },
                          "surgery": {
                            "description": "Gupta 2011 Table 2 procedure category as assigned by the caller. hernia is the reference (0). gbaas is gallbladder, adrenal, appendix, or spleen (laparoscopic cholecystectomy in the paper example). magent does not classify a CPT code.",
                            "enum": [
                              "hernia",
                              "anorectal",
                              "aortic",
                              "bariatric",
                              "brain",
                              "breast",
                              "cardiac",
                              "ent",
                              "foregut_hpb",
                              "gbaas",
                              "intestinal",
                              "neck",
                              "obstetric_gynecologic",
                              "orthopedic",
                              "other_abdomen",
                              "peripheral_vascular",
                              "skin",
                              "spine",
                              "thoracic",
                              "vein",
                              "urology"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "functional_status",
                          "asa_class",
                          "creatinine",
                          "surgery"
                        ],
                        "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"
  }
}