{
  "x402Version": 2,
  "id": 38903,
  "slug": "38903",
  "resource": "https://api.magentlab.com/api/calc/vte_bleed",
  "description": "Klok 2016 VTE-BLEED for major bleeding on stable anticoagulation after VTE. Six items: active cancer 2; male with uncontrolled hypertension (SBP ≥140) 1; anemia 1.5; history of bleeding 1.5; age ≥60 1.5; renal dysfunction (eGFR/CrCl <60) 1.5; max 9. Low <2, high ≥2. Caller-assigned flags; magent does not assay hemoglobin or eGFR. Not a medical device, not HAS-BLED, and not a treatment-duration order.",
  "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": [
              {
                "active_cancer": false,
                "age": 70,
                "anemia": false,
                "history_of_bleeding": false,
                "renal_dysfunction": false,
                "sex": "male",
                "uncontrolled_hypertension": false
              },
              {
                "active_cancer": false,
                "age": 70,
                "anemia": false,
                "history_of_bleeding": false,
                "renal_dysfunction": false,
                "sex": "male",
                "uncontrolled_hypertension": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 70,
                "citation": {
                  "authors": "Klok FA, Hösel V, Clemens A, Yollo WD, Tilke C, Schulman S, Lankeit M, Konstantinides SV",
                  "doi": "10.1183/13993003.00280-2016",
                  "id": "klok-2016",
                  "pmid": "27471209",
                  "source": "Eur Respir J. 2016;48(5):1369-1376",
                  "title": "Prediction of bleeding events in patients with venous thromboembolism on stable anticoagulation treatment"
                },
                "components": [
                  {
                    "factor": "active_cancer",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "male_uncontrolled_hypertension",
                    "points": 0,
                    "present": false,
                    "sex": "male",
                    "uncontrolled_hypertension": false
                  },
                  {
                    "factor": "anemia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "history_of_bleeding",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_ge_60",
                    "points": 1.5,
                    "present": true,
                    "value": 70
                  },
                  {
                    "factor": "renal_dysfunction",
                    "points": 0,
                    "present": false
                  }
                ],
                "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": "vte_bleed",
                "formula_expression": "VTE-BLEED = active_cancer 2 + (male AND uncontrolled_hypertension) 1 + anemia 1.5 + history_of_bleeding 1.5 + age_ge_60 1.5 + renal_dysfunction 1.5; Klok 2016; max 9; low <2, high >=2",
                "max_score": 9,
                "score": 1.5,
                "sex": "male",
                "vte_bleed_band": "low"
              },
              {
                "age_years": 70,
                "citation": {
                  "authors": "Klok FA, Hösel V, Clemens A, Yollo WD, Tilke C, Schulman S, Lankeit M, Konstantinides SV",
                  "doi": "10.1183/13993003.00280-2016",
                  "id": "klok-2016",
                  "pmid": "27471209",
                  "source": "Eur Respir J. 2016;48(5):1369-1376",
                  "title": "Prediction of bleeding events in patients with venous thromboembolism on stable anticoagulation treatment"
                },
                "components": [
                  {
                    "factor": "active_cancer",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "male_uncontrolled_hypertension",
                    "points": 0,
                    "present": false,
                    "sex": "male",
                    "uncontrolled_hypertension": false
                  },
                  {
                    "factor": "anemia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "history_of_bleeding",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_ge_60",
                    "points": 1.5,
                    "present": true,
                    "value": 70
                  },
                  {
                    "factor": "renal_dysfunction",
                    "points": 0,
                    "present": false
                  }
                ],
                "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": "vte_bleed",
                "formula_expression": "VTE-BLEED = active_cancer 2 + (male AND uncontrolled_hypertension) 1 + anemia 1.5 + history_of_bleeding 1.5 + age_ge_60 1.5 + renal_dysfunction 1.5; Klok 2016; max 9; low <2, high >=2",
                "max_score": 9,
                "score": 1.5,
                "sex": "male",
                "vte_bleed_band": "low"
              }
            ],
            "path": "/api/calc/vte_bleed"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "active_cancer": {
                          "description": "Active cancer as assigned by the caller (Klok 2016). true scores 2. magent does not diagnose cancer.",
                          "type": "boolean"
                        },
                        "age": {
                          "description": "Age in years (18-120). Age ≥60 scores 1.5 (Klok 2016). magent does not assign age.",
                          "type": "integer"
                        },
                        "anemia": {
                          "description": "Anemia as assigned by the caller (Klok 2016: hemoglobin <130 g/L in men or <120 g/L in women). true scores 1.5. magent does not take a hemoglobin number.",
                          "type": "boolean"
                        },
                        "history_of_bleeding": {
                          "description": "History of bleeding as assigned by the caller (Klok 2016). true scores 1.5. magent does not grade bleeding.",
                          "type": "boolean"
                        },
                        "renal_dysfunction": {
                          "description": "Renal dysfunction (eGFR or CrCl <60) as assigned by the caller (Klok 2016). true scores 1.5. magent does not compute eGFR or creatinine clearance.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male. Uncontrolled hypertension scores 1 only when sex is male (Klok 2016 / XALIA SBP ≥140 item). Female never scores that item.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "uncontrolled_hypertension": {
                          "description": "Uncontrolled hypertension (SBP ≥140 mmHg) as assigned by the caller (Klok 2016 / XALIA). true scores 1 only in males; females score 0 even when true. magent does not measure blood pressure.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "active_cancer",
                        "uncontrolled_hypertension",
                        "anemia",
                        "history_of_bleeding",
                        "renal_dysfunction"
                      ],
                      "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": [
    "vte-bleed",
    "vte",
    "bleeding",
    "anticoagulation",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:15:23.598Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-12T14:15:23.459Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "active_cancer": false,
                  "age": 70,
                  "anemia": false,
                  "history_of_bleeding": false,
                  "renal_dysfunction": false,
                  "sex": "male",
                  "uncontrolled_hypertension": false
                },
                {
                  "active_cancer": false,
                  "age": 70,
                  "anemia": false,
                  "history_of_bleeding": false,
                  "renal_dysfunction": false,
                  "sex": "male",
                  "uncontrolled_hypertension": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 70,
                  "citation": {
                    "authors": "Klok FA, Hösel V, Clemens A, Yollo WD, Tilke C, Schulman S, Lankeit M, Konstantinides SV",
                    "doi": "10.1183/13993003.00280-2016",
                    "id": "klok-2016",
                    "pmid": "27471209",
                    "source": "Eur Respir J. 2016;48(5):1369-1376",
                    "title": "Prediction of bleeding events in patients with venous thromboembolism on stable anticoagulation treatment"
                  },
                  "components": [
                    {
                      "factor": "active_cancer",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "male_uncontrolled_hypertension",
                      "points": 0,
                      "present": false,
                      "sex": "male",
                      "uncontrolled_hypertension": false
                    },
                    {
                      "factor": "anemia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "history_of_bleeding",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_ge_60",
                      "points": 1.5,
                      "present": true,
                      "value": 70
                    },
                    {
                      "factor": "renal_dysfunction",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "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": "vte_bleed",
                  "formula_expression": "VTE-BLEED = active_cancer 2 + (male AND uncontrolled_hypertension) 1 + anemia 1.5 + history_of_bleeding 1.5 + age_ge_60 1.5 + renal_dysfunction 1.5; Klok 2016; max 9; low <2, high >=2",
                  "max_score": 9,
                  "score": 1.5,
                  "sex": "male",
                  "vte_bleed_band": "low"
                },
                {
                  "age_years": 70,
                  "citation": {
                    "authors": "Klok FA, Hösel V, Clemens A, Yollo WD, Tilke C, Schulman S, Lankeit M, Konstantinides SV",
                    "doi": "10.1183/13993003.00280-2016",
                    "id": "klok-2016",
                    "pmid": "27471209",
                    "source": "Eur Respir J. 2016;48(5):1369-1376",
                    "title": "Prediction of bleeding events in patients with venous thromboembolism on stable anticoagulation treatment"
                  },
                  "components": [
                    {
                      "factor": "active_cancer",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "male_uncontrolled_hypertension",
                      "points": 0,
                      "present": false,
                      "sex": "male",
                      "uncontrolled_hypertension": false
                    },
                    {
                      "factor": "anemia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "history_of_bleeding",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_ge_60",
                      "points": 1.5,
                      "present": true,
                      "value": 70
                    },
                    {
                      "factor": "renal_dysfunction",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "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": "vte_bleed",
                  "formula_expression": "VTE-BLEED = active_cancer 2 + (male AND uncontrolled_hypertension) 1 + anemia 1.5 + history_of_bleeding 1.5 + age_ge_60 1.5 + renal_dysfunction 1.5; Klok 2016; max 9; low <2, high >=2",
                  "max_score": 9,
                  "score": 1.5,
                  "sex": "male",
                  "vte_bleed_band": "low"
                }
              ],
              "path": "/api/calc/vte_bleed"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "active_cancer": {
                            "description": "Active cancer as assigned by the caller (Klok 2016). true scores 2. magent does not diagnose cancer.",
                            "type": "boolean"
                          },
                          "age": {
                            "description": "Age in years (18-120). Age ≥60 scores 1.5 (Klok 2016). magent does not assign age.",
                            "type": "integer"
                          },
                          "anemia": {
                            "description": "Anemia as assigned by the caller (Klok 2016: hemoglobin <130 g/L in men or <120 g/L in women). true scores 1.5. magent does not take a hemoglobin number.",
                            "type": "boolean"
                          },
                          "history_of_bleeding": {
                            "description": "History of bleeding as assigned by the caller (Klok 2016). true scores 1.5. magent does not grade bleeding.",
                            "type": "boolean"
                          },
                          "renal_dysfunction": {
                            "description": "Renal dysfunction (eGFR or CrCl <60) as assigned by the caller (Klok 2016). true scores 1.5. magent does not compute eGFR or creatinine clearance.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male. Uncontrolled hypertension scores 1 only when sex is male (Klok 2016 / XALIA SBP ≥140 item). Female never scores that item.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "uncontrolled_hypertension": {
                            "description": "Uncontrolled hypertension (SBP ≥140 mmHg) as assigned by the caller (Klok 2016 / XALIA). true scores 1 only in males; females score 0 even when true. magent does not measure blood pressure.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "active_cancer",
                          "uncontrolled_hypertension",
                          "anemia",
                          "history_of_bleeding",
                          "renal_dysfunction"
                        ],
                        "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"
  }
}