{
  "x402Version": 2,
  "id": 39580,
  "slug": "39580",
  "resource": "https://api.magentlab.com/api/calc/cp_aki",
  "description": "Gupta 2024 Figure 2 simple CP-AKI score after first IV cisplatin: age, hypertension, diabetes, current or former smoking, hemoglobin g/L, WBC, albumin g/L, magnesium mmol/L, and cisplatin dose mg. Max 22.5. Low / moderate / high / very_high. Not a diagnosis or chemo order. magent does not assay labs or dose cisplatin.",
  "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,
                "albumin_g_dl": 4.2,
                "albumin_g_l": 42,
                "cisplatin_dose_mg": 50,
                "current_or_former_smoker": false,
                "diabetes": false,
                "hemoglobin_g_dl": 13,
                "hemoglobin_g_l": 130,
                "hypertension": false,
                "magnesium_mmol_l": 0.9,
                "wbc_k_ul": 8,
                "wbc_ul": 8000
              },
              {
                "age": 40,
                "albumin_g_dl": 4.2,
                "albumin_g_l": 42,
                "cisplatin_dose_mg": 50,
                "current_or_former_smoker": false,
                "diabetes": false,
                "hemoglobin_g_dl": 13,
                "hemoglobin_g_l": 130,
                "hypertension": false,
                "magnesium_mmol_l": 0.9,
                "wbc_k_ul": 8,
                "wbc_ul": 8000
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age": 40,
                "albumin_g_l": 42,
                "cisplatin_dose_mg": 50,
                "citation": {
                  "authors": "Gupta S, et al.",
                  "doi": "10.1136/bmj-2023-077169",
                  "id": "gupta-2024",
                  "pmid": "38538012",
                  "source": "BMJ. 2024;384:e077169",
                  "title": "Derivation and external validation of a simple risk score for predicting severe acute kidney injury after intravenous cisplatin: cohort study"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "hypertension",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "current_or_former_smoker",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hemoglobin",
                    "points": 0,
                    "present": false,
                    "value": 130
                  },
                  {
                    "factor": "wbc",
                    "points": 0,
                    "present": false,
                    "value": 8
                  },
                  {
                    "factor": "albumin",
                    "points": 0,
                    "present": false,
                    "value": 42
                  },
                  {
                    "factor": "magnesium",
                    "points": 0,
                    "present": false,
                    "value": 0.9
                  },
                  {
                    "factor": "cisplatin_dose",
                    "points": 0,
                    "present": false,
                    "value": 50
                  }
                ],
                "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": "cp_aki",
                "formula_expression": "CP-AKI simple = age (≤45 0; 46-60 2.5; 61-70 3.5; >70 4.5) + hypertension 1 + diabetes 1 + current_or_former_smoker 1 + hemoglobin_g_l (≥120 0; 110-119 1; <110 1.5) + wbc_10e9_l (≤12.0 0; >12.0 1.5) + albumin_g_l (>38 0; 33-38 1; <33 1.5) + magnesium_mmol_l (≥0.82 0; <0.82 1) + cisplatin_dose_mg (≤50 0; 51-75 2; 76-100 2.5; 101-125 3; 126-150 5; 151-200 7.5; >200 9.5); Gupta 2024 Figure 2 odds-ratio points; max 22.5; no creatinine; no platelets; low 0-5.5 / moderate 6-9.5 / high 10-15.5 / very_high ≥16",
                "hemoglobin_g_l": 130,
                "magnesium_mmol_l": 0.9,
                "max_score": 22.5,
                "risk_group": "low",
                "score": 0,
                "wbc_10e9_l": 8
              },
              {
                "age": 40,
                "albumin_g_l": 42,
                "cisplatin_dose_mg": 50,
                "citation": {
                  "authors": "Gupta S, et al.",
                  "doi": "10.1136/bmj-2023-077169",
                  "id": "gupta-2024",
                  "pmid": "38538012",
                  "source": "BMJ. 2024;384:e077169",
                  "title": "Derivation and external validation of a simple risk score for predicting severe acute kidney injury after intravenous cisplatin: cohort study"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 40
                  },
                  {
                    "factor": "hypertension",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "current_or_former_smoker",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hemoglobin",
                    "points": 0,
                    "present": false,
                    "value": 130
                  },
                  {
                    "factor": "wbc",
                    "points": 0,
                    "present": false,
                    "value": 8
                  },
                  {
                    "factor": "albumin",
                    "points": 0,
                    "present": false,
                    "value": 42
                  },
                  {
                    "factor": "magnesium",
                    "points": 0,
                    "present": false,
                    "value": 0.9
                  },
                  {
                    "factor": "cisplatin_dose",
                    "points": 0,
                    "present": false,
                    "value": 50
                  }
                ],
                "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": "cp_aki",
                "formula_expression": "CP-AKI simple = age (≤45 0; 46-60 2.5; 61-70 3.5; >70 4.5) + hypertension 1 + diabetes 1 + current_or_former_smoker 1 + hemoglobin_g_l (≥120 0; 110-119 1; <110 1.5) + wbc_10e9_l (≤12.0 0; >12.0 1.5) + albumin_g_l (>38 0; 33-38 1; <33 1.5) + magnesium_mmol_l (≥0.82 0; <0.82 1) + cisplatin_dose_mg (≤50 0; 51-75 2; 76-100 2.5; 101-125 3; 126-150 5; 151-200 7.5; >200 9.5); Gupta 2024 Figure 2 odds-ratio points; max 22.5; no creatinine; no platelets; low 0-5.5 / moderate 6-9.5 / high 10-15.5 / very_high ≥16",
                "hemoglobin_g_l": 130,
                "magnesium_mmol_l": 0.9,
                "max_score": 22.5,
                "risk_group": "low",
                "score": 0,
                "wbc_10e9_l": 8
              }
            ],
            "path": "/api/calc/cp_aki"
          },
          "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 (integer 18-120). Gupta 2024 Figure 2: ≤45 scores 0; 46-60 scores 2.5; 61-70 scores 3.5; >70 scores 4.5.",
                          "type": "integer"
                        },
                        "albumin_g_dl": {
                          "description": "Serum albumin in g/dL (1-6). Converted as albumin_g_l = albumin_g_dl × 10. Provide this or albumin_g_l, not both.",
                          "type": "number"
                        },
                        "albumin_g_l": {
                          "description": "Serum albumin in g/L (10-60), Gupta 2024 units. Provide this or albumin_g_dl, not both. >38 scores 0; 33-38 scores 1; <33 scores 1.5. magent does not assay albumin.",
                          "type": "number"
                        },
                        "cisplatin_dose_mg": {
                          "description": "First intravenous cisplatin dose in mg (1-500), Gupta 2024 Figure 2. ≤50 scores 0; 51-75 scores 2; 76-100 scores 2.5; 101-125 scores 3; 126-150 scores 5; 151-200 scores 7.5; >200 scores 9.5. magent does not dose cisplatin.",
                          "type": "number"
                        },
                        "current_or_former_smoker": {
                          "description": "Caller-assigned current or former smoker (Gupta 2024 Figure 2 simple score; BMJ 2024;385:q1207). true scores 1. magent does not take a smoking history.",
                          "type": "boolean"
                        },
                        "diabetes": {
                          "description": "Caller-assigned diabetes mellitus (Gupta 2024 Figure 2). true scores 1. magent does not diagnose diabetes.",
                          "type": "boolean"
                        },
                        "hemoglobin_g_dl": {
                          "description": "Hemoglobin in g/dL (3-22). Converted as hemoglobin_g_l = hemoglobin_g_dl × 10. Provide this or hemoglobin_g_l, not both.",
                          "type": "number"
                        },
                        "hemoglobin_g_l": {
                          "description": "Hemoglobin in g/L (30-220), Gupta 2024 units. Provide this or hemoglobin_g_dl, not both. ≥120 scores 0; 110-119 scores 1; <110 scores 1.5. magent does not assay hemoglobin.",
                          "type": "number"
                        },
                        "hypertension": {
                          "description": "Caller-assigned hypertension (Gupta 2024 Figure 2). true scores 1. magent does not diagnose hypertension.",
                          "type": "boolean"
                        },
                        "magnesium_mmol_l": {
                          "description": "Serum magnesium in mmol/L (0.2-2.5), Gupta 2024 units. ≥0.82 scores 0; <0.82 scores 1. magent does not assay magnesium.",
                          "type": "number"
                        },
                        "wbc_k_ul": {
                          "description": "White blood cell count in 10^9/L (0.01-500), same as k/µL. Provide this or wbc_ul, not both. ≤12.0 scores 0; >12.0 scores 1.5 (Gupta 2024 Figure 2). magent does not assay WBC.",
                          "type": "number"
                        },
                        "wbc_ul": {
                          "description": "White blood cell count per µL (10-500000). Converted as wbc_10e9_l = wbc_ul / 1000. Provide this or wbc_k_ul, not both.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "hypertension",
                        "diabetes",
                        "current_or_former_smoker",
                        "magnesium_mmol_l",
                        "cisplatin_dose_mg"
                      ],
                      "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": [
    "cp-aki",
    "cisplatin",
    "kidney",
    "aki",
    "oncology",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T13:44:00.289Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T13:44:00.148Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "albumin_g_dl": 4.2,
                  "albumin_g_l": 42,
                  "cisplatin_dose_mg": 50,
                  "current_or_former_smoker": false,
                  "diabetes": false,
                  "hemoglobin_g_dl": 13,
                  "hemoglobin_g_l": 130,
                  "hypertension": false,
                  "magnesium_mmol_l": 0.9,
                  "wbc_k_ul": 8,
                  "wbc_ul": 8000
                },
                {
                  "age": 40,
                  "albumin_g_dl": 4.2,
                  "albumin_g_l": 42,
                  "cisplatin_dose_mg": 50,
                  "current_or_former_smoker": false,
                  "diabetes": false,
                  "hemoglobin_g_dl": 13,
                  "hemoglobin_g_l": 130,
                  "hypertension": false,
                  "magnesium_mmol_l": 0.9,
                  "wbc_k_ul": 8,
                  "wbc_ul": 8000
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age": 40,
                  "albumin_g_l": 42,
                  "cisplatin_dose_mg": 50,
                  "citation": {
                    "authors": "Gupta S, et al.",
                    "doi": "10.1136/bmj-2023-077169",
                    "id": "gupta-2024",
                    "pmid": "38538012",
                    "source": "BMJ. 2024;384:e077169",
                    "title": "Derivation and external validation of a simple risk score for predicting severe acute kidney injury after intravenous cisplatin: cohort study"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "hypertension",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "current_or_former_smoker",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hemoglobin",
                      "points": 0,
                      "present": false,
                      "value": 130
                    },
                    {
                      "factor": "wbc",
                      "points": 0,
                      "present": false,
                      "value": 8
                    },
                    {
                      "factor": "albumin",
                      "points": 0,
                      "present": false,
                      "value": 42
                    },
                    {
                      "factor": "magnesium",
                      "points": 0,
                      "present": false,
                      "value": 0.9
                    },
                    {
                      "factor": "cisplatin_dose",
                      "points": 0,
                      "present": false,
                      "value": 50
                    }
                  ],
                  "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": "cp_aki",
                  "formula_expression": "CP-AKI simple = age (≤45 0; 46-60 2.5; 61-70 3.5; >70 4.5) + hypertension 1 + diabetes 1 + current_or_former_smoker 1 + hemoglobin_g_l (≥120 0; 110-119 1; <110 1.5) + wbc_10e9_l (≤12.0 0; >12.0 1.5) + albumin_g_l (>38 0; 33-38 1; <33 1.5) + magnesium_mmol_l (≥0.82 0; <0.82 1) + cisplatin_dose_mg (≤50 0; 51-75 2; 76-100 2.5; 101-125 3; 126-150 5; 151-200 7.5; >200 9.5); Gupta 2024 Figure 2 odds-ratio points; max 22.5; no creatinine; no platelets; low 0-5.5 / moderate 6-9.5 / high 10-15.5 / very_high ≥16",
                  "hemoglobin_g_l": 130,
                  "magnesium_mmol_l": 0.9,
                  "max_score": 22.5,
                  "risk_group": "low",
                  "score": 0,
                  "wbc_10e9_l": 8
                },
                {
                  "age": 40,
                  "albumin_g_l": 42,
                  "cisplatin_dose_mg": 50,
                  "citation": {
                    "authors": "Gupta S, et al.",
                    "doi": "10.1136/bmj-2023-077169",
                    "id": "gupta-2024",
                    "pmid": "38538012",
                    "source": "BMJ. 2024;384:e077169",
                    "title": "Derivation and external validation of a simple risk score for predicting severe acute kidney injury after intravenous cisplatin: cohort study"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 40
                    },
                    {
                      "factor": "hypertension",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "current_or_former_smoker",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hemoglobin",
                      "points": 0,
                      "present": false,
                      "value": 130
                    },
                    {
                      "factor": "wbc",
                      "points": 0,
                      "present": false,
                      "value": 8
                    },
                    {
                      "factor": "albumin",
                      "points": 0,
                      "present": false,
                      "value": 42
                    },
                    {
                      "factor": "magnesium",
                      "points": 0,
                      "present": false,
                      "value": 0.9
                    },
                    {
                      "factor": "cisplatin_dose",
                      "points": 0,
                      "present": false,
                      "value": 50
                    }
                  ],
                  "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": "cp_aki",
                  "formula_expression": "CP-AKI simple = age (≤45 0; 46-60 2.5; 61-70 3.5; >70 4.5) + hypertension 1 + diabetes 1 + current_or_former_smoker 1 + hemoglobin_g_l (≥120 0; 110-119 1; <110 1.5) + wbc_10e9_l (≤12.0 0; >12.0 1.5) + albumin_g_l (>38 0; 33-38 1; <33 1.5) + magnesium_mmol_l (≥0.82 0; <0.82 1) + cisplatin_dose_mg (≤50 0; 51-75 2; 76-100 2.5; 101-125 3; 126-150 5; 151-200 7.5; >200 9.5); Gupta 2024 Figure 2 odds-ratio points; max 22.5; no creatinine; no platelets; low 0-5.5 / moderate 6-9.5 / high 10-15.5 / very_high ≥16",
                  "hemoglobin_g_l": 130,
                  "magnesium_mmol_l": 0.9,
                  "max_score": 22.5,
                  "risk_group": "low",
                  "score": 0,
                  "wbc_10e9_l": 8
                }
              ],
              "path": "/api/calc/cp_aki"
            },
            "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 (integer 18-120). Gupta 2024 Figure 2: ≤45 scores 0; 46-60 scores 2.5; 61-70 scores 3.5; >70 scores 4.5.",
                            "type": "integer"
                          },
                          "albumin_g_dl": {
                            "description": "Serum albumin in g/dL (1-6). Converted as albumin_g_l = albumin_g_dl × 10. Provide this or albumin_g_l, not both.",
                            "type": "number"
                          },
                          "albumin_g_l": {
                            "description": "Serum albumin in g/L (10-60), Gupta 2024 units. Provide this or albumin_g_dl, not both. >38 scores 0; 33-38 scores 1; <33 scores 1.5. magent does not assay albumin.",
                            "type": "number"
                          },
                          "cisplatin_dose_mg": {
                            "description": "First intravenous cisplatin dose in mg (1-500), Gupta 2024 Figure 2. ≤50 scores 0; 51-75 scores 2; 76-100 scores 2.5; 101-125 scores 3; 126-150 scores 5; 151-200 scores 7.5; >200 scores 9.5. magent does not dose cisplatin.",
                            "type": "number"
                          },
                          "current_or_former_smoker": {
                            "description": "Caller-assigned current or former smoker (Gupta 2024 Figure 2 simple score; BMJ 2024;385:q1207). true scores 1. magent does not take a smoking history.",
                            "type": "boolean"
                          },
                          "diabetes": {
                            "description": "Caller-assigned diabetes mellitus (Gupta 2024 Figure 2). true scores 1. magent does not diagnose diabetes.",
                            "type": "boolean"
                          },
                          "hemoglobin_g_dl": {
                            "description": "Hemoglobin in g/dL (3-22). Converted as hemoglobin_g_l = hemoglobin_g_dl × 10. Provide this or hemoglobin_g_l, not both.",
                            "type": "number"
                          },
                          "hemoglobin_g_l": {
                            "description": "Hemoglobin in g/L (30-220), Gupta 2024 units. Provide this or hemoglobin_g_dl, not both. ≥120 scores 0; 110-119 scores 1; <110 scores 1.5. magent does not assay hemoglobin.",
                            "type": "number"
                          },
                          "hypertension": {
                            "description": "Caller-assigned hypertension (Gupta 2024 Figure 2). true scores 1. magent does not diagnose hypertension.",
                            "type": "boolean"
                          },
                          "magnesium_mmol_l": {
                            "description": "Serum magnesium in mmol/L (0.2-2.5), Gupta 2024 units. ≥0.82 scores 0; <0.82 scores 1. magent does not assay magnesium.",
                            "type": "number"
                          },
                          "wbc_k_ul": {
                            "description": "White blood cell count in 10^9/L (0.01-500), same as k/µL. Provide this or wbc_ul, not both. ≤12.0 scores 0; >12.0 scores 1.5 (Gupta 2024 Figure 2). magent does not assay WBC.",
                            "type": "number"
                          },
                          "wbc_ul": {
                            "description": "White blood cell count per µL (10-500000). Converted as wbc_10e9_l = wbc_ul / 1000. Provide this or wbc_k_ul, not both.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "hypertension",
                          "diabetes",
                          "current_or_former_smoker",
                          "magnesium_mmol_l",
                          "cisplatin_dose_mg"
                        ],
                        "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"
  }
}