{
  "x402Version": 2,
  "id": 39398,
  "slug": "39398",
  "resource": "https://api.magentlab.com/api/calc/four_ts",
  "description": "4Ts score (Lo 2006) for heparin-induced thrombocytopenia pretest probability. Four caller-assigned integers 0-2 (thrombocytopenia, timing, thrombosis, other causes) using the published table; magent sums only (max 8). Bands 0-3 low, 4-5 intermediate, and 6-8 high pretest probability. Not a diagnosis of HIT, not the HEP score, and not an antibody result. magent does not grade platelet counts or day of onset.",
  "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": [
              {
                "other_causes": 0,
                "thrombocytopenia": 0,
                "thrombosis": 0,
                "timing": 0
              },
              {
                "other_causes": 0,
                "thrombocytopenia": 0,
                "thrombosis": 0,
                "timing": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Lo GK, Juhl D, Warkentin TE, Sigouin CS, Eichler P, Greinacher A",
                  "doi": "10.1111/j.1538-7836.2006.01787.x",
                  "id": "lo-2006",
                  "source": "J Thromb Haemost. 2006;4(4):759-765",
                  "title": "Evaluation of pretest clinical score (4 T's) for the diagnosis of heparin-induced thrombocytopenia in two clinical settings"
                },
                "components": [
                  {
                    "factor": "thrombocytopenia",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "timing",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "thrombosis",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "other_causes",
                    "points": 0,
                    "present": false,
                    "value": 0
                  }
                ],
                "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": "four_ts",
                "formula_expression": "4Ts = thrombocytopenia + timing + thrombosis + other_causes; each 0-2 caller-assigned from Lo 2006 table; pretest probability low 0-3, intermediate 4-5, high 6-8; max 8",
                "four_ts_band": "0-3",
                "max_score": 8,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Lo GK, Juhl D, Warkentin TE, Sigouin CS, Eichler P, Greinacher A",
                  "doi": "10.1111/j.1538-7836.2006.01787.x",
                  "id": "lo-2006",
                  "source": "J Thromb Haemost. 2006;4(4):759-765",
                  "title": "Evaluation of pretest clinical score (4 T's) for the diagnosis of heparin-induced thrombocytopenia in two clinical settings"
                },
                "components": [
                  {
                    "factor": "thrombocytopenia",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "timing",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "thrombosis",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "other_causes",
                    "points": 0,
                    "present": false,
                    "value": 0
                  }
                ],
                "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": "four_ts",
                "formula_expression": "4Ts = thrombocytopenia + timing + thrombosis + other_causes; each 0-2 caller-assigned from Lo 2006 table; pretest probability low 0-3, intermediate 4-5, high 6-8; max 8",
                "four_ts_band": "0-3",
                "max_score": 8,
                "score": 0
              }
            ],
            "path": "/api/calc/four_ts"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "other_causes": {
                          "description": "Caller-assigned Lo 2006 other (oTher) causes of thrombocytopenia (0, 1, or 2). More points = more HIT-like. 2: no other apparent cause. 1: possible other cause. 0: definite other cause.",
                          "type": "integer"
                        },
                        "thrombocytopenia": {
                          "description": "Caller-assigned Lo 2006 thrombocytopenia points (0, 1, or 2). magent does not grade platelet counts. 2: platelet fall >50% AND nadir >=20. 1: fall 30-50% OR nadir 10-19. 0: fall <30% OR nadir <10.",
                          "type": "integer"
                        },
                        "thrombosis": {
                          "description": "Caller-assigned Lo 2006 thrombosis points (0, 1, or 2). 2: new thrombosis, skin necrosis, or acute systemic reaction after heparin bolus. 1: progressive/recurrent thrombosis, silent thrombosis, or erythematous skin lesions. 0: none.",
                          "type": "integer"
                        },
                        "timing": {
                          "description": "Caller-assigned Lo 2006 timing points (0, 1, or 2). magent does not infer day of onset. 2: clear onset days 5-10, or <=1 day with prior heparin within 30 days. 1: consistent with days 5-10 but not clear; onset after day 10; or <=1 day with heparin 30-100 days ago. 0: fall too early without recent heparin.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "thrombocytopenia",
                        "timing",
                        "thrombosis",
                        "other_causes"
                      ],
                      "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": [
    "four-ts",
    "hit",
    "heparin",
    "thrombocytopenia",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:58:52.117Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:58:51.99Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "other_causes": 0,
                  "thrombocytopenia": 0,
                  "thrombosis": 0,
                  "timing": 0
                },
                {
                  "other_causes": 0,
                  "thrombocytopenia": 0,
                  "thrombosis": 0,
                  "timing": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Lo GK, Juhl D, Warkentin TE, Sigouin CS, Eichler P, Greinacher A",
                    "doi": "10.1111/j.1538-7836.2006.01787.x",
                    "id": "lo-2006",
                    "source": "J Thromb Haemost. 2006;4(4):759-765",
                    "title": "Evaluation of pretest clinical score (4 T's) for the diagnosis of heparin-induced thrombocytopenia in two clinical settings"
                  },
                  "components": [
                    {
                      "factor": "thrombocytopenia",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "timing",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "thrombosis",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "other_causes",
                      "points": 0,
                      "present": false,
                      "value": 0
                    }
                  ],
                  "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": "four_ts",
                  "formula_expression": "4Ts = thrombocytopenia + timing + thrombosis + other_causes; each 0-2 caller-assigned from Lo 2006 table; pretest probability low 0-3, intermediate 4-5, high 6-8; max 8",
                  "four_ts_band": "0-3",
                  "max_score": 8,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Lo GK, Juhl D, Warkentin TE, Sigouin CS, Eichler P, Greinacher A",
                    "doi": "10.1111/j.1538-7836.2006.01787.x",
                    "id": "lo-2006",
                    "source": "J Thromb Haemost. 2006;4(4):759-765",
                    "title": "Evaluation of pretest clinical score (4 T's) for the diagnosis of heparin-induced thrombocytopenia in two clinical settings"
                  },
                  "components": [
                    {
                      "factor": "thrombocytopenia",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "timing",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "thrombosis",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "other_causes",
                      "points": 0,
                      "present": false,
                      "value": 0
                    }
                  ],
                  "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": "four_ts",
                  "formula_expression": "4Ts = thrombocytopenia + timing + thrombosis + other_causes; each 0-2 caller-assigned from Lo 2006 table; pretest probability low 0-3, intermediate 4-5, high 6-8; max 8",
                  "four_ts_band": "0-3",
                  "max_score": 8,
                  "score": 0
                }
              ],
              "path": "/api/calc/four_ts"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "other_causes": {
                            "description": "Caller-assigned Lo 2006 other (oTher) causes of thrombocytopenia (0, 1, or 2). More points = more HIT-like. 2: no other apparent cause. 1: possible other cause. 0: definite other cause.",
                            "type": "integer"
                          },
                          "thrombocytopenia": {
                            "description": "Caller-assigned Lo 2006 thrombocytopenia points (0, 1, or 2). magent does not grade platelet counts. 2: platelet fall >50% AND nadir >=20. 1: fall 30-50% OR nadir 10-19. 0: fall <30% OR nadir <10.",
                            "type": "integer"
                          },
                          "thrombosis": {
                            "description": "Caller-assigned Lo 2006 thrombosis points (0, 1, or 2). 2: new thrombosis, skin necrosis, or acute systemic reaction after heparin bolus. 1: progressive/recurrent thrombosis, silent thrombosis, or erythematous skin lesions. 0: none.",
                            "type": "integer"
                          },
                          "timing": {
                            "description": "Caller-assigned Lo 2006 timing points (0, 1, or 2). magent does not infer day of onset. 2: clear onset days 5-10, or <=1 day with prior heparin within 30 days. 1: consistent with days 5-10 but not clear; onset after day 10; or <=1 day with heparin 30-100 days ago. 0: fall too early without recent heparin.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "thrombocytopenia",
                          "timing",
                          "thrombosis",
                          "other_causes"
                        ],
                        "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"
  }
}