{
  "x402Version": 2,
  "id": 39387,
  "slug": "39387",
  "resource": "https://api.magentlab.com/api/calc/allowable_blood_loss",
  "description": "Gross 1983 dilution-corrected allowable blood loss from caller-supplied estimated blood volume and initial versus target hematocrit. Deterministic published arithmetic with citation. Not a transfusion trigger or order. Does not compute Nadler EBV; does not use the uncorrected EBV*(Hi-Hf)/Hi form.",
  "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": [
              {
                "estimated_blood_volume_ml": 5000,
                "hct_initial_percent": 40,
                "hct_target_percent": 30
              },
              {
                "estimated_blood_volume_ml": 5000,
                "hct_initial_percent": 40,
                "hct_target_percent": 30
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "abl_ml": 1428.6,
                "citation": {
                  "authors": "Gross JB",
                  "doi": "10.1097/00000542-198303000-00016",
                  "id": "gross-1983",
                  "source": "Anesthesiology. 1983;58(3):277-280",
                  "title": "Estimating allowable blood loss: corrected for dilution"
                },
                "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_blood_volume_ml": 5000,
                "formula": "gross_1983",
                "formula_expression": "abl_ml = estimated_blood_volume_ml * (hct_initial_percent - hct_target_percent) / ((hct_initial_percent + hct_target_percent) / 2)",
                "hct_initial_percent": 40,
                "hct_target_percent": 30
              },
              {
                "abl_ml": 1428.6,
                "citation": {
                  "authors": "Gross JB",
                  "doi": "10.1097/00000542-198303000-00016",
                  "id": "gross-1983",
                  "source": "Anesthesiology. 1983;58(3):277-280",
                  "title": "Estimating allowable blood loss: corrected for dilution"
                },
                "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_blood_volume_ml": 5000,
                "formula": "gross_1983",
                "formula_expression": "abl_ml = estimated_blood_volume_ml * (hct_initial_percent - hct_target_percent) / ((hct_initial_percent + hct_target_percent) / 2)",
                "hct_initial_percent": 40,
                "hct_target_percent": 30
              }
            ],
            "path": "/api/calc/allowable_blood_loss"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "estimated_blood_volume_ml": {
                          "description": "Caller-supplied estimated blood volume in mL (50-15000). Required. magent does not compute Nadler EBV.",
                          "type": "number"
                        },
                        "hct_initial_percent": {
                          "description": "Initial hematocrit as a percent (10-70).",
                          "type": "number"
                        },
                        "hct_target_percent": {
                          "description": "Target hematocrit as a percent (10-70). Must be strictly less than hct_initial_percent.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "estimated_blood_volume_ml",
                        "hct_initial_percent",
                        "hct_target_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": [
    "abl",
    "hematocrit",
    "gross",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T15:00:56.022Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T15:00:55.871Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "estimated_blood_volume_ml": 5000,
                  "hct_initial_percent": 40,
                  "hct_target_percent": 30
                },
                {
                  "estimated_blood_volume_ml": 5000,
                  "hct_initial_percent": 40,
                  "hct_target_percent": 30
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "abl_ml": 1428.6,
                  "citation": {
                    "authors": "Gross JB",
                    "doi": "10.1097/00000542-198303000-00016",
                    "id": "gross-1983",
                    "source": "Anesthesiology. 1983;58(3):277-280",
                    "title": "Estimating allowable blood loss: corrected for dilution"
                  },
                  "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_blood_volume_ml": 5000,
                  "formula": "gross_1983",
                  "formula_expression": "abl_ml = estimated_blood_volume_ml * (hct_initial_percent - hct_target_percent) / ((hct_initial_percent + hct_target_percent) / 2)",
                  "hct_initial_percent": 40,
                  "hct_target_percent": 30
                },
                {
                  "abl_ml": 1428.6,
                  "citation": {
                    "authors": "Gross JB",
                    "doi": "10.1097/00000542-198303000-00016",
                    "id": "gross-1983",
                    "source": "Anesthesiology. 1983;58(3):277-280",
                    "title": "Estimating allowable blood loss: corrected for dilution"
                  },
                  "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_blood_volume_ml": 5000,
                  "formula": "gross_1983",
                  "formula_expression": "abl_ml = estimated_blood_volume_ml * (hct_initial_percent - hct_target_percent) / ((hct_initial_percent + hct_target_percent) / 2)",
                  "hct_initial_percent": 40,
                  "hct_target_percent": 30
                }
              ],
              "path": "/api/calc/allowable_blood_loss"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "estimated_blood_volume_ml": {
                            "description": "Caller-supplied estimated blood volume in mL (50-15000). Required. magent does not compute Nadler EBV.",
                            "type": "number"
                          },
                          "hct_initial_percent": {
                            "description": "Initial hematocrit as a percent (10-70).",
                            "type": "number"
                          },
                          "hct_target_percent": {
                            "description": "Target hematocrit as a percent (10-70). Must be strictly less than hct_initial_percent.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "estimated_blood_volume_ml",
                          "hct_initial_percent",
                          "hct_target_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"
  }
}