{
  "x402Version": 2,
  "id": 39205,
  "slug": "39205",
  "resource": "https://api.magentlab.com/api/calc/doac_score",
  "description": "Aggarwal 2023 DOAC Score (Circulation Table 2) for AF on DOACs: age 65-69 2 / 70-74 3 / 75-79 4 / >=80 5 (<65 0); CrCl/eGFR 30-60 inclusive 1, <30 2; underweight caller BMI <18.5 flag 1; stroke/TIA/embolism 1; diabetes 1; hypertension 1; antiplatelet none 0, aspirin 2, dual 3; NSAID 1; bleeding history 3; liver disease 2. Score min(raw, 10). Bands 0-3 very_low, 4-5 low, 6-7 moderate, 8-9 high, 10 very_high. Not HAS-BLED. Not DOAC dosing. Not warfarin.",
  "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": 65,
                "antiplatelet": "none",
                "bleeding_history": false,
                "crcl_or_egfr_ml_min": 70,
                "diabetes": false,
                "hypertension": false,
                "liver_disease": false,
                "nsaid_use": false,
                "stroke_tia_embolism_history": false,
                "underweight": false
              },
              {
                "age": 65,
                "antiplatelet": "none",
                "bleeding_history": false,
                "crcl_or_egfr_ml_min": 70,
                "diabetes": false,
                "hypertension": false,
                "liver_disease": false,
                "nsaid_use": false,
                "stroke_tia_embolism_history": false,
                "underweight": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 65,
                "antiplatelet": "none",
                "band": "very_low",
                "citation": {
                  "authors": "Aggarwal R, Ruff CT, Virdone S, Perreault S, Kakkar AK, Palazzolo MG, Dorais M, Kayani G, Singer DE, Secemsky E, Piccini J, Tahir UA, Shen C, Yeh RW",
                  "doi": "10.1161/CIRCULATIONAHA.123.064556",
                  "id": "aggarwal-2023",
                  "pmid": "37621213",
                  "source": "Circulation. 2023;148(12):936-946",
                  "title": "Development and Validation of the DOAC Score: A Novel Bleeding Risk Prediction Tool for Patients With Atrial Fibrillation on Direct-Acting Oral Anticoagulants"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 2,
                    "present": true,
                    "value": 65
                  },
                  {
                    "factor": "crcl_or_egfr",
                    "points": 0,
                    "present": false,
                    "value": 70
                  },
                  {
                    "factor": "underweight",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "stroke_tia_embolism_history",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hypertension",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "antiplatelet",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "nsaid_use",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "bleeding_history",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "liver_disease",
                    "points": 0,
                    "present": false
                  }
                ],
                "crcl_or_egfr_ml_min": 70,
                "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": "doac_score",
                "formula_expression": "DOAC Score (Aggarwal 2023 Circulation Table 2) = age (65-69 2, 70-74 3, 75-79 4, >=80 5; <65 0) + crcl_or_egfr_ml_min (30-60 inclusive 1, <30 2, >60 0) + underweight 1 + stroke_tia_embolism_history 1 + diabetes 1 + hypertension 1 + antiplatelet (none 0, aspirin 2, dual 3) + nsaid_use 1 + bleeding_history 3 + liver_disease 2; score = min(raw_sum, 10); bands 0-3 very_low, 4-5 low, 6-7 moderate, 8-9 high, 10 very_high; not HAS-BLED; not DOAC dosing; not warfarin",
                "max_score": 10,
                "score": 2,
                "uncapped_sum": 2
              },
              {
                "age_years": 65,
                "antiplatelet": "none",
                "band": "very_low",
                "citation": {
                  "authors": "Aggarwal R, Ruff CT, Virdone S, Perreault S, Kakkar AK, Palazzolo MG, Dorais M, Kayani G, Singer DE, Secemsky E, Piccini J, Tahir UA, Shen C, Yeh RW",
                  "doi": "10.1161/CIRCULATIONAHA.123.064556",
                  "id": "aggarwal-2023",
                  "pmid": "37621213",
                  "source": "Circulation. 2023;148(12):936-946",
                  "title": "Development and Validation of the DOAC Score: A Novel Bleeding Risk Prediction Tool for Patients With Atrial Fibrillation on Direct-Acting Oral Anticoagulants"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 2,
                    "present": true,
                    "value": 65
                  },
                  {
                    "factor": "crcl_or_egfr",
                    "points": 0,
                    "present": false,
                    "value": 70
                  },
                  {
                    "factor": "underweight",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "stroke_tia_embolism_history",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hypertension",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "antiplatelet",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "nsaid_use",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "bleeding_history",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "liver_disease",
                    "points": 0,
                    "present": false
                  }
                ],
                "crcl_or_egfr_ml_min": 70,
                "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": "doac_score",
                "formula_expression": "DOAC Score (Aggarwal 2023 Circulation Table 2) = age (65-69 2, 70-74 3, 75-79 4, >=80 5; <65 0) + crcl_or_egfr_ml_min (30-60 inclusive 1, <30 2, >60 0) + underweight 1 + stroke_tia_embolism_history 1 + diabetes 1 + hypertension 1 + antiplatelet (none 0, aspirin 2, dual 3) + nsaid_use 1 + bleeding_history 3 + liver_disease 2; score = min(raw_sum, 10); bands 0-3 very_low, 4-5 low, 6-7 moderate, 8-9 high, 10 very_high; not HAS-BLED; not DOAC dosing; not warfarin",
                "max_score": 10,
                "score": 2,
                "uncapped_sum": 2
              }
            ],
            "path": "/api/calc/doac_score"
          },
          "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 (18-120). Table 2: 65-69 scores 2; 70-74 scores 3; 75-79 scores 4; ≥80 scores 5; age <65 scores 0 and is accepted.",
                          "type": "integer"
                        },
                        "antiplatelet": {
                          "description": "Antiplatelet use: none (0), aspirin (2), or dual (aspirin + P2Y12; 3). Table 2.",
                          "enum": [
                            "none",
                            "aspirin",
                            "dual"
                          ],
                          "type": "string"
                        },
                        "bleeding_history": {
                          "description": "Bleeding history as assigned by the caller. true or false. Scores 3.",
                          "type": "boolean"
                        },
                        "crcl_or_egfr_ml_min": {
                          "description": "Creatinine clearance or eGFR in mL/min (5-200). Table 2: 30-60 inclusive scores 1; <30 scores 2; >60 scores 0. Exactly 30 and exactly 60 score 1.",
                          "type": "number"
                        },
                        "diabetes": {
                          "description": "Diabetes as assigned by the caller. true or false. Scores 1.",
                          "type": "boolean"
                        },
                        "hypertension": {
                          "description": "Hypertension as assigned by the caller. true or false. Scores 1.",
                          "type": "boolean"
                        },
                        "liver_disease": {
                          "description": "Liver disease as assigned by the caller (Table 2 footnote: AST, ALT, or ALP ≥3× ULN, ALP ≥2× ULN, or cirrhosis). true or false. Scores 2. magent does not assay labs or assign Child-Pugh.",
                          "type": "boolean"
                        },
                        "nsaid_use": {
                          "description": "NSAID use as assigned by the caller. true or false. Scores 1.",
                          "type": "boolean"
                        },
                        "stroke_tia_embolism_history": {
                          "description": "History of stroke, TIA, or embolism as assigned by the caller. true or false. Scores 1.",
                          "type": "boolean"
                        },
                        "underweight": {
                          "description": "Caller-assigned BMI <18.5 kg/m² (Table 2 underweight). true or false. Scores 1. magent does not compute BMI.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "crcl_or_egfr_ml_min",
                        "underweight",
                        "stroke_tia_embolism_history",
                        "diabetes",
                        "hypertension",
                        "antiplatelet",
                        "nsaid_use",
                        "bleeding_history",
                        "liver_disease"
                      ],
                      "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": [
    "doac-score",
    "bleeding",
    "afib",
    "doac",
    "score",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T02:51:00.508Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T02:51:00.359Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 65,
                  "antiplatelet": "none",
                  "bleeding_history": false,
                  "crcl_or_egfr_ml_min": 70,
                  "diabetes": false,
                  "hypertension": false,
                  "liver_disease": false,
                  "nsaid_use": false,
                  "stroke_tia_embolism_history": false,
                  "underweight": false
                },
                {
                  "age": 65,
                  "antiplatelet": "none",
                  "bleeding_history": false,
                  "crcl_or_egfr_ml_min": 70,
                  "diabetes": false,
                  "hypertension": false,
                  "liver_disease": false,
                  "nsaid_use": false,
                  "stroke_tia_embolism_history": false,
                  "underweight": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 65,
                  "antiplatelet": "none",
                  "band": "very_low",
                  "citation": {
                    "authors": "Aggarwal R, Ruff CT, Virdone S, Perreault S, Kakkar AK, Palazzolo MG, Dorais M, Kayani G, Singer DE, Secemsky E, Piccini J, Tahir UA, Shen C, Yeh RW",
                    "doi": "10.1161/CIRCULATIONAHA.123.064556",
                    "id": "aggarwal-2023",
                    "pmid": "37621213",
                    "source": "Circulation. 2023;148(12):936-946",
                    "title": "Development and Validation of the DOAC Score: A Novel Bleeding Risk Prediction Tool for Patients With Atrial Fibrillation on Direct-Acting Oral Anticoagulants"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 2,
                      "present": true,
                      "value": 65
                    },
                    {
                      "factor": "crcl_or_egfr",
                      "points": 0,
                      "present": false,
                      "value": 70
                    },
                    {
                      "factor": "underweight",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "stroke_tia_embolism_history",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hypertension",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "antiplatelet",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "nsaid_use",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "bleeding_history",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "liver_disease",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "crcl_or_egfr_ml_min": 70,
                  "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": "doac_score",
                  "formula_expression": "DOAC Score (Aggarwal 2023 Circulation Table 2) = age (65-69 2, 70-74 3, 75-79 4, >=80 5; <65 0) + crcl_or_egfr_ml_min (30-60 inclusive 1, <30 2, >60 0) + underweight 1 + stroke_tia_embolism_history 1 + diabetes 1 + hypertension 1 + antiplatelet (none 0, aspirin 2, dual 3) + nsaid_use 1 + bleeding_history 3 + liver_disease 2; score = min(raw_sum, 10); bands 0-3 very_low, 4-5 low, 6-7 moderate, 8-9 high, 10 very_high; not HAS-BLED; not DOAC dosing; not warfarin",
                  "max_score": 10,
                  "score": 2,
                  "uncapped_sum": 2
                },
                {
                  "age_years": 65,
                  "antiplatelet": "none",
                  "band": "very_low",
                  "citation": {
                    "authors": "Aggarwal R, Ruff CT, Virdone S, Perreault S, Kakkar AK, Palazzolo MG, Dorais M, Kayani G, Singer DE, Secemsky E, Piccini J, Tahir UA, Shen C, Yeh RW",
                    "doi": "10.1161/CIRCULATIONAHA.123.064556",
                    "id": "aggarwal-2023",
                    "pmid": "37621213",
                    "source": "Circulation. 2023;148(12):936-946",
                    "title": "Development and Validation of the DOAC Score: A Novel Bleeding Risk Prediction Tool for Patients With Atrial Fibrillation on Direct-Acting Oral Anticoagulants"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 2,
                      "present": true,
                      "value": 65
                    },
                    {
                      "factor": "crcl_or_egfr",
                      "points": 0,
                      "present": false,
                      "value": 70
                    },
                    {
                      "factor": "underweight",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "stroke_tia_embolism_history",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hypertension",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "antiplatelet",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "nsaid_use",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "bleeding_history",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "liver_disease",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "crcl_or_egfr_ml_min": 70,
                  "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": "doac_score",
                  "formula_expression": "DOAC Score (Aggarwal 2023 Circulation Table 2) = age (65-69 2, 70-74 3, 75-79 4, >=80 5; <65 0) + crcl_or_egfr_ml_min (30-60 inclusive 1, <30 2, >60 0) + underweight 1 + stroke_tia_embolism_history 1 + diabetes 1 + hypertension 1 + antiplatelet (none 0, aspirin 2, dual 3) + nsaid_use 1 + bleeding_history 3 + liver_disease 2; score = min(raw_sum, 10); bands 0-3 very_low, 4-5 low, 6-7 moderate, 8-9 high, 10 very_high; not HAS-BLED; not DOAC dosing; not warfarin",
                  "max_score": 10,
                  "score": 2,
                  "uncapped_sum": 2
                }
              ],
              "path": "/api/calc/doac_score"
            },
            "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 (18-120). Table 2: 65-69 scores 2; 70-74 scores 3; 75-79 scores 4; ≥80 scores 5; age <65 scores 0 and is accepted.",
                            "type": "integer"
                          },
                          "antiplatelet": {
                            "description": "Antiplatelet use: none (0), aspirin (2), or dual (aspirin + P2Y12; 3). Table 2.",
                            "enum": [
                              "none",
                              "aspirin",
                              "dual"
                            ],
                            "type": "string"
                          },
                          "bleeding_history": {
                            "description": "Bleeding history as assigned by the caller. true or false. Scores 3.",
                            "type": "boolean"
                          },
                          "crcl_or_egfr_ml_min": {
                            "description": "Creatinine clearance or eGFR in mL/min (5-200). Table 2: 30-60 inclusive scores 1; <30 scores 2; >60 scores 0. Exactly 30 and exactly 60 score 1.",
                            "type": "number"
                          },
                          "diabetes": {
                            "description": "Diabetes as assigned by the caller. true or false. Scores 1.",
                            "type": "boolean"
                          },
                          "hypertension": {
                            "description": "Hypertension as assigned by the caller. true or false. Scores 1.",
                            "type": "boolean"
                          },
                          "liver_disease": {
                            "description": "Liver disease as assigned by the caller (Table 2 footnote: AST, ALT, or ALP ≥3× ULN, ALP ≥2× ULN, or cirrhosis). true or false. Scores 2. magent does not assay labs or assign Child-Pugh.",
                            "type": "boolean"
                          },
                          "nsaid_use": {
                            "description": "NSAID use as assigned by the caller. true or false. Scores 1.",
                            "type": "boolean"
                          },
                          "stroke_tia_embolism_history": {
                            "description": "History of stroke, TIA, or embolism as assigned by the caller. true or false. Scores 1.",
                            "type": "boolean"
                          },
                          "underweight": {
                            "description": "Caller-assigned BMI <18.5 kg/m² (Table 2 underweight). true or false. Scores 1. magent does not compute BMI.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "crcl_or_egfr_ml_min",
                          "underweight",
                          "stroke_tia_embolism_history",
                          "diabetes",
                          "hypertension",
                          "antiplatelet",
                          "nsaid_use",
                          "bleeding_history",
                          "liver_disease"
                        ],
                        "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"
  }
}