{
  "x402Version": 2,
  "id": 39247,
  "slug": "39247",
  "resource": "https://api.magentlab.com/api/calc/chads_65",
  "description": "CCS 2014 CHADS-65 algorithm for nonvalvular AF/AFL stroke-prevention discussion. Oral anticoagulant if age ≥65 or CHF, hypertension, diabetes, or prior stroke/TIA. Else aspirin if coronary, aortic, or peripheral arterial disease. Else none. Not CHADS2, not CHA2DS2-VASc, not HAS-BLED, and not an anticoagulation 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": [
              {
                "age": 70,
                "chf": false,
                "diabetes": false,
                "hypertension": false,
                "stroke_tia": false,
                "vascular_disease": false
              },
              {
                "age": 70,
                "chf": false,
                "diabetes": false,
                "hypertension": false,
                "stroke_tia": false,
                "vascular_disease": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Verma A, Cairns JA, Mitchell LB, Macle L, Stiell IG, Gladstone D, McMurtry MS, Connolly S, Cox JL, Dorian P, Ivers N, Leblanc K, Nattel S, Healey JS",
                  "doi": "10.1016/j.cjca.2014.08.001",
                  "id": "verma-2014",
                  "pmid": "25262857",
                  "source": "Can J Cardiol. 2014;30(10):1114-1130",
                  "title": "2014 focused update of the Canadian Cardiovascular Society Guidelines for the management of atrial fibrillation"
                },
                "criteria": [
                  {
                    "factor": "age_ge_65",
                    "met": true,
                    "value": 70
                  },
                  {
                    "factor": "chf",
                    "met": false
                  },
                  {
                    "factor": "hypertension",
                    "met": false
                  },
                  {
                    "factor": "diabetes",
                    "met": false
                  },
                  {
                    "factor": "stroke_tia",
                    "met": false
                  },
                  {
                    "factor": "vascular_disease",
                    "met": 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": "chads_65",
                "formula_expression": "OAC if age ≥ 65 or CHF or hypertension or diabetes or prior stroke/TIA; else ASA if vascular disease (coronary, aortic, or peripheral arterial); else none (CCS 2014 CHADS-65)",
                "oac_indicated": true,
                "recommendation": "oac"
              },
              {
                "citation": {
                  "authors": "Verma A, Cairns JA, Mitchell LB, Macle L, Stiell IG, Gladstone D, McMurtry MS, Connolly S, Cox JL, Dorian P, Ivers N, Leblanc K, Nattel S, Healey JS",
                  "doi": "10.1016/j.cjca.2014.08.001",
                  "id": "verma-2014",
                  "pmid": "25262857",
                  "source": "Can J Cardiol. 2014;30(10):1114-1130",
                  "title": "2014 focused update of the Canadian Cardiovascular Society Guidelines for the management of atrial fibrillation"
                },
                "criteria": [
                  {
                    "factor": "age_ge_65",
                    "met": true,
                    "value": 70
                  },
                  {
                    "factor": "chf",
                    "met": false
                  },
                  {
                    "factor": "hypertension",
                    "met": false
                  },
                  {
                    "factor": "diabetes",
                    "met": false
                  },
                  {
                    "factor": "stroke_tia",
                    "met": false
                  },
                  {
                    "factor": "vascular_disease",
                    "met": 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": "chads_65",
                "formula_expression": "OAC if age ≥ 65 or CHF or hypertension or diabetes or prior stroke/TIA; else ASA if vascular disease (coronary, aortic, or peripheral arterial); else none (CCS 2014 CHADS-65)",
                "oac_indicated": true,
                "recommendation": "oac"
              }
            ],
            "path": "/api/calc/chads_65"
          },
          "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). ≥65 indicates oral anticoagulant (OAC). Age ≥75 is subsumed by ≥65; there is no separate age≥75 input. 64 does not indicate OAC on age alone.",
                          "type": "integer"
                        },
                        "chf": {
                          "description": "Congestive heart failure as assigned by the caller. true or false. Any true CHADS2 factor other than age≥75 (CHF, hypertension, diabetes, prior stroke/TIA) indicates OAC.",
                          "type": "boolean"
                        },
                        "diabetes": {
                          "description": "Diabetes mellitus as assigned by the caller. true or false. Indicates OAC when true.",
                          "type": "boolean"
                        },
                        "hypertension": {
                          "description": "Hypertension history as assigned by the caller. true or false. Indicates OAC when true.",
                          "type": "boolean"
                        },
                        "stroke_tia": {
                          "description": "Prior stroke or TIA as assigned by the caller. true or false. Indicates OAC when true.",
                          "type": "boolean"
                        },
                        "vascular_disease": {
                          "description": "Coronary, aortic, or peripheral arterial disease as assigned by the caller. true or false. Indicates ASA only when OAC is not indicated.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "chf",
                        "hypertension",
                        "diabetes",
                        "stroke_tia",
                        "vascular_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": [
    "chads-65",
    "afib",
    "stroke",
    "ccs",
    "oac",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T01:36:16.481Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T01:36:16.324Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 70,
                  "chf": false,
                  "diabetes": false,
                  "hypertension": false,
                  "stroke_tia": false,
                  "vascular_disease": false
                },
                {
                  "age": 70,
                  "chf": false,
                  "diabetes": false,
                  "hypertension": false,
                  "stroke_tia": false,
                  "vascular_disease": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Verma A, Cairns JA, Mitchell LB, Macle L, Stiell IG, Gladstone D, McMurtry MS, Connolly S, Cox JL, Dorian P, Ivers N, Leblanc K, Nattel S, Healey JS",
                    "doi": "10.1016/j.cjca.2014.08.001",
                    "id": "verma-2014",
                    "pmid": "25262857",
                    "source": "Can J Cardiol. 2014;30(10):1114-1130",
                    "title": "2014 focused update of the Canadian Cardiovascular Society Guidelines for the management of atrial fibrillation"
                  },
                  "criteria": [
                    {
                      "factor": "age_ge_65",
                      "met": true,
                      "value": 70
                    },
                    {
                      "factor": "chf",
                      "met": false
                    },
                    {
                      "factor": "hypertension",
                      "met": false
                    },
                    {
                      "factor": "diabetes",
                      "met": false
                    },
                    {
                      "factor": "stroke_tia",
                      "met": false
                    },
                    {
                      "factor": "vascular_disease",
                      "met": 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": "chads_65",
                  "formula_expression": "OAC if age ≥ 65 or CHF or hypertension or diabetes or prior stroke/TIA; else ASA if vascular disease (coronary, aortic, or peripheral arterial); else none (CCS 2014 CHADS-65)",
                  "oac_indicated": true,
                  "recommendation": "oac"
                },
                {
                  "citation": {
                    "authors": "Verma A, Cairns JA, Mitchell LB, Macle L, Stiell IG, Gladstone D, McMurtry MS, Connolly S, Cox JL, Dorian P, Ivers N, Leblanc K, Nattel S, Healey JS",
                    "doi": "10.1016/j.cjca.2014.08.001",
                    "id": "verma-2014",
                    "pmid": "25262857",
                    "source": "Can J Cardiol. 2014;30(10):1114-1130",
                    "title": "2014 focused update of the Canadian Cardiovascular Society Guidelines for the management of atrial fibrillation"
                  },
                  "criteria": [
                    {
                      "factor": "age_ge_65",
                      "met": true,
                      "value": 70
                    },
                    {
                      "factor": "chf",
                      "met": false
                    },
                    {
                      "factor": "hypertension",
                      "met": false
                    },
                    {
                      "factor": "diabetes",
                      "met": false
                    },
                    {
                      "factor": "stroke_tia",
                      "met": false
                    },
                    {
                      "factor": "vascular_disease",
                      "met": 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": "chads_65",
                  "formula_expression": "OAC if age ≥ 65 or CHF or hypertension or diabetes or prior stroke/TIA; else ASA if vascular disease (coronary, aortic, or peripheral arterial); else none (CCS 2014 CHADS-65)",
                  "oac_indicated": true,
                  "recommendation": "oac"
                }
              ],
              "path": "/api/calc/chads_65"
            },
            "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). ≥65 indicates oral anticoagulant (OAC). Age ≥75 is subsumed by ≥65; there is no separate age≥75 input. 64 does not indicate OAC on age alone.",
                            "type": "integer"
                          },
                          "chf": {
                            "description": "Congestive heart failure as assigned by the caller. true or false. Any true CHADS2 factor other than age≥75 (CHF, hypertension, diabetes, prior stroke/TIA) indicates OAC.",
                            "type": "boolean"
                          },
                          "diabetes": {
                            "description": "Diabetes mellitus as assigned by the caller. true or false. Indicates OAC when true.",
                            "type": "boolean"
                          },
                          "hypertension": {
                            "description": "Hypertension history as assigned by the caller. true or false. Indicates OAC when true.",
                            "type": "boolean"
                          },
                          "stroke_tia": {
                            "description": "Prior stroke or TIA as assigned by the caller. true or false. Indicates OAC when true.",
                            "type": "boolean"
                          },
                          "vascular_disease": {
                            "description": "Coronary, aortic, or peripheral arterial disease as assigned by the caller. true or false. Indicates ASA only when OAC is not indicated.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "chf",
                          "hypertension",
                          "diabetes",
                          "stroke_tia",
                          "vascular_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"
  }
}