{
  "x402Version": 2,
  "id": 39543,
  "slug": "39543",
  "resource": "https://api.magentlab.com/api/calc/caprini",
  "description": "Caprini 2005 thrombosis risk assessment (Table 3): exclusive age (41-60=1, 61-74=2, >=75=3) and exclusive surgery (minor=1; arthroscopic/major/laparoscopic=2; arthroplasty=5) plus caller-assigned 1-, 2-, 3-, and 5-point flags. Max 78. Bands: 0-1 low, 2 moderate, 3-4 high, >=5 highest. Not a diagnosis. Not Caprini 2009/2013. Not a prophylaxis order.",
  "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": [
              {
                "abnormal_pulmonary_function": false,
                "acute_myocardial_infarction": false,
                "adverse_pregnancy_history": false,
                "age": 50,
                "anticardiolipin_antibodies": false,
                "central_venous_access": false,
                "confined_to_bed_gt_72h": false,
                "congestive_heart_failure": false,
                "elevated_homocysteine": false,
                "factor_v_leiden": false,
                "family_history_thrombosis": false,
                "heparin_induced_thrombocytopenia": false,
                "hip_pelvis_leg_fracture": false,
                "history_dvt_pe": false,
                "immobilizing_plaster_cast": false,
                "inflammatory_bowel_disease": false,
                "lupus_anticoagulant": false,
                "malignancy": false,
                "medical_bed_rest": false,
                "multiple_trauma": false,
                "obesity": false,
                "oral_contraceptives_or_hrt": false,
                "other_risk_factor": false,
                "other_thrombophilia": false,
                "pregnancy_or_postpartum": false,
                "prior_major_surgery": false,
                "prothrombin_20210a": false,
                "sepsis": false,
                "serious_lung_disease": false,
                "spinal_cord_injury": false,
                "stroke": false,
                "surgery": "none",
                "swollen_legs": false,
                "varicose_veins": false
              },
              {
                "abnormal_pulmonary_function": false,
                "acute_myocardial_infarction": false,
                "adverse_pregnancy_history": false,
                "age": 50,
                "anticardiolipin_antibodies": false,
                "central_venous_access": false,
                "confined_to_bed_gt_72h": false,
                "congestive_heart_failure": false,
                "elevated_homocysteine": false,
                "factor_v_leiden": false,
                "family_history_thrombosis": false,
                "heparin_induced_thrombocytopenia": false,
                "hip_pelvis_leg_fracture": false,
                "history_dvt_pe": false,
                "immobilizing_plaster_cast": false,
                "inflammatory_bowel_disease": false,
                "lupus_anticoagulant": false,
                "malignancy": false,
                "medical_bed_rest": false,
                "multiple_trauma": false,
                "obesity": false,
                "oral_contraceptives_or_hrt": false,
                "other_risk_factor": false,
                "other_thrombophilia": false,
                "pregnancy_or_postpartum": false,
                "prior_major_surgery": false,
                "prothrombin_20210a": false,
                "sepsis": false,
                "serious_lung_disease": false,
                "spinal_cord_injury": false,
                "stroke": false,
                "surgery": "none",
                "swollen_legs": false,
                "varicose_veins": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 50,
                "citation": {
                  "authors": "Caprini JA",
                  "doi": "10.1016/j.disamonth.2005.02.003",
                  "id": "caprini-2005",
                  "pmid": "15900257",
                  "source": "Dis Mon. 2005;51(2-3):70-78",
                  "title": "Thrombosis risk assessment as a guide to quality patient care"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 1,
                    "present": true,
                    "value": 50
                  },
                  {
                    "factor": "surgery",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "prior_major_surgery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "varicose_veins",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "inflammatory_bowel_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "swollen_legs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "obesity",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "acute_myocardial_infarction",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "congestive_heart_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sepsis",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "serious_lung_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "abnormal_pulmonary_function",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "medical_bed_rest",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "other_risk_factor",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "oral_contraceptives_or_hrt",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pregnancy_or_postpartum",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "adverse_pregnancy_history",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "malignancy",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "confined_to_bed_gt_72h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "immobilizing_plaster_cast",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "central_venous_access",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "history_dvt_pe",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "family_history_thrombosis",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "factor_v_leiden",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "prothrombin_20210a",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "elevated_homocysteine",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "lupus_anticoagulant",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "anticardiolipin_antibodies",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "heparin_induced_thrombocytopenia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "other_thrombophilia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hip_pelvis_leg_fracture",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "stroke",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "multiple_trauma",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "spinal_cord_injury",
                    "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": "caprini",
                "formula_expression": "Caprini 2005 = exclusive age (<=40: 0, 41-60: 1, 61-74: 2, >=75: 3) + exclusive surgery (none 0, minor 1, arthroscopic 2, major >45 min 2, laparoscopic >45 min 2, elective arthroplasty 5) + Table 3 flags (1, 2, 3, or 5); max 78; 0-1 low, 2 moderate, 3-4 high, >=5 highest",
                "max_score": 78,
                "risk_band": "low",
                "score": 1,
                "surgery": "none"
              },
              {
                "age_years": 50,
                "citation": {
                  "authors": "Caprini JA",
                  "doi": "10.1016/j.disamonth.2005.02.003",
                  "id": "caprini-2005",
                  "pmid": "15900257",
                  "source": "Dis Mon. 2005;51(2-3):70-78",
                  "title": "Thrombosis risk assessment as a guide to quality patient care"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 1,
                    "present": true,
                    "value": 50
                  },
                  {
                    "factor": "surgery",
                    "points": 0,
                    "present": false,
                    "value": "none"
                  },
                  {
                    "factor": "prior_major_surgery",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "varicose_veins",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "inflammatory_bowel_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "swollen_legs",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "obesity",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "acute_myocardial_infarction",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "congestive_heart_failure",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sepsis",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "serious_lung_disease",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "abnormal_pulmonary_function",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "medical_bed_rest",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "other_risk_factor",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "oral_contraceptives_or_hrt",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "pregnancy_or_postpartum",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "adverse_pregnancy_history",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "malignancy",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "confined_to_bed_gt_72h",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "immobilizing_plaster_cast",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "central_venous_access",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "history_dvt_pe",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "family_history_thrombosis",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "factor_v_leiden",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "prothrombin_20210a",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "elevated_homocysteine",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "lupus_anticoagulant",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "anticardiolipin_antibodies",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "heparin_induced_thrombocytopenia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "other_thrombophilia",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "hip_pelvis_leg_fracture",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "stroke",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "multiple_trauma",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "spinal_cord_injury",
                    "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": "caprini",
                "formula_expression": "Caprini 2005 = exclusive age (<=40: 0, 41-60: 1, 61-74: 2, >=75: 3) + exclusive surgery (none 0, minor 1, arthroscopic 2, major >45 min 2, laparoscopic >45 min 2, elective arthroplasty 5) + Table 3 flags (1, 2, 3, or 5); max 78; 0-1 low, 2 moderate, 3-4 high, >=5 highest",
                "max_score": 78,
                "risk_band": "low",
                "score": 1,
                "surgery": "none"
              }
            ],
            "path": "/api/calc/caprini"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "abnormal_pulmonary_function": {
                          "description": "Abnormal pulmonary function (COPD) as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                          "type": "boolean"
                        },
                        "acute_myocardial_infarction": {
                          "description": "Acute myocardial infarction as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                          "type": "boolean"
                        },
                        "adverse_pregnancy_history": {
                          "description": "History of unexplained stillborn infant, recurrent spontaneous abortion (>=3), premature birth with toxemia, or growth-restricted infant as assigned by the caller (Caprini 2005 Table 3, listed for women). true scores 1.",
                          "type": "boolean"
                        },
                        "age": {
                          "description": "Age in years (18-120). Caprini 2005 exclusive bands: 41-60 scores 1; 61-74 scores 2; 75 or older scores 3. Age 40 or younger scores 0 for age.",
                          "type": "integer"
                        },
                        "anticardiolipin_antibodies": {
                          "description": "Elevated anticardiolipin antibodies as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                          "type": "boolean"
                        },
                        "central_venous_access": {
                          "description": "Central venous access as assigned by the caller (Caprini 2005 Table 3). true scores 2.",
                          "type": "boolean"
                        },
                        "confined_to_bed_gt_72h": {
                          "description": "Patient confined to bed (>72 hours) as assigned by the caller (Caprini 2005 Table 3). true scores 2. Independent of medical_bed_rest.",
                          "type": "boolean"
                        },
                        "congestive_heart_failure": {
                          "description": "Congestive heart failure (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                          "type": "boolean"
                        },
                        "elevated_homocysteine": {
                          "description": "Elevated serum homocysteine as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                          "type": "boolean"
                        },
                        "factor_v_leiden": {
                          "description": "Positive Factor V Leiden as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                          "type": "boolean"
                        },
                        "family_history_thrombosis": {
                          "description": "Family history of thrombosis as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                          "type": "boolean"
                        },
                        "heparin_induced_thrombocytopenia": {
                          "description": "Heparin-induced thrombocytopenia (HIT) as assigned by the caller (Caprini 2005 Table 3). true scores 3. magent does not diagnose HIT.",
                          "type": "boolean"
                        },
                        "hip_pelvis_leg_fracture": {
                          "description": "Hip, pelvis, or leg fracture (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 5. Independent of exclusive surgery.",
                          "type": "boolean"
                        },
                        "history_dvt_pe": {
                          "description": "History of DVT or PE as assigned by the caller (Caprini 2005 Table 3). true scores 3. magent does not diagnose VTE.",
                          "type": "boolean"
                        },
                        "immobilizing_plaster_cast": {
                          "description": "Immobilizing plaster cast (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 2.",
                          "type": "boolean"
                        },
                        "inflammatory_bowel_disease": {
                          "description": "History of inflammatory bowel disease as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                          "type": "boolean"
                        },
                        "lupus_anticoagulant": {
                          "description": "Positive lupus anticoagulant as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                          "type": "boolean"
                        },
                        "malignancy": {
                          "description": "Malignancy (present or previous) as assigned by the caller (Caprini 2005 Table 3). true scores 2.",
                          "type": "boolean"
                        },
                        "medical_bed_rest": {
                          "description": "Medical patient currently at bed rest as assigned by the caller (Caprini 2005 Table 3). true scores 1. Independent of confined_to_bed_gt_72h.",
                          "type": "boolean"
                        },
                        "multiple_trauma": {
                          "description": "Multiple trauma (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 5.",
                          "type": "boolean"
                        },
                        "obesity": {
                          "description": "Obesity as assigned by the caller (Caprini 2005 BMI >25). true scores 1. magent does not take height or weight.",
                          "type": "boolean"
                        },
                        "oral_contraceptives_or_hrt": {
                          "description": "Oral contraceptives or hormone replacement therapy as assigned by the caller (Caprini 2005 Table 3, listed for women). true scores 1.",
                          "type": "boolean"
                        },
                        "other_risk_factor": {
                          "description": "Other Caprini 2005 Table 3 1-point risk factor as assigned by the caller. true scores 1. magent does not invent a factor from prose.",
                          "type": "boolean"
                        },
                        "other_thrombophilia": {
                          "description": "Other congenital or acquired thrombophilia as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                          "type": "boolean"
                        },
                        "pregnancy_or_postpartum": {
                          "description": "Pregnancy or postpartum (<1 month) as assigned by the caller (Caprini 2005 Table 3, listed for women). true scores 1.",
                          "type": "boolean"
                        },
                        "prior_major_surgery": {
                          "description": "History of prior major surgery (<1 month) as assigned by the caller (Caprini 2005 Table 3). Independent of the exclusive surgery category. true scores 1.",
                          "type": "boolean"
                        },
                        "prothrombin_20210a": {
                          "description": "Positive Prothrombin 20210A as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                          "type": "boolean"
                        },
                        "sepsis": {
                          "description": "Sepsis (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                          "type": "boolean"
                        },
                        "serious_lung_disease": {
                          "description": "Serious lung disease including pneumonia (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                          "type": "boolean"
                        },
                        "spinal_cord_injury": {
                          "description": "Acute spinal cord injury (paralysis) (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 5.",
                          "type": "boolean"
                        },
                        "stroke": {
                          "description": "Stroke (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 5.",
                          "type": "boolean"
                        },
                        "surgery": {
                          "description": "Mutually exclusive Caprini 2005 Table 3 surgery category as assigned by the caller. none scores 0. minor (minor surgery planned) scores 1. arthroscopic, major (major surgery >45 minutes), and laparoscopic (laparoscopic surgery >45 minutes) score 2. arthroplasty (elective major lower extremity arthroplasty) scores 5. One category only. History of prior major surgery is a separate 1-point flag.",
                          "enum": [
                            "none",
                            "minor",
                            "arthroscopic",
                            "major",
                            "laparoscopic",
                            "arthroplasty"
                          ],
                          "type": "string"
                        },
                        "swollen_legs": {
                          "description": "Swollen legs (current) as assigned by the caller (Caprini 2005 Table 3). true scores 1. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "varicose_veins": {
                          "description": "Varicose veins as assigned by the caller (Caprini 2005 Table 3). true scores 1. magent does not examine the patient.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "surgery",
                        "prior_major_surgery",
                        "varicose_veins",
                        "inflammatory_bowel_disease",
                        "swollen_legs",
                        "obesity",
                        "acute_myocardial_infarction",
                        "congestive_heart_failure",
                        "sepsis",
                        "serious_lung_disease",
                        "abnormal_pulmonary_function",
                        "medical_bed_rest",
                        "other_risk_factor",
                        "oral_contraceptives_or_hrt",
                        "pregnancy_or_postpartum",
                        "adverse_pregnancy_history",
                        "malignancy",
                        "confined_to_bed_gt_72h",
                        "immobilizing_plaster_cast",
                        "central_venous_access",
                        "history_dvt_pe",
                        "family_history_thrombosis",
                        "factor_v_leiden",
                        "prothrombin_20210a",
                        "elevated_homocysteine",
                        "lupus_anticoagulant",
                        "anticardiolipin_antibodies",
                        "heparin_induced_thrombocytopenia",
                        "other_thrombophilia",
                        "hip_pelvis_leg_fracture",
                        "stroke",
                        "multiple_trauma",
                        "spinal_cord_injury"
                      ],
                      "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": [
    "caprini",
    "vte",
    "thrombosis",
    "score",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:15:09.566Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T14:15:09.394Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "abnormal_pulmonary_function": false,
                  "acute_myocardial_infarction": false,
                  "adverse_pregnancy_history": false,
                  "age": 50,
                  "anticardiolipin_antibodies": false,
                  "central_venous_access": false,
                  "confined_to_bed_gt_72h": false,
                  "congestive_heart_failure": false,
                  "elevated_homocysteine": false,
                  "factor_v_leiden": false,
                  "family_history_thrombosis": false,
                  "heparin_induced_thrombocytopenia": false,
                  "hip_pelvis_leg_fracture": false,
                  "history_dvt_pe": false,
                  "immobilizing_plaster_cast": false,
                  "inflammatory_bowel_disease": false,
                  "lupus_anticoagulant": false,
                  "malignancy": false,
                  "medical_bed_rest": false,
                  "multiple_trauma": false,
                  "obesity": false,
                  "oral_contraceptives_or_hrt": false,
                  "other_risk_factor": false,
                  "other_thrombophilia": false,
                  "pregnancy_or_postpartum": false,
                  "prior_major_surgery": false,
                  "prothrombin_20210a": false,
                  "sepsis": false,
                  "serious_lung_disease": false,
                  "spinal_cord_injury": false,
                  "stroke": false,
                  "surgery": "none",
                  "swollen_legs": false,
                  "varicose_veins": false
                },
                {
                  "abnormal_pulmonary_function": false,
                  "acute_myocardial_infarction": false,
                  "adverse_pregnancy_history": false,
                  "age": 50,
                  "anticardiolipin_antibodies": false,
                  "central_venous_access": false,
                  "confined_to_bed_gt_72h": false,
                  "congestive_heart_failure": false,
                  "elevated_homocysteine": false,
                  "factor_v_leiden": false,
                  "family_history_thrombosis": false,
                  "heparin_induced_thrombocytopenia": false,
                  "hip_pelvis_leg_fracture": false,
                  "history_dvt_pe": false,
                  "immobilizing_plaster_cast": false,
                  "inflammatory_bowel_disease": false,
                  "lupus_anticoagulant": false,
                  "malignancy": false,
                  "medical_bed_rest": false,
                  "multiple_trauma": false,
                  "obesity": false,
                  "oral_contraceptives_or_hrt": false,
                  "other_risk_factor": false,
                  "other_thrombophilia": false,
                  "pregnancy_or_postpartum": false,
                  "prior_major_surgery": false,
                  "prothrombin_20210a": false,
                  "sepsis": false,
                  "serious_lung_disease": false,
                  "spinal_cord_injury": false,
                  "stroke": false,
                  "surgery": "none",
                  "swollen_legs": false,
                  "varicose_veins": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Caprini JA",
                    "doi": "10.1016/j.disamonth.2005.02.003",
                    "id": "caprini-2005",
                    "pmid": "15900257",
                    "source": "Dis Mon. 2005;51(2-3):70-78",
                    "title": "Thrombosis risk assessment as a guide to quality patient care"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 1,
                      "present": true,
                      "value": 50
                    },
                    {
                      "factor": "surgery",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "prior_major_surgery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "varicose_veins",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "inflammatory_bowel_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "swollen_legs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "obesity",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "acute_myocardial_infarction",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "congestive_heart_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sepsis",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "serious_lung_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "abnormal_pulmonary_function",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "medical_bed_rest",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "other_risk_factor",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "oral_contraceptives_or_hrt",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pregnancy_or_postpartum",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "adverse_pregnancy_history",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "malignancy",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "confined_to_bed_gt_72h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "immobilizing_plaster_cast",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "central_venous_access",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "history_dvt_pe",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "family_history_thrombosis",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "factor_v_leiden",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "prothrombin_20210a",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "elevated_homocysteine",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "lupus_anticoagulant",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "anticardiolipin_antibodies",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "heparin_induced_thrombocytopenia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "other_thrombophilia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hip_pelvis_leg_fracture",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "stroke",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "multiple_trauma",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "spinal_cord_injury",
                      "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": "caprini",
                  "formula_expression": "Caprini 2005 = exclusive age (<=40: 0, 41-60: 1, 61-74: 2, >=75: 3) + exclusive surgery (none 0, minor 1, arthroscopic 2, major >45 min 2, laparoscopic >45 min 2, elective arthroplasty 5) + Table 3 flags (1, 2, 3, or 5); max 78; 0-1 low, 2 moderate, 3-4 high, >=5 highest",
                  "max_score": 78,
                  "risk_band": "low",
                  "score": 1,
                  "surgery": "none"
                },
                {
                  "age_years": 50,
                  "citation": {
                    "authors": "Caprini JA",
                    "doi": "10.1016/j.disamonth.2005.02.003",
                    "id": "caprini-2005",
                    "pmid": "15900257",
                    "source": "Dis Mon. 2005;51(2-3):70-78",
                    "title": "Thrombosis risk assessment as a guide to quality patient care"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 1,
                      "present": true,
                      "value": 50
                    },
                    {
                      "factor": "surgery",
                      "points": 0,
                      "present": false,
                      "value": "none"
                    },
                    {
                      "factor": "prior_major_surgery",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "varicose_veins",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "inflammatory_bowel_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "swollen_legs",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "obesity",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "acute_myocardial_infarction",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "congestive_heart_failure",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sepsis",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "serious_lung_disease",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "abnormal_pulmonary_function",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "medical_bed_rest",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "other_risk_factor",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "oral_contraceptives_or_hrt",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "pregnancy_or_postpartum",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "adverse_pregnancy_history",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "malignancy",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "confined_to_bed_gt_72h",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "immobilizing_plaster_cast",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "central_venous_access",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "history_dvt_pe",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "family_history_thrombosis",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "factor_v_leiden",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "prothrombin_20210a",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "elevated_homocysteine",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "lupus_anticoagulant",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "anticardiolipin_antibodies",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "heparin_induced_thrombocytopenia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "other_thrombophilia",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "hip_pelvis_leg_fracture",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "stroke",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "multiple_trauma",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "spinal_cord_injury",
                      "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": "caprini",
                  "formula_expression": "Caprini 2005 = exclusive age (<=40: 0, 41-60: 1, 61-74: 2, >=75: 3) + exclusive surgery (none 0, minor 1, arthroscopic 2, major >45 min 2, laparoscopic >45 min 2, elective arthroplasty 5) + Table 3 flags (1, 2, 3, or 5); max 78; 0-1 low, 2 moderate, 3-4 high, >=5 highest",
                  "max_score": 78,
                  "risk_band": "low",
                  "score": 1,
                  "surgery": "none"
                }
              ],
              "path": "/api/calc/caprini"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "abnormal_pulmonary_function": {
                            "description": "Abnormal pulmonary function (COPD) as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                            "type": "boolean"
                          },
                          "acute_myocardial_infarction": {
                            "description": "Acute myocardial infarction as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                            "type": "boolean"
                          },
                          "adverse_pregnancy_history": {
                            "description": "History of unexplained stillborn infant, recurrent spontaneous abortion (>=3), premature birth with toxemia, or growth-restricted infant as assigned by the caller (Caprini 2005 Table 3, listed for women). true scores 1.",
                            "type": "boolean"
                          },
                          "age": {
                            "description": "Age in years (18-120). Caprini 2005 exclusive bands: 41-60 scores 1; 61-74 scores 2; 75 or older scores 3. Age 40 or younger scores 0 for age.",
                            "type": "integer"
                          },
                          "anticardiolipin_antibodies": {
                            "description": "Elevated anticardiolipin antibodies as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                            "type": "boolean"
                          },
                          "central_venous_access": {
                            "description": "Central venous access as assigned by the caller (Caprini 2005 Table 3). true scores 2.",
                            "type": "boolean"
                          },
                          "confined_to_bed_gt_72h": {
                            "description": "Patient confined to bed (>72 hours) as assigned by the caller (Caprini 2005 Table 3). true scores 2. Independent of medical_bed_rest.",
                            "type": "boolean"
                          },
                          "congestive_heart_failure": {
                            "description": "Congestive heart failure (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                            "type": "boolean"
                          },
                          "elevated_homocysteine": {
                            "description": "Elevated serum homocysteine as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                            "type": "boolean"
                          },
                          "factor_v_leiden": {
                            "description": "Positive Factor V Leiden as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                            "type": "boolean"
                          },
                          "family_history_thrombosis": {
                            "description": "Family history of thrombosis as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                            "type": "boolean"
                          },
                          "heparin_induced_thrombocytopenia": {
                            "description": "Heparin-induced thrombocytopenia (HIT) as assigned by the caller (Caprini 2005 Table 3). true scores 3. magent does not diagnose HIT.",
                            "type": "boolean"
                          },
                          "hip_pelvis_leg_fracture": {
                            "description": "Hip, pelvis, or leg fracture (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 5. Independent of exclusive surgery.",
                            "type": "boolean"
                          },
                          "history_dvt_pe": {
                            "description": "History of DVT or PE as assigned by the caller (Caprini 2005 Table 3). true scores 3. magent does not diagnose VTE.",
                            "type": "boolean"
                          },
                          "immobilizing_plaster_cast": {
                            "description": "Immobilizing plaster cast (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 2.",
                            "type": "boolean"
                          },
                          "inflammatory_bowel_disease": {
                            "description": "History of inflammatory bowel disease as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                            "type": "boolean"
                          },
                          "lupus_anticoagulant": {
                            "description": "Positive lupus anticoagulant as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                            "type": "boolean"
                          },
                          "malignancy": {
                            "description": "Malignancy (present or previous) as assigned by the caller (Caprini 2005 Table 3). true scores 2.",
                            "type": "boolean"
                          },
                          "medical_bed_rest": {
                            "description": "Medical patient currently at bed rest as assigned by the caller (Caprini 2005 Table 3). true scores 1. Independent of confined_to_bed_gt_72h.",
                            "type": "boolean"
                          },
                          "multiple_trauma": {
                            "description": "Multiple trauma (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 5.",
                            "type": "boolean"
                          },
                          "obesity": {
                            "description": "Obesity as assigned by the caller (Caprini 2005 BMI >25). true scores 1. magent does not take height or weight.",
                            "type": "boolean"
                          },
                          "oral_contraceptives_or_hrt": {
                            "description": "Oral contraceptives or hormone replacement therapy as assigned by the caller (Caprini 2005 Table 3, listed for women). true scores 1.",
                            "type": "boolean"
                          },
                          "other_risk_factor": {
                            "description": "Other Caprini 2005 Table 3 1-point risk factor as assigned by the caller. true scores 1. magent does not invent a factor from prose.",
                            "type": "boolean"
                          },
                          "other_thrombophilia": {
                            "description": "Other congenital or acquired thrombophilia as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                            "type": "boolean"
                          },
                          "pregnancy_or_postpartum": {
                            "description": "Pregnancy or postpartum (<1 month) as assigned by the caller (Caprini 2005 Table 3, listed for women). true scores 1.",
                            "type": "boolean"
                          },
                          "prior_major_surgery": {
                            "description": "History of prior major surgery (<1 month) as assigned by the caller (Caprini 2005 Table 3). Independent of the exclusive surgery category. true scores 1.",
                            "type": "boolean"
                          },
                          "prothrombin_20210a": {
                            "description": "Positive Prothrombin 20210A as assigned by the caller (Caprini 2005 Table 3). true scores 3.",
                            "type": "boolean"
                          },
                          "sepsis": {
                            "description": "Sepsis (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                            "type": "boolean"
                          },
                          "serious_lung_disease": {
                            "description": "Serious lung disease including pneumonia (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 1.",
                            "type": "boolean"
                          },
                          "spinal_cord_injury": {
                            "description": "Acute spinal cord injury (paralysis) (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 5.",
                            "type": "boolean"
                          },
                          "stroke": {
                            "description": "Stroke (<1 month) as assigned by the caller (Caprini 2005 Table 3). true scores 5.",
                            "type": "boolean"
                          },
                          "surgery": {
                            "description": "Mutually exclusive Caprini 2005 Table 3 surgery category as assigned by the caller. none scores 0. minor (minor surgery planned) scores 1. arthroscopic, major (major surgery >45 minutes), and laparoscopic (laparoscopic surgery >45 minutes) score 2. arthroplasty (elective major lower extremity arthroplasty) scores 5. One category only. History of prior major surgery is a separate 1-point flag.",
                            "enum": [
                              "none",
                              "minor",
                              "arthroscopic",
                              "major",
                              "laparoscopic",
                              "arthroplasty"
                            ],
                            "type": "string"
                          },
                          "swollen_legs": {
                            "description": "Swollen legs (current) as assigned by the caller (Caprini 2005 Table 3). true scores 1. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "varicose_veins": {
                            "description": "Varicose veins as assigned by the caller (Caprini 2005 Table 3). true scores 1. magent does not examine the patient.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "surgery",
                          "prior_major_surgery",
                          "varicose_veins",
                          "inflammatory_bowel_disease",
                          "swollen_legs",
                          "obesity",
                          "acute_myocardial_infarction",
                          "congestive_heart_failure",
                          "sepsis",
                          "serious_lung_disease",
                          "abnormal_pulmonary_function",
                          "medical_bed_rest",
                          "other_risk_factor",
                          "oral_contraceptives_or_hrt",
                          "pregnancy_or_postpartum",
                          "adverse_pregnancy_history",
                          "malignancy",
                          "confined_to_bed_gt_72h",
                          "immobilizing_plaster_cast",
                          "central_venous_access",
                          "history_dvt_pe",
                          "family_history_thrombosis",
                          "factor_v_leiden",
                          "prothrombin_20210a",
                          "elevated_homocysteine",
                          "lupus_anticoagulant",
                          "anticardiolipin_antibodies",
                          "heparin_induced_thrombocytopenia",
                          "other_thrombophilia",
                          "hip_pelvis_leg_fracture",
                          "stroke",
                          "multiple_trauma",
                          "spinal_cord_injury"
                        ],
                        "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"
  }
}