{
  "x402Version": 2,
  "id": 38948,
  "slug": "38948",
  "resource": "https://api.magentlab.com/api/calc/precise_dapt",
  "description": "Costa 2017 PRECISE-DAPT nomogram after coronary stenting. Truncated linear points: age (0 at <=50, 19 at >=90), caller CrCl mL/min (0 at >=100, 25 at 0), hemoglobin g/dL (0 at >=12, 15 at <=10), WBC x10^3/uL (0 at <=5, 15 at >=20), plus 26 for previous spontaneous bleeding. Integer score 0-100; high_bleeding_risk if score >=25. Not a DAPT duration order. magent does not compute Cockcroft-Gault.",
  "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,
                "crcl_ml_min": 100,
                "hemoglobin_g_dl": 12,
                "previous_spontaneous_bleeding": false,
                "wbc_k_ul": 5
              },
              {
                "age": 50,
                "crcl_ml_min": 100,
                "hemoglobin_g_dl": 12,
                "previous_spontaneous_bleeding": false,
                "wbc_k_ul": 5
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 50,
                "citation": {
                  "authors": "Costa F, van Klaveren D, James S, et al",
                  "doi": "10.1016/S0140-6736(17)30397-5",
                  "id": "costa-2017",
                  "pmid": "28290994",
                  "source": "Lancet. 2017;389(10073):1025-1034",
                  "title": "Derivation and validation of the predicting bleeding complications in patients undergoing stent implantation and subsequent dual antiplatelet therapy (PRECISE-DAPT) score: a pooled analysis of individual-patient datasets from clinical trials"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 50
                  },
                  {
                    "factor": "crcl_ml_min",
                    "points": 0,
                    "present": false,
                    "value": 100
                  },
                  {
                    "factor": "hemoglobin_g_dl",
                    "points": 0,
                    "present": false,
                    "value": 12
                  },
                  {
                    "factor": "wbc_k_ul",
                    "points": 0,
                    "present": false,
                    "value": 5
                  },
                  {
                    "factor": "previous_spontaneous_bleeding",
                    "points": 0,
                    "present": false
                  }
                ],
                "crcl_ml_min": 100,
                "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": "precise_dapt",
                "formula_expression": "PRECISE-DAPT = age_points + crcl_points + hemoglobin_points + wbc_points + previous_bleed_points (Costa 2017 Figure 1 nomogram; Table 1 truncated linear terms); age years truncated 50-90 (0 at <=50, 19 at >=90); caller-assigned CrCl mL/min truncated 0-100 (0 at >=100, 25 at 0; magent does not compute Cockcroft-Gault); hemoglobin g/dL truncated 10-12 (0 at >=12, 15 at <=10); WBC x10^3 cells/uL truncated 5-20 (0 at <=5, 15 at >=20); previous spontaneous bleeding 26 if true else 0; integer score is the rounded sum (0-100); high_bleeding_risk iff score >=25",
                "hemoglobin_g_dl": 12,
                "high_bleeding_risk": false,
                "max_score": 100,
                "previous_spontaneous_bleeding": false,
                "score": 0,
                "wbc_k_ul": 5
              },
              {
                "age_years": 50,
                "citation": {
                  "authors": "Costa F, van Klaveren D, James S, et al",
                  "doi": "10.1016/S0140-6736(17)30397-5",
                  "id": "costa-2017",
                  "pmid": "28290994",
                  "source": "Lancet. 2017;389(10073):1025-1034",
                  "title": "Derivation and validation of the predicting bleeding complications in patients undergoing stent implantation and subsequent dual antiplatelet therapy (PRECISE-DAPT) score: a pooled analysis of individual-patient datasets from clinical trials"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 50
                  },
                  {
                    "factor": "crcl_ml_min",
                    "points": 0,
                    "present": false,
                    "value": 100
                  },
                  {
                    "factor": "hemoglobin_g_dl",
                    "points": 0,
                    "present": false,
                    "value": 12
                  },
                  {
                    "factor": "wbc_k_ul",
                    "points": 0,
                    "present": false,
                    "value": 5
                  },
                  {
                    "factor": "previous_spontaneous_bleeding",
                    "points": 0,
                    "present": false
                  }
                ],
                "crcl_ml_min": 100,
                "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": "precise_dapt",
                "formula_expression": "PRECISE-DAPT = age_points + crcl_points + hemoglobin_points + wbc_points + previous_bleed_points (Costa 2017 Figure 1 nomogram; Table 1 truncated linear terms); age years truncated 50-90 (0 at <=50, 19 at >=90); caller-assigned CrCl mL/min truncated 0-100 (0 at >=100, 25 at 0; magent does not compute Cockcroft-Gault); hemoglobin g/dL truncated 10-12 (0 at >=12, 15 at <=10); WBC x10^3 cells/uL truncated 5-20 (0 at <=5, 15 at >=20); previous spontaneous bleeding 26 if true else 0; integer score is the rounded sum (0-100); high_bleeding_risk iff score >=25",
                "hemoglobin_g_dl": 12,
                "high_bleeding_risk": false,
                "max_score": 100,
                "previous_spontaneous_bleeding": false,
                "score": 0,
                "wbc_k_ul": 5
              }
            ],
            "path": "/api/calc/precise_dapt"
          },
          "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). Costa 2017 Table 1 truncates below 50 and above 90. Figure 1: <=50 scores 0; >=90 scores 19; linear between. Age 18 and age 50 both score 0.",
                          "type": "integer"
                        },
                        "crcl_ml_min": {
                          "description": "Creatinine clearance in mL/min (0-300) as assigned by the caller. Costa 2017 Figure 1 uses CrCl, not raw creatinine. magent does not compute Cockcroft-Gault. Truncated above 100: >=100 scores 0; 0 mL/min scores 25; linear between.",
                          "type": "number"
                        },
                        "hemoglobin_g_dl": {
                          "description": "Hemoglobin in g/dL (4-22). Table 1 truncates above 12 and below 10. Figure 1: >=12.0 scores 0; <=10.0 scores 15; linear between. magent does not assay hemoglobin.",
                          "type": "number"
                        },
                        "previous_spontaneous_bleeding": {
                          "description": "Previous spontaneous bleeding as assigned by the caller (Costa 2017). true scores 26; false scores 0. magent does not take a bleeding history.",
                          "type": "boolean"
                        },
                        "wbc_k_ul": {
                          "description": "White-blood-cell count in x10^3 cells per uL, same as x10^9/L (0.1-100). Table 1 truncates below 5 and above 20. Figure 1: <=5 scores 0; >=20 scores 15; linear between. magent does not assay WBC.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "crcl_ml_min",
                        "hemoglobin_g_dl",
                        "wbc_k_ul",
                        "previous_spontaneous_bleeding"
                      ],
                      "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": [
    "precise-dapt",
    "bleeding",
    "dapt",
    "pci",
    "acs",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:32:53.49Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:32:53.35Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 50,
                  "crcl_ml_min": 100,
                  "hemoglobin_g_dl": 12,
                  "previous_spontaneous_bleeding": false,
                  "wbc_k_ul": 5
                },
                {
                  "age": 50,
                  "crcl_ml_min": 100,
                  "hemoglobin_g_dl": 12,
                  "previous_spontaneous_bleeding": false,
                  "wbc_k_ul": 5
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Costa F, van Klaveren D, James S, et al",
                    "doi": "10.1016/S0140-6736(17)30397-5",
                    "id": "costa-2017",
                    "pmid": "28290994",
                    "source": "Lancet. 2017;389(10073):1025-1034",
                    "title": "Derivation and validation of the predicting bleeding complications in patients undergoing stent implantation and subsequent dual antiplatelet therapy (PRECISE-DAPT) score: a pooled analysis of individual-patient datasets from clinical trials"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 50
                    },
                    {
                      "factor": "crcl_ml_min",
                      "points": 0,
                      "present": false,
                      "value": 100
                    },
                    {
                      "factor": "hemoglobin_g_dl",
                      "points": 0,
                      "present": false,
                      "value": 12
                    },
                    {
                      "factor": "wbc_k_ul",
                      "points": 0,
                      "present": false,
                      "value": 5
                    },
                    {
                      "factor": "previous_spontaneous_bleeding",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "crcl_ml_min": 100,
                  "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": "precise_dapt",
                  "formula_expression": "PRECISE-DAPT = age_points + crcl_points + hemoglobin_points + wbc_points + previous_bleed_points (Costa 2017 Figure 1 nomogram; Table 1 truncated linear terms); age years truncated 50-90 (0 at <=50, 19 at >=90); caller-assigned CrCl mL/min truncated 0-100 (0 at >=100, 25 at 0; magent does not compute Cockcroft-Gault); hemoglobin g/dL truncated 10-12 (0 at >=12, 15 at <=10); WBC x10^3 cells/uL truncated 5-20 (0 at <=5, 15 at >=20); previous spontaneous bleeding 26 if true else 0; integer score is the rounded sum (0-100); high_bleeding_risk iff score >=25",
                  "hemoglobin_g_dl": 12,
                  "high_bleeding_risk": false,
                  "max_score": 100,
                  "previous_spontaneous_bleeding": false,
                  "score": 0,
                  "wbc_k_ul": 5
                },
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Costa F, van Klaveren D, James S, et al",
                    "doi": "10.1016/S0140-6736(17)30397-5",
                    "id": "costa-2017",
                    "pmid": "28290994",
                    "source": "Lancet. 2017;389(10073):1025-1034",
                    "title": "Derivation and validation of the predicting bleeding complications in patients undergoing stent implantation and subsequent dual antiplatelet therapy (PRECISE-DAPT) score: a pooled analysis of individual-patient datasets from clinical trials"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 50
                    },
                    {
                      "factor": "crcl_ml_min",
                      "points": 0,
                      "present": false,
                      "value": 100
                    },
                    {
                      "factor": "hemoglobin_g_dl",
                      "points": 0,
                      "present": false,
                      "value": 12
                    },
                    {
                      "factor": "wbc_k_ul",
                      "points": 0,
                      "present": false,
                      "value": 5
                    },
                    {
                      "factor": "previous_spontaneous_bleeding",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "crcl_ml_min": 100,
                  "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": "precise_dapt",
                  "formula_expression": "PRECISE-DAPT = age_points + crcl_points + hemoglobin_points + wbc_points + previous_bleed_points (Costa 2017 Figure 1 nomogram; Table 1 truncated linear terms); age years truncated 50-90 (0 at <=50, 19 at >=90); caller-assigned CrCl mL/min truncated 0-100 (0 at >=100, 25 at 0; magent does not compute Cockcroft-Gault); hemoglobin g/dL truncated 10-12 (0 at >=12, 15 at <=10); WBC x10^3 cells/uL truncated 5-20 (0 at <=5, 15 at >=20); previous spontaneous bleeding 26 if true else 0; integer score is the rounded sum (0-100); high_bleeding_risk iff score >=25",
                  "hemoglobin_g_dl": 12,
                  "high_bleeding_risk": false,
                  "max_score": 100,
                  "previous_spontaneous_bleeding": false,
                  "score": 0,
                  "wbc_k_ul": 5
                }
              ],
              "path": "/api/calc/precise_dapt"
            },
            "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). Costa 2017 Table 1 truncates below 50 and above 90. Figure 1: <=50 scores 0; >=90 scores 19; linear between. Age 18 and age 50 both score 0.",
                            "type": "integer"
                          },
                          "crcl_ml_min": {
                            "description": "Creatinine clearance in mL/min (0-300) as assigned by the caller. Costa 2017 Figure 1 uses CrCl, not raw creatinine. magent does not compute Cockcroft-Gault. Truncated above 100: >=100 scores 0; 0 mL/min scores 25; linear between.",
                            "type": "number"
                          },
                          "hemoglobin_g_dl": {
                            "description": "Hemoglobin in g/dL (4-22). Table 1 truncates above 12 and below 10. Figure 1: >=12.0 scores 0; <=10.0 scores 15; linear between. magent does not assay hemoglobin.",
                            "type": "number"
                          },
                          "previous_spontaneous_bleeding": {
                            "description": "Previous spontaneous bleeding as assigned by the caller (Costa 2017). true scores 26; false scores 0. magent does not take a bleeding history.",
                            "type": "boolean"
                          },
                          "wbc_k_ul": {
                            "description": "White-blood-cell count in x10^3 cells per uL, same as x10^9/L (0.1-100). Table 1 truncates below 5 and above 20. Figure 1: <=5 scores 0; >=20 scores 15; linear between. magent does not assay WBC.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "crcl_ml_min",
                          "hemoglobin_g_dl",
                          "wbc_k_ul",
                          "previous_spontaneous_bleeding"
                        ],
                        "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"
  }
}