{
  "x402Version": 2,
  "id": 38784,
  "slug": "38784",
  "resource": "https://api.magentlab.com/api/calc/thakar",
  "description": "Thakar 2005 clinical score for acute renal failure requiring dialysis after open-heart surgery. Points from sex, CHF, LVEF <35%, preoperative IABP, COPD, insulin-requiring diabetes, previous cardiac surgery, emergency surgery, procedure type (CABG / valve / CABG+valve / other), and preoperative creatinine (<1.2 / 1.2 to <2.1 / >=2.1 mg/dL). Returns integer score (max 17) and category 0–2 / 3–5 / 6–8 / 9–13. Not a dialysis order; not AKIN or RIFLE staging.",
  "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": [
              {
                "congestive_heart_failure": false,
                "copd": false,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88.42,
                "emergency_surgery": false,
                "insulin_diabetes": false,
                "lvef_lt_35": false,
                "preoperative_iabp": false,
                "previous_cardiac_surgery": false,
                "sex": "male",
                "surgery_type": "cabg"
              },
              {
                "congestive_heart_failure": false,
                "copd": false,
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88.42,
                "emergency_surgery": false,
                "insulin_diabetes": false,
                "lvef_lt_35": false,
                "preoperative_iabp": false,
                "previous_cardiac_surgery": false,
                "sex": "male",
                "surgery_type": "cabg"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Thakar CV, Arrigain S, Worley S, Yared JP, Paganini EP",
                  "doi": "10.1681/ASN.2004040331",
                  "id": "thakar-2005",
                  "pmid": "15563569",
                  "source": "J Am Soc Nephrol. 2005;16(1):162-168",
                  "title": "A clinical score to predict acute renal failure after cardiac surgery"
                },
                "components": [
                  {
                    "factor": "female",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "congestive_heart_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "lvef_lt_35",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "preoperative_iabp",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "copd",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "insulin_diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "previous_cardiac_surgery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "emergency_surgery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "surgery_type",
                    "points": 0,
                    "present": false,
                    "value": "cabg"
                  },
                  {
                    "factor": "creatinine_mg_dl",
                    "points": 0,
                    "present": false,
                    "value": 1
                  }
                ],
                "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.",
                "formula": "thakar",
                "formula_expression": "Thakar 2005 = female(1) + congestive_heart_failure(1) + lvef_lt_35(1) + preoperative_iabp(2) + copd(1) + insulin_diabetes(1) + previous_cardiac_surgery(1) + emergency_surgery(2) + surgery_type(cabg 0, valve 1, cabg_valve 2, other 2) + creatinine_mg_dl(<1.2: 0, 1.2 to <2.1: 2, >=2.1: 5); max 17; categories 0-2 / 3-5 / 6-8 / 9-13",
                "max_score": 17,
                "score": 0,
                "sex": "male",
                "surgery_type": "cabg",
                "thakar_category": "0_to_2"
              },
              {
                "citation": {
                  "authors": "Thakar CV, Arrigain S, Worley S, Yared JP, Paganini EP",
                  "doi": "10.1681/ASN.2004040331",
                  "id": "thakar-2005",
                  "pmid": "15563569",
                  "source": "J Am Soc Nephrol. 2005;16(1):162-168",
                  "title": "A clinical score to predict acute renal failure after cardiac surgery"
                },
                "components": [
                  {
                    "factor": "female",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "congestive_heart_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "lvef_lt_35",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "preoperative_iabp",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "copd",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "insulin_diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "previous_cardiac_surgery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "emergency_surgery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "surgery_type",
                    "points": 0,
                    "present": false,
                    "value": "cabg"
                  },
                  {
                    "factor": "creatinine_mg_dl",
                    "points": 0,
                    "present": false,
                    "value": 1
                  }
                ],
                "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.",
                "formula": "thakar",
                "formula_expression": "Thakar 2005 = female(1) + congestive_heart_failure(1) + lvef_lt_35(1) + preoperative_iabp(2) + copd(1) + insulin_diabetes(1) + previous_cardiac_surgery(1) + emergency_surgery(2) + surgery_type(cabg 0, valve 1, cabg_valve 2, other 2) + creatinine_mg_dl(<1.2: 0, 1.2 to <2.1: 2, >=2.1: 5); max 17; categories 0-2 / 3-5 / 6-8 / 9-13",
                "max_score": 17,
                "score": 0,
                "sex": "male",
                "surgery_type": "cabg",
                "thakar_category": "0_to_2"
              }
            ],
            "path": "/api/calc/thakar"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "congestive_heart_failure": {
                          "description": "Congestive heart failure as assigned by the caller (Thakar 2005). true scores 1. true or false. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "copd": {
                          "description": "COPD requiring medical therapy as assigned by the caller (Thakar 2005). true scores 1. true or false.",
                          "type": "boolean"
                        },
                        "creatinine_mg_dl": {
                          "description": "Preoperative serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Thakar 2005 scoring table: <1.2 scores 0; 1.2 to <2.1 scores 2; >=2.1 scores 5. 2.0 mg/dL scores 2. magent does not assay creatinine.",
                          "type": "number"
                        },
                        "creatinine_umol_l": {
                          "description": "Preoperative serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42.",
                          "type": "number"
                        },
                        "emergency_surgery": {
                          "description": "Emergency surgery as assigned by the caller (Thakar 2005). true scores 2. true or false.",
                          "type": "boolean"
                        },
                        "insulin_diabetes": {
                          "description": "Insulin-requiring diabetes as assigned by the caller (Thakar 2005). true scores 1. true or false.",
                          "type": "boolean"
                        },
                        "lvef_lt_35": {
                          "description": "Left-ventricular ejection fraction <35% as assigned by the caller (Thakar 2005). true scores 1. Flag only; do not send an LVEF number. magent does not measure ejection fraction.",
                          "type": "boolean"
                        },
                        "preoperative_iabp": {
                          "description": "Preoperative intra-aortic balloon pump as assigned by the caller (Thakar 2005). true scores 2. true or false.",
                          "type": "boolean"
                        },
                        "previous_cardiac_surgery": {
                          "description": "Previous cardiac surgery as assigned by the caller (Thakar 2005). true scores 1. true or false.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male (Thakar 2005). Female scores 1. Male scores 0. Assigned by the caller.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "surgery_type": {
                          "description": "cabg (CABG only, reference, 0), valve (valve only, +1), cabg_valve (CABG + valve, +2), or other (other cardiac surgeries such as ventricular aneurysm repair or pericardiectomy, +2). Thakar 2005. Assigned by the caller.",
                          "enum": [
                            "cabg",
                            "valve",
                            "cabg_valve",
                            "other"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "sex",
                        "surgery_type",
                        "congestive_heart_failure",
                        "lvef_lt_35",
                        "preoperative_iabp",
                        "copd",
                        "insulin_diabetes",
                        "previous_cardiac_surgery",
                        "emergency_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": [
    "thakar",
    "arf",
    "cardiac-surgery",
    "kidney",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T15:32:07.897Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T15:32:07.699Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "congestive_heart_failure": false,
                  "copd": false,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88.42,
                  "emergency_surgery": false,
                  "insulin_diabetes": false,
                  "lvef_lt_35": false,
                  "preoperative_iabp": false,
                  "previous_cardiac_surgery": false,
                  "sex": "male",
                  "surgery_type": "cabg"
                },
                {
                  "congestive_heart_failure": false,
                  "copd": false,
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88.42,
                  "emergency_surgery": false,
                  "insulin_diabetes": false,
                  "lvef_lt_35": false,
                  "preoperative_iabp": false,
                  "previous_cardiac_surgery": false,
                  "sex": "male",
                  "surgery_type": "cabg"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Thakar CV, Arrigain S, Worley S, Yared JP, Paganini EP",
                    "doi": "10.1681/ASN.2004040331",
                    "id": "thakar-2005",
                    "pmid": "15563569",
                    "source": "J Am Soc Nephrol. 2005;16(1):162-168",
                    "title": "A clinical score to predict acute renal failure after cardiac surgery"
                  },
                  "components": [
                    {
                      "factor": "female",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "congestive_heart_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "lvef_lt_35",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "preoperative_iabp",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "copd",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "insulin_diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "previous_cardiac_surgery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "emergency_surgery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "surgery_type",
                      "points": 0,
                      "present": false,
                      "value": "cabg"
                    },
                    {
                      "factor": "creatinine_mg_dl",
                      "points": 0,
                      "present": false,
                      "value": 1
                    }
                  ],
                  "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.",
                  "formula": "thakar",
                  "formula_expression": "Thakar 2005 = female(1) + congestive_heart_failure(1) + lvef_lt_35(1) + preoperative_iabp(2) + copd(1) + insulin_diabetes(1) + previous_cardiac_surgery(1) + emergency_surgery(2) + surgery_type(cabg 0, valve 1, cabg_valve 2, other 2) + creatinine_mg_dl(<1.2: 0, 1.2 to <2.1: 2, >=2.1: 5); max 17; categories 0-2 / 3-5 / 6-8 / 9-13",
                  "max_score": 17,
                  "score": 0,
                  "sex": "male",
                  "surgery_type": "cabg",
                  "thakar_category": "0_to_2"
                },
                {
                  "citation": {
                    "authors": "Thakar CV, Arrigain S, Worley S, Yared JP, Paganini EP",
                    "doi": "10.1681/ASN.2004040331",
                    "id": "thakar-2005",
                    "pmid": "15563569",
                    "source": "J Am Soc Nephrol. 2005;16(1):162-168",
                    "title": "A clinical score to predict acute renal failure after cardiac surgery"
                  },
                  "components": [
                    {
                      "factor": "female",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "congestive_heart_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "lvef_lt_35",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "preoperative_iabp",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "copd",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "insulin_diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "previous_cardiac_surgery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "emergency_surgery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "surgery_type",
                      "points": 0,
                      "present": false,
                      "value": "cabg"
                    },
                    {
                      "factor": "creatinine_mg_dl",
                      "points": 0,
                      "present": false,
                      "value": 1
                    }
                  ],
                  "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.",
                  "formula": "thakar",
                  "formula_expression": "Thakar 2005 = female(1) + congestive_heart_failure(1) + lvef_lt_35(1) + preoperative_iabp(2) + copd(1) + insulin_diabetes(1) + previous_cardiac_surgery(1) + emergency_surgery(2) + surgery_type(cabg 0, valve 1, cabg_valve 2, other 2) + creatinine_mg_dl(<1.2: 0, 1.2 to <2.1: 2, >=2.1: 5); max 17; categories 0-2 / 3-5 / 6-8 / 9-13",
                  "max_score": 17,
                  "score": 0,
                  "sex": "male",
                  "surgery_type": "cabg",
                  "thakar_category": "0_to_2"
                }
              ],
              "path": "/api/calc/thakar"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "congestive_heart_failure": {
                            "description": "Congestive heart failure as assigned by the caller (Thakar 2005). true scores 1. true or false. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "copd": {
                            "description": "COPD requiring medical therapy as assigned by the caller (Thakar 2005). true scores 1. true or false.",
                            "type": "boolean"
                          },
                          "creatinine_mg_dl": {
                            "description": "Preoperative serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Thakar 2005 scoring table: <1.2 scores 0; 1.2 to <2.1 scores 2; >=2.1 scores 5. 2.0 mg/dL scores 2. magent does not assay creatinine.",
                            "type": "number"
                          },
                          "creatinine_umol_l": {
                            "description": "Preoperative serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42.",
                            "type": "number"
                          },
                          "emergency_surgery": {
                            "description": "Emergency surgery as assigned by the caller (Thakar 2005). true scores 2. true or false.",
                            "type": "boolean"
                          },
                          "insulin_diabetes": {
                            "description": "Insulin-requiring diabetes as assigned by the caller (Thakar 2005). true scores 1. true or false.",
                            "type": "boolean"
                          },
                          "lvef_lt_35": {
                            "description": "Left-ventricular ejection fraction <35% as assigned by the caller (Thakar 2005). true scores 1. Flag only; do not send an LVEF number. magent does not measure ejection fraction.",
                            "type": "boolean"
                          },
                          "preoperative_iabp": {
                            "description": "Preoperative intra-aortic balloon pump as assigned by the caller (Thakar 2005). true scores 2. true or false.",
                            "type": "boolean"
                          },
                          "previous_cardiac_surgery": {
                            "description": "Previous cardiac surgery as assigned by the caller (Thakar 2005). true scores 1. true or false.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male (Thakar 2005). Female scores 1. Male scores 0. Assigned by the caller.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "surgery_type": {
                            "description": "cabg (CABG only, reference, 0), valve (valve only, +1), cabg_valve (CABG + valve, +2), or other (other cardiac surgeries such as ventricular aneurysm repair or pericardiectomy, +2). Thakar 2005. Assigned by the caller.",
                            "enum": [
                              "cabg",
                              "valve",
                              "cabg_valve",
                              "other"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "sex",
                          "surgery_type",
                          "congestive_heart_failure",
                          "lvef_lt_35",
                          "preoperative_iabp",
                          "copd",
                          "insulin_diabetes",
                          "previous_cardiac_surgery",
                          "emergency_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"
  }
}