{
  "x402Version": 2,
  "id": 39234,
  "slug": "39234",
  "resource": "https://api.magentlab.com/api/calc/corrected_calcium",
  "description": "Payne albumin-corrected calcium from total calcium and albumin. Deterministic published formula with citation; not a treatment recommendation.",
  "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": [
              {
                "albumin_g_dl": 3,
                "albumin_g_l": 30,
                "calcium_mg_dl": 8,
                "calcium_mmol_l": 2
              },
              {
                "albumin_g_dl": 3,
                "albumin_g_l": 30,
                "calcium_mg_dl": 8,
                "calcium_mmol_l": 2
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "albumin_g_dl": 3,
                "calcium_mg_dl": 8,
                "citation": {
                  "authors": "Payne RB, Little AJ, Williams RB, Milner JR",
                  "doi": "10.1136/bmj.4.5893.643",
                  "id": "payne-1973",
                  "source": "Br Med J. 1973;4(5893):643-646",
                  "title": "Interpretation of serum calcium in patients with abnormal serum proteins"
                },
                "corrected_calcium_mg_dl": 8.8,
                "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": "payne",
                "formula_expression": "corrected_ca_mg_dl = calcium_mg_dl + 0.8 * (4.0 - albumin_g_dl)"
              },
              {
                "albumin_g_dl": 3,
                "calcium_mg_dl": 8,
                "citation": {
                  "authors": "Payne RB, Little AJ, Williams RB, Milner JR",
                  "doi": "10.1136/bmj.4.5893.643",
                  "id": "payne-1973",
                  "source": "Br Med J. 1973;4(5893):643-646",
                  "title": "Interpretation of serum calcium in patients with abnormal serum proteins"
                },
                "corrected_calcium_mg_dl": 8.8,
                "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": "payne",
                "formula_expression": "corrected_ca_mg_dl = calcium_mg_dl + 0.8 * (4.0 - albumin_g_dl)"
              }
            ],
            "path": "/api/calc/corrected_calcium"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "albumin_g_dl": {
                          "description": "Albumin in g/dL (1-6). Provide this or albumin_g_l.",
                          "type": "number"
                        },
                        "albumin_g_l": {
                          "description": "Albumin in g/L. Converted as g/dL = g/L / 10.",
                          "type": "number"
                        },
                        "calcium_mg_dl": {
                          "description": "Total calcium in mg/dL (4-16). Provide this or calcium_mmol_l.",
                          "type": "number"
                        },
                        "calcium_mmol_l": {
                          "description": "Total calcium in mmol/L. Converted as mg/dL = mmol/L * 4.0.",
                          "type": "number"
                        }
                      },
                      "required": [],
                      "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": [
    "calcium",
    "albumin",
    "payne",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T02:01:22.016Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T02:01:21.231Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "albumin_g_dl": 3,
                  "albumin_g_l": 30,
                  "calcium_mg_dl": 8,
                  "calcium_mmol_l": 2
                },
                {
                  "albumin_g_dl": 3,
                  "albumin_g_l": 30,
                  "calcium_mg_dl": 8,
                  "calcium_mmol_l": 2
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "albumin_g_dl": 3,
                  "calcium_mg_dl": 8,
                  "citation": {
                    "authors": "Payne RB, Little AJ, Williams RB, Milner JR",
                    "doi": "10.1136/bmj.4.5893.643",
                    "id": "payne-1973",
                    "source": "Br Med J. 1973;4(5893):643-646",
                    "title": "Interpretation of serum calcium in patients with abnormal serum proteins"
                  },
                  "corrected_calcium_mg_dl": 8.8,
                  "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": "payne",
                  "formula_expression": "corrected_ca_mg_dl = calcium_mg_dl + 0.8 * (4.0 - albumin_g_dl)"
                },
                {
                  "albumin_g_dl": 3,
                  "calcium_mg_dl": 8,
                  "citation": {
                    "authors": "Payne RB, Little AJ, Williams RB, Milner JR",
                    "doi": "10.1136/bmj.4.5893.643",
                    "id": "payne-1973",
                    "source": "Br Med J. 1973;4(5893):643-646",
                    "title": "Interpretation of serum calcium in patients with abnormal serum proteins"
                  },
                  "corrected_calcium_mg_dl": 8.8,
                  "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": "payne",
                  "formula_expression": "corrected_ca_mg_dl = calcium_mg_dl + 0.8 * (4.0 - albumin_g_dl)"
                }
              ],
              "path": "/api/calc/corrected_calcium"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "albumin_g_dl": {
                            "description": "Albumin in g/dL (1-6). Provide this or albumin_g_l.",
                            "type": "number"
                          },
                          "albumin_g_l": {
                            "description": "Albumin in g/L. Converted as g/dL = g/L / 10.",
                            "type": "number"
                          },
                          "calcium_mg_dl": {
                            "description": "Total calcium in mg/dL (4-16). Provide this or calcium_mmol_l.",
                            "type": "number"
                          },
                          "calcium_mmol_l": {
                            "description": "Total calcium in mmol/L. Converted as mg/dL = mmol/L * 4.0.",
                            "type": "number"
                          }
                        },
                        "required": [],
                        "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"
  }
}