{
  "x402Version": 2,
  "id": 39094,
  "slug": "39094",
  "resource": "https://api.magentlab.com/api/calc/improve_bleed",
  "description": "Decousus 2011 IMPROVE admission bleeding-risk score: ulcer 4.5, prior bleeding 4, platelets <50 4, age >=85 3.5, hepatic failure 2.5, severe renal failure 2.5, ICU/CCU 2.5, CVC 2, rheumatic disease 2, current cancer 2, age 40-84 1.5, male 1, moderate renal failure 1. Max 30.5. Increased risk at >=7. Not a VTE-prophylaxis order. magent does not examine the patient.",
  "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_gastroduodenal_ulcer": false,
                "age": 35,
                "central_venous_catheter": false,
                "current_cancer": false,
                "hepatic_failure": false,
                "icu_ccu": false,
                "platelet_count_lt_50": false,
                "prior_bleeding": false,
                "renal_failure": "none",
                "rheumatic_disease": false,
                "sex": "female"
              },
              {
                "active_gastroduodenal_ulcer": false,
                "age": 35,
                "central_venous_catheter": false,
                "current_cancer": false,
                "hepatic_failure": false,
                "icu_ccu": false,
                "platelet_count_lt_50": false,
                "prior_bleeding": false,
                "renal_failure": "none",
                "rheumatic_disease": false,
                "sex": "female"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 35,
                "bleed_band": "not_increased",
                "citation": {
                  "authors": "Decousus H, Tapson VF, Bergmann JF, Chong BH, Froehlich JB, Kakkar AK, et al.",
                  "doi": "10.1378/chest.09-3081",
                  "id": "decousus-2011",
                  "pmid": "20453069",
                  "source": "Chest. 2011;139(1):69-79",
                  "title": "Factors at admission associated with bleeding risk in medical patients: findings from the IMPROVE investigators"
                },
                "components": [
                  {
                    "factor": "active_gastroduodenal_ulcer",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "prior_bleeding",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "platelet_count_lt_50",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_ge_85",
                    "points": 0,
                    "present": false,
                    "value": 35
                  },
                  {
                    "factor": "hepatic_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "severe_renal_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "icu_ccu",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "central_venous_catheter",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "rheumatic_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "current_cancer",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_40_84",
                    "points": 0,
                    "present": false,
                    "value": 35
                  },
                  {
                    "factor": "male_sex",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "moderate_renal_failure",
                    "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": "improve_bleed",
                "formula_expression": "IMPROVE bleed (Decousus 2011 admission) = active_gastroduodenal_ulcer (4.5) + prior_bleeding (4) + platelet_count_lt_50 (4) + age>=85 (3.5) + hepatic_failure INR>1.5 (2.5) + severe_renal_failure GFR<30 (2.5) + icu_ccu (2.5) + central_venous_catheter (2) + rheumatic_disease (2) + current_cancer (2) + age 40-84 (1.5) + male (1) + moderate_renal_failure GFR 30-59 (1); max 30.5; <7 not_increased, >=7 increased; half-points not integer-rounded; not Hostler 2016; not IMPROVE VTE",
                "max_score": 30.5,
                "renal_failure": "none",
                "score": 0,
                "sex": "female"
              },
              {
                "age_years": 35,
                "bleed_band": "not_increased",
                "citation": {
                  "authors": "Decousus H, Tapson VF, Bergmann JF, Chong BH, Froehlich JB, Kakkar AK, et al.",
                  "doi": "10.1378/chest.09-3081",
                  "id": "decousus-2011",
                  "pmid": "20453069",
                  "source": "Chest. 2011;139(1):69-79",
                  "title": "Factors at admission associated with bleeding risk in medical patients: findings from the IMPROVE investigators"
                },
                "components": [
                  {
                    "factor": "active_gastroduodenal_ulcer",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "prior_bleeding",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "platelet_count_lt_50",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_ge_85",
                    "points": 0,
                    "present": false,
                    "value": 35
                  },
                  {
                    "factor": "hepatic_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "severe_renal_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "icu_ccu",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "central_venous_catheter",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "rheumatic_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "current_cancer",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "age_40_84",
                    "points": 0,
                    "present": false,
                    "value": 35
                  },
                  {
                    "factor": "male_sex",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "moderate_renal_failure",
                    "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": "improve_bleed",
                "formula_expression": "IMPROVE bleed (Decousus 2011 admission) = active_gastroduodenal_ulcer (4.5) + prior_bleeding (4) + platelet_count_lt_50 (4) + age>=85 (3.5) + hepatic_failure INR>1.5 (2.5) + severe_renal_failure GFR<30 (2.5) + icu_ccu (2.5) + central_venous_catheter (2) + rheumatic_disease (2) + current_cancer (2) + age 40-84 (1.5) + male (1) + moderate_renal_failure GFR 30-59 (1); max 30.5; <7 not_increased, >=7 increased; half-points not integer-rounded; not Hostler 2016; not IMPROVE VTE",
                "max_score": 30.5,
                "renal_failure": "none",
                "score": 0,
                "sex": "female"
              }
            ],
            "path": "/api/calc/improve_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_gastroduodenal_ulcer": {
                          "description": "Active gastroduodenal ulcer as assigned by the caller (Decousus 2011). true or false. 4.5 points if true. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "age": {
                          "description": "Age in years (18-120). Decousus 2011 bands: <40 scores 0, 40-84 scores 1.5, >=85 scores 3.5. Age 39 scores 0; age 40 scores 1.5; age 84 scores 1.5; age 85 scores 3.5. Bands are mutually exclusive.",
                          "type": "integer"
                        },
                        "central_venous_catheter": {
                          "description": "Central venous catheter as assigned by the caller (Decousus 2011). true or false. 2 points if true. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "current_cancer": {
                          "description": "Current cancer as assigned by the caller (Decousus 2011). true or false. 2 points if true. magent does not diagnose cancer.",
                          "type": "boolean"
                        },
                        "hepatic_failure": {
                          "description": "Hepatic failure (INR >1.5) as assigned by the caller (Decousus 2011). true or false. 2.5 points if true. magent does not assay INR.",
                          "type": "boolean"
                        },
                        "icu_ccu": {
                          "description": "ICU or CCU stay as assigned by the caller (Decousus 2011). true or false. 2.5 points if true. magent does not assign level of care.",
                          "type": "boolean"
                        },
                        "platelet_count_lt_50": {
                          "description": "Platelet count <50 x 10^9/L at admission as assigned by the caller (Decousus 2011). true or false. 4 points if true. magent does not assay platelets.",
                          "type": "boolean"
                        },
                        "prior_bleeding": {
                          "description": "Bleeding during the 3 months before admission as assigned by the caller (Decousus 2011). true or false. 4 points if true. magent does not take a bleeding history.",
                          "type": "boolean"
                        },
                        "renal_failure": {
                          "description": "none, moderate, or severe as assigned by the caller (Decousus 2011). none is GFR >=60 mL/min/m2 (0 points); moderate is GFR 30-59 (1 point); severe is GFR <30 (2.5 points). Bands are mutually exclusive. magent does not compute GFR.",
                          "type": "string"
                        },
                        "rheumatic_disease": {
                          "description": "Rheumatic disease as assigned by the caller (Decousus 2011). true or false. 2 points if true. magent does not diagnose rheumatic disease.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "male or female (Decousus 2011). Male scores 1; female scores 0. magent does not examine the patient.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "renal_failure",
                        "active_gastroduodenal_ulcer",
                        "prior_bleeding",
                        "platelet_count_lt_50",
                        "hepatic_failure",
                        "icu_ccu",
                        "central_venous_catheter",
                        "rheumatic_disease",
                        "current_cancer"
                      ],
                      "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": [
    "improve-bleed",
    "bleeding",
    "vte",
    "hospital",
    "score",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T06:37:14.709Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T06:37:14.527Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "active_gastroduodenal_ulcer": false,
                  "age": 35,
                  "central_venous_catheter": false,
                  "current_cancer": false,
                  "hepatic_failure": false,
                  "icu_ccu": false,
                  "platelet_count_lt_50": false,
                  "prior_bleeding": false,
                  "renal_failure": "none",
                  "rheumatic_disease": false,
                  "sex": "female"
                },
                {
                  "active_gastroduodenal_ulcer": false,
                  "age": 35,
                  "central_venous_catheter": false,
                  "current_cancer": false,
                  "hepatic_failure": false,
                  "icu_ccu": false,
                  "platelet_count_lt_50": false,
                  "prior_bleeding": false,
                  "renal_failure": "none",
                  "rheumatic_disease": false,
                  "sex": "female"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 35,
                  "bleed_band": "not_increased",
                  "citation": {
                    "authors": "Decousus H, Tapson VF, Bergmann JF, Chong BH, Froehlich JB, Kakkar AK, et al.",
                    "doi": "10.1378/chest.09-3081",
                    "id": "decousus-2011",
                    "pmid": "20453069",
                    "source": "Chest. 2011;139(1):69-79",
                    "title": "Factors at admission associated with bleeding risk in medical patients: findings from the IMPROVE investigators"
                  },
                  "components": [
                    {
                      "factor": "active_gastroduodenal_ulcer",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "prior_bleeding",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "platelet_count_lt_50",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_ge_85",
                      "points": 0,
                      "present": false,
                      "value": 35
                    },
                    {
                      "factor": "hepatic_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "severe_renal_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "icu_ccu",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "central_venous_catheter",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "rheumatic_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "current_cancer",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_40_84",
                      "points": 0,
                      "present": false,
                      "value": 35
                    },
                    {
                      "factor": "male_sex",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "moderate_renal_failure",
                      "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": "improve_bleed",
                  "formula_expression": "IMPROVE bleed (Decousus 2011 admission) = active_gastroduodenal_ulcer (4.5) + prior_bleeding (4) + platelet_count_lt_50 (4) + age>=85 (3.5) + hepatic_failure INR>1.5 (2.5) + severe_renal_failure GFR<30 (2.5) + icu_ccu (2.5) + central_venous_catheter (2) + rheumatic_disease (2) + current_cancer (2) + age 40-84 (1.5) + male (1) + moderate_renal_failure GFR 30-59 (1); max 30.5; <7 not_increased, >=7 increased; half-points not integer-rounded; not Hostler 2016; not IMPROVE VTE",
                  "max_score": 30.5,
                  "renal_failure": "none",
                  "score": 0,
                  "sex": "female"
                },
                {
                  "age_years": 35,
                  "bleed_band": "not_increased",
                  "citation": {
                    "authors": "Decousus H, Tapson VF, Bergmann JF, Chong BH, Froehlich JB, Kakkar AK, et al.",
                    "doi": "10.1378/chest.09-3081",
                    "id": "decousus-2011",
                    "pmid": "20453069",
                    "source": "Chest. 2011;139(1):69-79",
                    "title": "Factors at admission associated with bleeding risk in medical patients: findings from the IMPROVE investigators"
                  },
                  "components": [
                    {
                      "factor": "active_gastroduodenal_ulcer",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "prior_bleeding",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "platelet_count_lt_50",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_ge_85",
                      "points": 0,
                      "present": false,
                      "value": 35
                    },
                    {
                      "factor": "hepatic_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "severe_renal_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "icu_ccu",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "central_venous_catheter",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "rheumatic_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "current_cancer",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "age_40_84",
                      "points": 0,
                      "present": false,
                      "value": 35
                    },
                    {
                      "factor": "male_sex",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "moderate_renal_failure",
                      "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": "improve_bleed",
                  "formula_expression": "IMPROVE bleed (Decousus 2011 admission) = active_gastroduodenal_ulcer (4.5) + prior_bleeding (4) + platelet_count_lt_50 (4) + age>=85 (3.5) + hepatic_failure INR>1.5 (2.5) + severe_renal_failure GFR<30 (2.5) + icu_ccu (2.5) + central_venous_catheter (2) + rheumatic_disease (2) + current_cancer (2) + age 40-84 (1.5) + male (1) + moderate_renal_failure GFR 30-59 (1); max 30.5; <7 not_increased, >=7 increased; half-points not integer-rounded; not Hostler 2016; not IMPROVE VTE",
                  "max_score": 30.5,
                  "renal_failure": "none",
                  "score": 0,
                  "sex": "female"
                }
              ],
              "path": "/api/calc/improve_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_gastroduodenal_ulcer": {
                            "description": "Active gastroduodenal ulcer as assigned by the caller (Decousus 2011). true or false. 4.5 points if true. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "age": {
                            "description": "Age in years (18-120). Decousus 2011 bands: <40 scores 0, 40-84 scores 1.5, >=85 scores 3.5. Age 39 scores 0; age 40 scores 1.5; age 84 scores 1.5; age 85 scores 3.5. Bands are mutually exclusive.",
                            "type": "integer"
                          },
                          "central_venous_catheter": {
                            "description": "Central venous catheter as assigned by the caller (Decousus 2011). true or false. 2 points if true. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "current_cancer": {
                            "description": "Current cancer as assigned by the caller (Decousus 2011). true or false. 2 points if true. magent does not diagnose cancer.",
                            "type": "boolean"
                          },
                          "hepatic_failure": {
                            "description": "Hepatic failure (INR >1.5) as assigned by the caller (Decousus 2011). true or false. 2.5 points if true. magent does not assay INR.",
                            "type": "boolean"
                          },
                          "icu_ccu": {
                            "description": "ICU or CCU stay as assigned by the caller (Decousus 2011). true or false. 2.5 points if true. magent does not assign level of care.",
                            "type": "boolean"
                          },
                          "platelet_count_lt_50": {
                            "description": "Platelet count <50 x 10^9/L at admission as assigned by the caller (Decousus 2011). true or false. 4 points if true. magent does not assay platelets.",
                            "type": "boolean"
                          },
                          "prior_bleeding": {
                            "description": "Bleeding during the 3 months before admission as assigned by the caller (Decousus 2011). true or false. 4 points if true. magent does not take a bleeding history.",
                            "type": "boolean"
                          },
                          "renal_failure": {
                            "description": "none, moderate, or severe as assigned by the caller (Decousus 2011). none is GFR >=60 mL/min/m2 (0 points); moderate is GFR 30-59 (1 point); severe is GFR <30 (2.5 points). Bands are mutually exclusive. magent does not compute GFR.",
                            "type": "string"
                          },
                          "rheumatic_disease": {
                            "description": "Rheumatic disease as assigned by the caller (Decousus 2011). true or false. 2 points if true. magent does not diagnose rheumatic disease.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "male or female (Decousus 2011). Male scores 1; female scores 0. magent does not examine the patient.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "renal_failure",
                          "active_gastroduodenal_ulcer",
                          "prior_bleeding",
                          "platelet_count_lt_50",
                          "hepatic_failure",
                          "icu_ccu",
                          "central_venous_catheter",
                          "rheumatic_disease",
                          "current_cancer"
                        ],
                        "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"
  }
}