{
  "x402Version": 2,
  "id": 38905,
  "slug": "38905",
  "resource": "https://api.magentlab.com/api/calc/vaco",
  "description": "King 2020 VACO Index logistic 30-day all-cause mortality from age, sex, caller-assigned unadjusted Charlson comorbidity index, and history of myocardial infarction or peripheral vascular disease. Supplement S3 coefficients. Age 85 or older uses the published combined CCI term. Not VACS Index 1.0 or 2.0, not a diagnosis, and not a treatment 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": [
              {
                "age": 40,
                "cci": 0,
                "mi_pvd": false,
                "sex": "female"
              },
              {
                "age": 40,
                "cci": 0,
                "mi_pvd": false,
                "sex": "female"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age": 40,
                "age_band": "20-50",
                "cci": 0,
                "cci_band": "0",
                "citation": {
                  "authors": "King JT Jr, Yoon JS, Rentsch CT, Tate JP, Park LS, Kidwai-Khan F, et al.",
                  "doi": "10.1371/journal.pone.0241825",
                  "id": "king-2020-vaco",
                  "pmid": "33175863",
                  "source": "PLoS One. 2020;15(11):e0241825",
                  "title": "Development and validation of a 30-day mortality index based on pre-existing medical administrative data from 13,323 COVID-19 patients: The Veterans Health Administration COVID-19 (VACO) Index"
                },
                "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.",
                "estimated_probability_percent": 0.16,
                "formula": "vaco",
                "formula_expression": "lp = intercept + age_term + sex_term + cci_term + mi_pvd_term; probability = exp(lp)/(1+exp(lp)); King 2020 S1 File (PLOS S3); intercept -4.216058062; female 0; male 0.322291449; no MI/PVD 0; MI or PVD 0.267265312; age 20-50 (ages 20-49) -2.228678713, 50-54 0, 55-59 0.400599289, 60-64 0.941322019, 65-69 1.295007128, 70-74 1.629533438, 75-79 1.763345763, 80-89 1.927443543, ge90 2.018752269; age<85 CCI 0 0, 1-3 0.612122574, 4-5 0.825072847, 6-9 0.956099733, ge10 1.395164653; age>=85 any CCI 1.529325519; unadjusted Charlson; not VACS 1.0; not VACS 2.0",
                "logit": -6.444737,
                "mi_pvd": false,
                "sex": "female"
              },
              {
                "age": 40,
                "age_band": "20-50",
                "cci": 0,
                "cci_band": "0",
                "citation": {
                  "authors": "King JT Jr, Yoon JS, Rentsch CT, Tate JP, Park LS, Kidwai-Khan F, et al.",
                  "doi": "10.1371/journal.pone.0241825",
                  "id": "king-2020-vaco",
                  "pmid": "33175863",
                  "source": "PLoS One. 2020;15(11):e0241825",
                  "title": "Development and validation of a 30-day mortality index based on pre-existing medical administrative data from 13,323 COVID-19 patients: The Veterans Health Administration COVID-19 (VACO) Index"
                },
                "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.",
                "estimated_probability_percent": 0.16,
                "formula": "vaco",
                "formula_expression": "lp = intercept + age_term + sex_term + cci_term + mi_pvd_term; probability = exp(lp)/(1+exp(lp)); King 2020 S1 File (PLOS S3); intercept -4.216058062; female 0; male 0.322291449; no MI/PVD 0; MI or PVD 0.267265312; age 20-50 (ages 20-49) -2.228678713, 50-54 0, 55-59 0.400599289, 60-64 0.941322019, 65-69 1.295007128, 70-74 1.629533438, 75-79 1.763345763, 80-89 1.927443543, ge90 2.018752269; age<85 CCI 0 0, 1-3 0.612122574, 4-5 0.825072847, 6-9 0.956099733, ge10 1.395164653; age>=85 any CCI 1.529325519; unadjusted Charlson; not VACS 1.0; not VACS 2.0",
                "logit": -6.444737,
                "mi_pvd": false,
                "sex": "female"
              }
            ],
            "path": "/api/calc/vaco"
          },
          "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 (integer 20-120). King 2020 S3 bands: 20-50 (ages 20-49), 50-54, 55-59, 60-64, 65-69, 70-74, 75-79, 80-89, ge90. Age 50 uses 50-54. Age 85-89 keeps the 80-89 age term and the age>=85 CCI term.",
                          "type": "integer"
                        },
                        "cci": {
                          "description": "Unadjusted Charlson comorbidity index as assigned by the caller (integer 0-37). King 2020 S3: 0 (reference), 1-3, 4-5, 6-9, ge10 when age<85. Age 85 or older uses the published combined CCI term regardless of this integer. magent does not assign Charlson diagnoses.",
                          "type": "integer"
                        },
                        "mi_pvd": {
                          "description": "History of myocardial infarction or peripheral vascular disease as assigned by the caller (true or false). false is the S3 reference (0). true adds 0.267265312.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "Sex as assigned by the caller. female is the S3 reference (0). male adds 0.322291449. magent does not assign sex.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "cci",
                        "mi_pvd"
                      ],
                      "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": [
    "vaco",
    "covid-19",
    "mortality",
    "charlson",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T16:12:14.944Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T16:12:14.748Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 40,
                  "cci": 0,
                  "mi_pvd": false,
                  "sex": "female"
                },
                {
                  "age": 40,
                  "cci": 0,
                  "mi_pvd": false,
                  "sex": "female"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age": 40,
                  "age_band": "20-50",
                  "cci": 0,
                  "cci_band": "0",
                  "citation": {
                    "authors": "King JT Jr, Yoon JS, Rentsch CT, Tate JP, Park LS, Kidwai-Khan F, et al.",
                    "doi": "10.1371/journal.pone.0241825",
                    "id": "king-2020-vaco",
                    "pmid": "33175863",
                    "source": "PLoS One. 2020;15(11):e0241825",
                    "title": "Development and validation of a 30-day mortality index based on pre-existing medical administrative data from 13,323 COVID-19 patients: The Veterans Health Administration COVID-19 (VACO) Index"
                  },
                  "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.",
                  "estimated_probability_percent": 0.16,
                  "formula": "vaco",
                  "formula_expression": "lp = intercept + age_term + sex_term + cci_term + mi_pvd_term; probability = exp(lp)/(1+exp(lp)); King 2020 S1 File (PLOS S3); intercept -4.216058062; female 0; male 0.322291449; no MI/PVD 0; MI or PVD 0.267265312; age 20-50 (ages 20-49) -2.228678713, 50-54 0, 55-59 0.400599289, 60-64 0.941322019, 65-69 1.295007128, 70-74 1.629533438, 75-79 1.763345763, 80-89 1.927443543, ge90 2.018752269; age<85 CCI 0 0, 1-3 0.612122574, 4-5 0.825072847, 6-9 0.956099733, ge10 1.395164653; age>=85 any CCI 1.529325519; unadjusted Charlson; not VACS 1.0; not VACS 2.0",
                  "logit": -6.444737,
                  "mi_pvd": false,
                  "sex": "female"
                },
                {
                  "age": 40,
                  "age_band": "20-50",
                  "cci": 0,
                  "cci_band": "0",
                  "citation": {
                    "authors": "King JT Jr, Yoon JS, Rentsch CT, Tate JP, Park LS, Kidwai-Khan F, et al.",
                    "doi": "10.1371/journal.pone.0241825",
                    "id": "king-2020-vaco",
                    "pmid": "33175863",
                    "source": "PLoS One. 2020;15(11):e0241825",
                    "title": "Development and validation of a 30-day mortality index based on pre-existing medical administrative data from 13,323 COVID-19 patients: The Veterans Health Administration COVID-19 (VACO) Index"
                  },
                  "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.",
                  "estimated_probability_percent": 0.16,
                  "formula": "vaco",
                  "formula_expression": "lp = intercept + age_term + sex_term + cci_term + mi_pvd_term; probability = exp(lp)/(1+exp(lp)); King 2020 S1 File (PLOS S3); intercept -4.216058062; female 0; male 0.322291449; no MI/PVD 0; MI or PVD 0.267265312; age 20-50 (ages 20-49) -2.228678713, 50-54 0, 55-59 0.400599289, 60-64 0.941322019, 65-69 1.295007128, 70-74 1.629533438, 75-79 1.763345763, 80-89 1.927443543, ge90 2.018752269; age<85 CCI 0 0, 1-3 0.612122574, 4-5 0.825072847, 6-9 0.956099733, ge10 1.395164653; age>=85 any CCI 1.529325519; unadjusted Charlson; not VACS 1.0; not VACS 2.0",
                  "logit": -6.444737,
                  "mi_pvd": false,
                  "sex": "female"
                }
              ],
              "path": "/api/calc/vaco"
            },
            "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 (integer 20-120). King 2020 S3 bands: 20-50 (ages 20-49), 50-54, 55-59, 60-64, 65-69, 70-74, 75-79, 80-89, ge90. Age 50 uses 50-54. Age 85-89 keeps the 80-89 age term and the age>=85 CCI term.",
                            "type": "integer"
                          },
                          "cci": {
                            "description": "Unadjusted Charlson comorbidity index as assigned by the caller (integer 0-37). King 2020 S3: 0 (reference), 1-3, 4-5, 6-9, ge10 when age<85. Age 85 or older uses the published combined CCI term regardless of this integer. magent does not assign Charlson diagnoses.",
                            "type": "integer"
                          },
                          "mi_pvd": {
                            "description": "History of myocardial infarction or peripheral vascular disease as assigned by the caller (true or false). false is the S3 reference (0). true adds 0.267265312.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "Sex as assigned by the caller. female is the S3 reference (0). male adds 0.322291449. magent does not assign sex.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "cci",
                          "mi_pvd"
                        ],
                        "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"
  }
}