{
  "x402Version": 2,
  "id": 39474,
  "slug": "39474",
  "resource": "https://api.magentlab.com/api/calc/esus",
  "description": "ESUS (Hart 2014). True iff all five caller-assigned flags hold: non-lacunar infarct on CT/MRI; no ≥50% stenosis supplying the ischaemia; no major-risk cardioembolic source; no other specific cause; and Panel 3 minimum workup (brain CT/MRI, 12-lead ECG, precordial echo, ≥24 h automated rhythm monitoring (not telemetry), extra- and intracranial arterial imaging). Incomplete workup is not ESUS. Not a stroke diagnosis, not TOAST cryptogenic, not anticoagulation. magent does not read imaging.",
  "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": [
              {
                "minimum_workup": true,
                "no_major_risk_cardioembolic": true,
                "no_other_specific_cause": true,
                "no_stenosis_ge_50": true,
                "non_lacunar_infarct": true
              },
              {
                "minimum_workup": true,
                "no_major_risk_cardioembolic": true,
                "no_other_specific_cause": true,
                "no_stenosis_ge_50": true,
                "non_lacunar_infarct": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Hart RG, Diener HC, Coutts SB, Easton JD, Granger CB, O'Donnell MJ, Sacco RL, Connolly SJ, Cryptogenic Stroke/ESUS International Working Group",
                  "doi": "10.1016/S1474-4422(13)70310-7",
                  "id": "hart-2014",
                  "pmid": "24646875",
                  "source": "Lancet Neurol. 2014;13(4):429-438",
                  "title": "Embolic strokes of undetermined source: the case for a new clinical construct"
                },
                "criteria": [
                  {
                    "factor": "non_lacunar_infarct",
                    "met": true
                  },
                  {
                    "factor": "no_stenosis_ge_50",
                    "met": true
                  },
                  {
                    "factor": "no_major_risk_cardioembolic",
                    "met": true
                  },
                  {
                    "factor": "no_other_specific_cause",
                    "met": true
                  },
                  {
                    "factor": "minimum_workup",
                    "met": true
                  }
                ],
                "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.",
                "esus": true,
                "formula": "esus",
                "formula_expression": "esus iff non_lacunar_infarct and no_stenosis_ge_50 and no_major_risk_cardioembolic and no_other_specific_cause and minimum_workup (Hart 2014 Panel 2 + Panel 3)"
              },
              {
                "citation": {
                  "authors": "Hart RG, Diener HC, Coutts SB, Easton JD, Granger CB, O'Donnell MJ, Sacco RL, Connolly SJ, Cryptogenic Stroke/ESUS International Working Group",
                  "doi": "10.1016/S1474-4422(13)70310-7",
                  "id": "hart-2014",
                  "pmid": "24646875",
                  "source": "Lancet Neurol. 2014;13(4):429-438",
                  "title": "Embolic strokes of undetermined source: the case for a new clinical construct"
                },
                "criteria": [
                  {
                    "factor": "non_lacunar_infarct",
                    "met": true
                  },
                  {
                    "factor": "no_stenosis_ge_50",
                    "met": true
                  },
                  {
                    "factor": "no_major_risk_cardioembolic",
                    "met": true
                  },
                  {
                    "factor": "no_other_specific_cause",
                    "met": true
                  },
                  {
                    "factor": "minimum_workup",
                    "met": true
                  }
                ],
                "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.",
                "esus": true,
                "formula": "esus",
                "formula_expression": "esus iff non_lacunar_infarct and no_stenosis_ge_50 and no_major_risk_cardioembolic and no_other_specific_cause and minimum_workup (Hart 2014 Panel 2 + Panel 3)"
              }
            ],
            "path": "/api/calc/esus"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "minimum_workup": {
                          "description": "Hart 2014 Panel 3 minimum diagnostic assessment, as assigned by the caller. true only if brain CT or MRI, 12-lead ECG, precordial echocardiography, cardiac monitoring for ≥24 h with automated rhythm detection (telemetry is not sufficient), and imaging of both extracranial and intracranial arteries supplying the ischaemic territory have been done. Incomplete workup returns esus false (not HTTP 400). true or false. magent does not read imaging.",
                          "type": "boolean"
                        },
                        "no_major_risk_cardioembolic": {
                          "description": "No major-risk cardioembolic source, as assigned by the caller (Hart 2014 Panel 2). Major-risk sources (paper footnote): permanent or paroxysmal atrial fibrillation, sustained atrial flutter, intracardiac thrombus, prosthetic cardiac valve, atrial myxoma or other cardiac tumours, mitral stenosis, recent (<4 weeks) myocardial infarction, left ventricular ejection fraction less than 30%, valvular vegetations, or infective endocarditis. true or false. The caller assigns this boolean; magent does not enumerate each source as a separate required param.",
                          "type": "boolean"
                        },
                        "no_other_specific_cause": {
                          "description": "No other specific cause identified, as assigned by the caller (Hart 2014 Panel 2). Paper examples: arteritis, dissection, migraine/vasospasm, drug misuse. true or false. magent does not diagnose an alternative aetiology.",
                          "type": "boolean"
                        },
                        "no_stenosis_ge_50": {
                          "description": "Absence of extracranial or intracranial atherosclerosis causing ≥50% luminal stenosis in arteries supplying the area of ischaemia, as assigned by the caller (Hart 2014 Panel 2). true means no such stenosis. true or false. magent does not read vascular imaging.",
                          "type": "boolean"
                        },
                        "non_lacunar_infarct": {
                          "description": "Stroke detected by CT or MRI that is not lacunar, as assigned by the caller (Hart 2014 Panel 2). Lacunar = subcortical infarct ≤1.5 cm (≤2.0 cm on MRI diffusion images) in largest dimension, in the distribution of the small penetrating cerebral arteries. true or false. magent does not read imaging.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "non_lacunar_infarct",
                        "no_stenosis_ge_50",
                        "no_major_risk_cardioembolic",
                        "no_other_specific_cause",
                        "minimum_workup"
                      ],
                      "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": [
    "esus",
    "stroke",
    "neurology",
    "cryptogenic",
    "embolic",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:47:57.657Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:47:57.532Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "minimum_workup": true,
                  "no_major_risk_cardioembolic": true,
                  "no_other_specific_cause": true,
                  "no_stenosis_ge_50": true,
                  "non_lacunar_infarct": true
                },
                {
                  "minimum_workup": true,
                  "no_major_risk_cardioembolic": true,
                  "no_other_specific_cause": true,
                  "no_stenosis_ge_50": true,
                  "non_lacunar_infarct": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Hart RG, Diener HC, Coutts SB, Easton JD, Granger CB, O'Donnell MJ, Sacco RL, Connolly SJ, Cryptogenic Stroke/ESUS International Working Group",
                    "doi": "10.1016/S1474-4422(13)70310-7",
                    "id": "hart-2014",
                    "pmid": "24646875",
                    "source": "Lancet Neurol. 2014;13(4):429-438",
                    "title": "Embolic strokes of undetermined source: the case for a new clinical construct"
                  },
                  "criteria": [
                    {
                      "factor": "non_lacunar_infarct",
                      "met": true
                    },
                    {
                      "factor": "no_stenosis_ge_50",
                      "met": true
                    },
                    {
                      "factor": "no_major_risk_cardioembolic",
                      "met": true
                    },
                    {
                      "factor": "no_other_specific_cause",
                      "met": true
                    },
                    {
                      "factor": "minimum_workup",
                      "met": true
                    }
                  ],
                  "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.",
                  "esus": true,
                  "formula": "esus",
                  "formula_expression": "esus iff non_lacunar_infarct and no_stenosis_ge_50 and no_major_risk_cardioembolic and no_other_specific_cause and minimum_workup (Hart 2014 Panel 2 + Panel 3)"
                },
                {
                  "citation": {
                    "authors": "Hart RG, Diener HC, Coutts SB, Easton JD, Granger CB, O'Donnell MJ, Sacco RL, Connolly SJ, Cryptogenic Stroke/ESUS International Working Group",
                    "doi": "10.1016/S1474-4422(13)70310-7",
                    "id": "hart-2014",
                    "pmid": "24646875",
                    "source": "Lancet Neurol. 2014;13(4):429-438",
                    "title": "Embolic strokes of undetermined source: the case for a new clinical construct"
                  },
                  "criteria": [
                    {
                      "factor": "non_lacunar_infarct",
                      "met": true
                    },
                    {
                      "factor": "no_stenosis_ge_50",
                      "met": true
                    },
                    {
                      "factor": "no_major_risk_cardioembolic",
                      "met": true
                    },
                    {
                      "factor": "no_other_specific_cause",
                      "met": true
                    },
                    {
                      "factor": "minimum_workup",
                      "met": true
                    }
                  ],
                  "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.",
                  "esus": true,
                  "formula": "esus",
                  "formula_expression": "esus iff non_lacunar_infarct and no_stenosis_ge_50 and no_major_risk_cardioembolic and no_other_specific_cause and minimum_workup (Hart 2014 Panel 2 + Panel 3)"
                }
              ],
              "path": "/api/calc/esus"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "minimum_workup": {
                            "description": "Hart 2014 Panel 3 minimum diagnostic assessment, as assigned by the caller. true only if brain CT or MRI, 12-lead ECG, precordial echocardiography, cardiac monitoring for ≥24 h with automated rhythm detection (telemetry is not sufficient), and imaging of both extracranial and intracranial arteries supplying the ischaemic territory have been done. Incomplete workup returns esus false (not HTTP 400). true or false. magent does not read imaging.",
                            "type": "boolean"
                          },
                          "no_major_risk_cardioembolic": {
                            "description": "No major-risk cardioembolic source, as assigned by the caller (Hart 2014 Panel 2). Major-risk sources (paper footnote): permanent or paroxysmal atrial fibrillation, sustained atrial flutter, intracardiac thrombus, prosthetic cardiac valve, atrial myxoma or other cardiac tumours, mitral stenosis, recent (<4 weeks) myocardial infarction, left ventricular ejection fraction less than 30%, valvular vegetations, or infective endocarditis. true or false. The caller assigns this boolean; magent does not enumerate each source as a separate required param.",
                            "type": "boolean"
                          },
                          "no_other_specific_cause": {
                            "description": "No other specific cause identified, as assigned by the caller (Hart 2014 Panel 2). Paper examples: arteritis, dissection, migraine/vasospasm, drug misuse. true or false. magent does not diagnose an alternative aetiology.",
                            "type": "boolean"
                          },
                          "no_stenosis_ge_50": {
                            "description": "Absence of extracranial or intracranial atherosclerosis causing ≥50% luminal stenosis in arteries supplying the area of ischaemia, as assigned by the caller (Hart 2014 Panel 2). true means no such stenosis. true or false. magent does not read vascular imaging.",
                            "type": "boolean"
                          },
                          "non_lacunar_infarct": {
                            "description": "Stroke detected by CT or MRI that is not lacunar, as assigned by the caller (Hart 2014 Panel 2). Lacunar = subcortical infarct ≤1.5 cm (≤2.0 cm on MRI diffusion images) in largest dimension, in the distribution of the small penetrating cerebral arteries. true or false. magent does not read imaging.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "non_lacunar_infarct",
                          "no_stenosis_ge_50",
                          "no_major_risk_cardioembolic",
                          "no_other_specific_cause",
                          "minimum_workup"
                        ],
                        "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"
  }
}