MAGENT

Liver · LIVE

CAR-OLT 1-year CVD risk after liver transplant

CAR-OLT

Sum VanWagner 2017 Table 3 CAR-OLT integer points and return the Table 4 1-year predicted CVD complication percent.

LIVE $0.005 USDC GET /api/calc/car_olt

Markdown: /docs/car-olt.md · Canonical: https://magentlab.com/docs/car-olt

Not a medical device. Not a diagnosis, dose, or listing recommendation.

What it computes

Sum VanWagner 2017 Table 3 CAR-OLT integer points and return the Table 4 1-year predicted CVD complication percent.

When to use

When an agent has caller-assigned age, sex, race as used in VanWagner 2017, work, education, and comorbidity flags and needs the published CAR-OLT total and Table 4 predicted percent, not a listing decision or RCRI.

When not to use

  • Not a medical device. Not a transplant listing, operative clearance, or cardiac-testing order.
  • race_group is caller-assigned as used in VanWagner 2017 Table 3 (white, black, other). magent does not assign race. Hispanic and Asian map to other (referent) in that model.
  • Table 4 color/risk labels are arbitrary; magent reports the integer score and the table 1-year predicted percent only.
  • Table 4 has no row for total score 9; that score uses the <9 predicted <5% row.
  • Scores >40 map to Table 4 45% (the paper prints 45+). Unclamped except as Table 3.
  • magent does not examine the patient, assign work or education, or observe a ventilator. Flags are caller-assigned.

Formula

CAR-OLT = age (<45 0, 45-49 -6, 50-54 -4, 55-59 2, 60-64 5, >=65 8) + sex (male 0, female 1) + race_group (white 7, black 10, other 0) + not working 10 + education (high_school_or_unknown 5, college 0) + atrial_fibrillation 25 + ventilator_respiratory_failure 13 + pulmonary_hypertension 9 + no HCC 6 + hypertension 4 + diabetes 4 + heart_failure 7; VanWagner 2017 Table 3; Table 4 1-year predicted CVD %; unclamped; score 9 uses the <9 row

Citation

Title
A point-based prediction model for cardiovascular risk in orthotopic liver transplantation: The CAR-OLT score
Authors
VanWagner LB, Ning H, Whitsett M, Levitsky J, Uttal S, Wilkins JT, Abecassis MM, Ladner DP, Skaro AI, Lloyd-Jones DM
Source
Hepatology. 2017;66(6):1968-1979
DOI
10.1002/hep.29329

Worked example

Referent first-OLT candidate (score 0)

Given: age=40atrial_fibrillation=falsediabetes=falseeducation=collegehcc=trueheart_failure=falsehypertension=falsepulmonary_hypertension=falserace_group=othersex=maleventilator_respiratory_failure=falseworking_for_income=true

  1. Age 40 <45 → 0; male → 0; race_group other → 0; working_for_income true → 0; education college → 0
  2. No AF, ventilator, pulmonary hypertension, hypertension, diabetes, or heart failure; HCC true → 0
  3. Score = 0; Table 4 predicted 1-year CVD complication <5%

Also searched as

  • CAR-OLT score
  • CAR OLT
  • VanWagner 2017 CAR-OLT
  • cardiovascular risk orthotopic liver transplantation
  • liver transplant CVD score
  • 1-year CVD after OLT
  • OLT cardiovascular complication score
  • VanWagner liver transplant cardiac risk

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/car_olt?age=40&sex=male&race_group=other&working_for_income=true&education=college&atrial_fibrillation=false&ventilator_respiratory_failure=false&pulmonary_hypertension=false&hcc=true&hypertension=false&diabetes=false&heart_failure=false

Full URL: https://api.magentlab.com/api/calc/car_olt?age=40&sex=male&race_group=other&working_for_income=true&education=college&atrial_fibrillation=false&ventilator_respiratory_failure=false&pulmonary_hypertension=false&hcc=true&hypertension=false&diabetes=false&heart_failure=false

Call

Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params return HTTP 400 before any quote or charge.

curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/car_olt?age=40&sex=male&race_group=other&working_for_income=true&education=college&atrial_fibrillation=false&ventilator_respiratory_failure=false&pulmonary_hypertension=false&hcc=true&hypertension=false&diabetes=false&heart_failure=false"

Parameters

Name Type Required Description
age integer required Age in years (integer 18-120). VanWagner 2017 Table 3: <45 scores 0; 45-49 scores -6; 50-54 scores -4; 55-59 scores 2; 60-64 scores 5; ≥65 scores 8. Derivation was first OLT ages 18-75; ≥65 is the top Table 3 band.
sex string required · female, male Caller-assigned sex (VanWagner 2017 Table 3). male scores 0 (referent); female scores 1. magent does not assign sex.
race_group string required · white, black, other Caller-assigned race as used in VanWagner 2017 Table 3. white scores 7; black scores 10; other scores 0 (referent). Hispanic and Asian map to other in this model. magent does not assign race.
working_for_income boolean required Working for income at transplant (VanWagner 2017 Table 3). true scores 0 (referent); false scores 10. magent does not assign employment.
education string required · high_school_or_unknown, college Caller-assigned education (VanWagner 2017 Table 3). college scores 0 (College+ referent); high_school_or_unknown scores 5. magent does not assign education.
atrial_fibrillation boolean required History of atrial fibrillation prior to transplant (VanWagner 2017 Table 3). true scores 25. magent does not read an ECG.
ventilator_respiratory_failure boolean required Respiratory failure on a ventilator at transplant (VanWagner 2017 Table 3). true scores 13. magent does not observe ventilation.
pulmonary_hypertension boolean required History of pulmonary hypertension prior to transplant (VanWagner 2017 Table 3). true scores 9. magent does not perform right-heart catheterization.
hcc boolean required History of hepatocellular carcinoma (VanWagner 2017 Table 3). true scores 0 (referent); false scores 6. No HCC is the higher-risk term. magent does not diagnose HCC.
hypertension boolean required History of systemic hypertension prior to transplant (VanWagner 2017 Table 3). true scores 4. magent does not measure blood pressure.
diabetes boolean required History of diabetes prior to transplant (VanWagner 2017 Table 3). true scores 4. magent does not assay glucose.
heart_failure boolean required History of heart failure prior to transplant (VanWagner 2017 Table 3). true scores 7. magent does not diagnose heart failure.

Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

POST /api/calc/car_olt Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 PREVIEW

  • 1 to 25 items. Each item uses the same keys as the GET query parameters.
  • POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
  • The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
  • HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
  • Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
  • x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request (fixture)

{
  "items": [
    {
      "age": "40",
      "atrial_fibrillation": "false",
      "diabetes": "false",
      "education": "college",
      "hcc": "true",
      "heart_failure": "false",
      "hypertension": "false",
      "pulmonary_hypertension": "false",
      "race_group": "other",
      "sex": "male",
      "ventilator_respiratory_failure": "false",
      "working_for_income": "true"
    },
    {
      "age": "40",
      "atrial_fibrillation": "false",
      "diabetes": "false",
      "education": "college",
      "hcc": "true",
      "heart_failure": "false",
      "hypertension": "false",
      "pulmonary_hypertension": "false",
      "race_group": "other",
      "sex": "male",
      "ventilator_respiratory_failure": "false",
      "working_for_income": "true"
    }
  ]
}

Open bulk paywall →

Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.

Example 200 (fixture)

{
  "count": 2,
  "path": "/api/calc/car_olt",
  "items": [
    {
      "components": [
        {
          "value": 40,
          "factor": "age",
          "points": 0,
          "present": false
        },
        {
          "value": "male",
          "factor": "sex",
          "points": 0,
          "present": false
        },
        {
          "value": "other",
          "factor": "race_group",
          "points": 0,
          "present": false
        },
        {
          "value": true,
          "factor": "working_for_income",
          "points": 0,
          "present": false
        },
        {
          "value": "college",
          "factor": "education",
          "points": 0,
          "present": false
        },
        {
          "factor": "atrial_fibrillation",
          "points": 0,
          "present": false
        },
        {
          "factor": "ventilator_respiratory_failure",
          "points": 0,
          "present": false
        },
        {
          "factor": "pulmonary_hypertension",
          "points": 0,
          "present": false
        },
        {
          "value": true,
          "factor": "hcc",
          "points": 0,
          "present": false
        },
        {
          "factor": "hypertension",
          "points": 0,
          "present": false
        },
        {
          "factor": "diabetes",
          "points": 0,
          "present": false
        },
        {
          "factor": "heart_failure",
          "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.",
      "citation": {
        "authors": "VanWagner LB, Ning H, Whitsett M, Levitsky J, Uttal S, Wilkins JT, Abecassis MM, Ladner DP, Skaro AI, Lloyd-Jones DM",
        "doi": "10.1002/hep.29329",
        "id": "vanwagner-2017-car-olt",
        "pmid": "28703417",
        "source": "Hepatology. 2017;66(6):1968-1979",
        "title": "A point-based prediction model for cardiovascular risk in orthotopic liver transplantation: The CAR-OLT score"
      },
      "formula": "car_olt",
      "formula_expression": "CAR-OLT = age (<45 0, 45-49 -6, 50-54 -4, 55-59 2, 60-64 5, >=65 8) + sex (male 0, female 1) + race_group (white 7, black 10, other 0) + not working 10 + education (high_school_or_unknown 5, college 0) + atrial_fibrillation 25 + ventilator_respiratory_failure 13 + pulmonary_hypertension 9 + no HCC 6 + hypertension 4 + diabetes 4 + heart_failure 7; VanWagner 2017 Table 3; Table 4 1-year predicted CVD %; unclamped; score 9 uses the <9 row",
      "max_score": 102,
      "score": 0,
      "age_years": 40,
      "sex": "male",
      "education": "college",
      "predicted_1yr_cvd_percent": "<5%",
      "race_group": "other",
      "working_for_income": true
    },
    {
      "components": [
        {
          "value": 40,
          "factor": "age",
          "points": 0,
          "present": false
        },
        {
          "value": "male",
          "factor": "sex",
          "points": 0,
          "present": false
        },
        {
          "value": "other",
          "factor": "race_group",
          "points": 0,
          "present": false
        },
        {
          "value": true,
          "factor": "working_for_income",
          "points": 0,
          "present": false
        },
        {
          "value": "college",
          "factor": "education",
          "points": 0,
          "present": false
        },
        {
          "factor": "atrial_fibrillation",
          "points": 0,
          "present": false
        },
        {
          "factor": "ventilator_respiratory_failure",
          "points": 0,
          "present": false
        },
        {
          "factor": "pulmonary_hypertension",
          "points": 0,
          "present": false
        },
        {
          "value": true,
          "factor": "hcc",
          "points": 0,
          "present": false
        },
        {
          "factor": "hypertension",
          "points": 0,
          "present": false
        },
        {
          "factor": "diabetes",
          "points": 0,
          "present": false
        },
        {
          "factor": "heart_failure",
          "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.",
      "citation": {
        "authors": "VanWagner LB, Ning H, Whitsett M, Levitsky J, Uttal S, Wilkins JT, Abecassis MM, Ladner DP, Skaro AI, Lloyd-Jones DM",
        "doi": "10.1002/hep.29329",
        "id": "vanwagner-2017-car-olt",
        "pmid": "28703417",
        "source": "Hepatology. 2017;66(6):1968-1979",
        "title": "A point-based prediction model for cardiovascular risk in orthotopic liver transplantation: The CAR-OLT score"
      },
      "formula": "car_olt",
      "formula_expression": "CAR-OLT = age (<45 0, 45-49 -6, 50-54 -4, 55-59 2, 60-64 5, >=65 8) + sex (male 0, female 1) + race_group (white 7, black 10, other 0) + not working 10 + education (high_school_or_unknown 5, college 0) + atrial_fibrillation 25 + ventilator_respiratory_failure 13 + pulmonary_hypertension 9 + no HCC 6 + hypertension 4 + diabetes 4 + heart_failure 7; VanWagner 2017 Table 3; Table 4 1-year predicted CVD %; unclamped; score 9 uses the <9 row",
      "max_score": 102,
      "score": 0,
      "age_years": 40,
      "sex": "male",
      "education": "college",
      "predicted_1yr_cvd_percent": "<5%",
      "race_group": "other",
      "working_for_income": true
    }
  ]
}

Response

Field Type Description
formula string car_olt
formula_expression string VanWagner 2017 Table 3 expression
score integer Unclamped Table 3 integer sum. May be negative (age 45-49 is -6). Theoretical max 102.
max_score integer 102 (sum of Table 3 maxima)
predicted_1yr_cvd_percent string VanWagner 2017 Table 4 1-year predicted CVD complication percent: <5%, 6%, 8%, 10%, 12%, 14%, 17%, 20%, 22%, 26%, 30%, 34%, 38%, 40%, 43%, or 45%. Score 9 uses the <9 row. Not a named low/moderate/high band.
age_years integer Age in years used for the age band
sex string female or male used
race_group string Caller-assigned white, black, or other used
education string Caller-assigned high_school_or_unknown or college used
working_for_income boolean Working-for-income flag used
components array Per-factor Table 3 points
citation object VanWagner 2017 Hepatology citation
disclaimer string Not-a-device notice

Example JSON

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "components": [
    {
      "value": 40,
      "factor": "age",
      "points": 0,
      "present": false
    },
    {
      "value": "male",
      "factor": "sex",
      "points": 0,
      "present": false
    },
    {
      "value": "other",
      "factor": "race_group",
      "points": 0,
      "present": false
    },
    {
      "value": true,
      "factor": "working_for_income",
      "points": 0,
      "present": false
    },
    {
      "value": "college",
      "factor": "education",
      "points": 0,
      "present": false
    },
    {
      "factor": "atrial_fibrillation",
      "points": 0,
      "present": false
    },
    {
      "factor": "ventilator_respiratory_failure",
      "points": 0,
      "present": false
    },
    {
      "factor": "pulmonary_hypertension",
      "points": 0,
      "present": false
    },
    {
      "value": true,
      "factor": "hcc",
      "points": 0,
      "present": false
    },
    {
      "factor": "hypertension",
      "points": 0,
      "present": false
    },
    {
      "factor": "diabetes",
      "points": 0,
      "present": false
    },
    {
      "factor": "heart_failure",
      "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.",
  "citation": {
    "authors": "VanWagner LB, Ning H, Whitsett M, Levitsky J, Uttal S, Wilkins JT, Abecassis MM, Ladner DP, Skaro AI, Lloyd-Jones DM",
    "doi": "10.1002/hep.29329",
    "id": "vanwagner-2017-car-olt",
    "pmid": "28703417",
    "source": "Hepatology. 2017;66(6):1968-1979",
    "title": "A point-based prediction model for cardiovascular risk in orthotopic liver transplantation: The CAR-OLT score"
  },
  "formula": "car_olt",
  "formula_expression": "CAR-OLT = age (<45 0, 45-49 -6, 50-54 -4, 55-59 2, 60-64 5, >=65 8) + sex (male 0, female 1) + race_group (white 7, black 10, other 0) + not working 10 + education (high_school_or_unknown 5, college 0) + atrial_fibrillation 25 + ventilator_respiratory_failure 13 + pulmonary_hypertension 9 + no HCC 6 + hypertension 4 + diabetes 4 + heart_failure 7; VanWagner 2017 Table 3; Table 4 1-year predicted CVD %; unclamped; score 9 uses the <9 row",
  "max_score": 102,
  "score": 0,
  "age_years": 40,
  "sex": "male",
  "education": "college",
  "predicted_1yr_cvd_percent": "<5%",
  "race_group": "other",
  "working_for_income": true
}

Client errors (HTTP 400)

Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.

HTTP Code When
400 invalid_age age must be an integer from 18 to 120 Returned before settlement; you are not charged.
400 invalid_sex sex must be female or male Returned before settlement; you are not charged.
400 invalid_flag boolean clinical flags must be true or false Returned before settlement; you are not charged.
400 invalid_car_olt CAR-OLT inputs must match VanWagner 2017 Table 3 age group, sex, race, work, education, and comorbidity flags. Returned before settlement; you are not charged.
400 invalid_items POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
400 invalid_item_count items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
400 invalid_item each items entry must be a JSON object Returned before settlement; you are not charged.

Related tools

  • MELD — Compute the Kamath 2001 model for end-stage liver disease (MELD) integer from creatinine, bilirubin, INR, and cholestatic or alcoholic etiology.
  • Child–Pugh — Compute the Child–Turcotte–Pugh cirrhosis severity score from bilirubin, albumin, INR, encephalopathy, and ascites.
  • UKELD — Compute the Barber 2011 United Kingdom end-stage liver disease (UKELD) integer from INR, creatinine, bilirubin, and sodium, with the UK elective-list 9% 1-year mortality threshold of 49.

Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake and shared payment errors: Payments. Stdio MCP: /docs/mcp.

Guarantees

  • HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
  • exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
  • HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
  • Execution is timeout-bounded and concurrency-capped.
  • Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.