{
  "x402Version": 2,
  "id": 38781,
  "slug": "38781",
  "resource": "https://api.magentlab.com/api/calc/timi_ua_nstemi",
  "description": "TIMI risk score for unstable angina / NSTEMI from age and six caller-assigned flags. Returns the 0-7 point total and components. Deterministic published score with citation; not an invasive-strategy protocol.",
  "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": 50,
                "aspirin_last_7d": false,
                "cad_risk_factors_ge_3": false,
                "elevated_markers": false,
                "known_cad": false,
                "severe_angina": false,
                "st_deviation": false
              },
              {
                "age": 50,
                "aspirin_last_7d": false,
                "cad_risk_factors_ge_3": false,
                "elevated_markers": false,
                "known_cad": false,
                "severe_angina": false,
                "st_deviation": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 50,
                "citation": {
                  "authors": "Antman EM, Cohen M, Bernink PJLM, et al.",
                  "doi": "10.1001/jama.284.7.835",
                  "id": "antman-2000",
                  "source": "JAMA. 2000;284(7):835-842",
                  "title": "The TIMI risk score for unstable angina/non–ST elevation MI: A method for prognostication and therapeutic decision making"
                },
                "components": [
                  {
                    "factor": "age_ge_65",
                    "points": 0,
                    "present": false,
                    "value": 50
                  },
                  {
                    "factor": "cad_risk_factors_ge_3",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "known_cad",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "aspirin_last_7d",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "severe_angina",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "st_deviation",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "elevated_markers",
                    "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": "timi_ua_nstemi",
                "formula_expression": "TIMI UA/NSTEMI = age_ge_65 + cad_risk_factors_ge_3 + known_cad + aspirin_last_7d + severe_angina + st_deviation + elevated_markers; each 1 if present; max 7",
                "max_score": 7,
                "score": 0
              },
              {
                "age_years": 50,
                "citation": {
                  "authors": "Antman EM, Cohen M, Bernink PJLM, et al.",
                  "doi": "10.1001/jama.284.7.835",
                  "id": "antman-2000",
                  "source": "JAMA. 2000;284(7):835-842",
                  "title": "The TIMI risk score for unstable angina/non–ST elevation MI: A method for prognostication and therapeutic decision making"
                },
                "components": [
                  {
                    "factor": "age_ge_65",
                    "points": 0,
                    "present": false,
                    "value": 50
                  },
                  {
                    "factor": "cad_risk_factors_ge_3",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "known_cad",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "aspirin_last_7d",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "severe_angina",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "st_deviation",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "elevated_markers",
                    "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": "timi_ua_nstemi",
                "formula_expression": "TIMI UA/NSTEMI = age_ge_65 + cad_risk_factors_ge_3 + known_cad + aspirin_last_7d + severe_angina + st_deviation + elevated_markers; each 1 if present; max 7",
                "max_score": 7,
                "score": 0
              }
            ],
            "path": "/api/calc/timi_ua_nstemi"
          },
          "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). Age ≥65 scores 1.",
                          "type": "integer"
                        },
                        "aspirin_last_7d": {
                          "description": "Aspirin use in the last 7 days. true or false.",
                          "type": "boolean"
                        },
                        "cad_risk_factors_ge_3": {
                          "description": "≥3 CAD risk factors as assigned by the caller. true or false. magent does not expand smoking, hypertension, family history, diabetes, or cholesterol.",
                          "type": "boolean"
                        },
                        "elevated_markers": {
                          "description": "Elevated cardiac markers as assigned by the caller. true or false.",
                          "type": "boolean"
                        },
                        "known_cad": {
                          "description": "Known CAD (stenosis ≥50%). true or false.",
                          "type": "boolean"
                        },
                        "severe_angina": {
                          "description": "Severe angina (≥2 episodes in 24 hours). true or false.",
                          "type": "boolean"
                        },
                        "st_deviation": {
                          "description": "ST deviation ≥0.5 mm as assigned by the caller. true or false. magent does not read ECGs.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "cad_risk_factors_ge_3",
                        "known_cad",
                        "aspirin_last_7d",
                        "severe_angina",
                        "st_deviation",
                        "elevated_markers"
                      ],
                      "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": [
    "timi",
    "ua-nstemi",
    "acs",
    "nstemi",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T15:37:40.206Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T15:37:40.046Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 50,
                  "aspirin_last_7d": false,
                  "cad_risk_factors_ge_3": false,
                  "elevated_markers": false,
                  "known_cad": false,
                  "severe_angina": false,
                  "st_deviation": false
                },
                {
                  "age": 50,
                  "aspirin_last_7d": false,
                  "cad_risk_factors_ge_3": false,
                  "elevated_markers": false,
                  "known_cad": false,
                  "severe_angina": false,
                  "st_deviation": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Antman EM, Cohen M, Bernink PJLM, et al.",
                    "doi": "10.1001/jama.284.7.835",
                    "id": "antman-2000",
                    "source": "JAMA. 2000;284(7):835-842",
                    "title": "The TIMI risk score for unstable angina/non–ST elevation MI: A method for prognostication and therapeutic decision making"
                  },
                  "components": [
                    {
                      "factor": "age_ge_65",
                      "points": 0,
                      "present": false,
                      "value": 50
                    },
                    {
                      "factor": "cad_risk_factors_ge_3",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "known_cad",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "aspirin_last_7d",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "severe_angina",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "st_deviation",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "elevated_markers",
                      "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": "timi_ua_nstemi",
                  "formula_expression": "TIMI UA/NSTEMI = age_ge_65 + cad_risk_factors_ge_3 + known_cad + aspirin_last_7d + severe_angina + st_deviation + elevated_markers; each 1 if present; max 7",
                  "max_score": 7,
                  "score": 0
                },
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Antman EM, Cohen M, Bernink PJLM, et al.",
                    "doi": "10.1001/jama.284.7.835",
                    "id": "antman-2000",
                    "source": "JAMA. 2000;284(7):835-842",
                    "title": "The TIMI risk score for unstable angina/non–ST elevation MI: A method for prognostication and therapeutic decision making"
                  },
                  "components": [
                    {
                      "factor": "age_ge_65",
                      "points": 0,
                      "present": false,
                      "value": 50
                    },
                    {
                      "factor": "cad_risk_factors_ge_3",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "known_cad",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "aspirin_last_7d",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "severe_angina",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "st_deviation",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "elevated_markers",
                      "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": "timi_ua_nstemi",
                  "formula_expression": "TIMI UA/NSTEMI = age_ge_65 + cad_risk_factors_ge_3 + known_cad + aspirin_last_7d + severe_angina + st_deviation + elevated_markers; each 1 if present; max 7",
                  "max_score": 7,
                  "score": 0
                }
              ],
              "path": "/api/calc/timi_ua_nstemi"
            },
            "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). Age ≥65 scores 1.",
                            "type": "integer"
                          },
                          "aspirin_last_7d": {
                            "description": "Aspirin use in the last 7 days. true or false.",
                            "type": "boolean"
                          },
                          "cad_risk_factors_ge_3": {
                            "description": "≥3 CAD risk factors as assigned by the caller. true or false. magent does not expand smoking, hypertension, family history, diabetes, or cholesterol.",
                            "type": "boolean"
                          },
                          "elevated_markers": {
                            "description": "Elevated cardiac markers as assigned by the caller. true or false.",
                            "type": "boolean"
                          },
                          "known_cad": {
                            "description": "Known CAD (stenosis ≥50%). true or false.",
                            "type": "boolean"
                          },
                          "severe_angina": {
                            "description": "Severe angina (≥2 episodes in 24 hours). true or false.",
                            "type": "boolean"
                          },
                          "st_deviation": {
                            "description": "ST deviation ≥0.5 mm as assigned by the caller. true or false. magent does not read ECGs.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "cad_risk_factors_ge_3",
                          "known_cad",
                          "aspirin_last_7d",
                          "severe_angina",
                          "st_deviation",
                          "elevated_markers"
                        ],
                        "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"
  }
}