# Geneva VTE prophylaxis score

Geneva prophylaxis score

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/geneva_prophylaxis`
HTML: https://magentlab.com/docs/geneva-prophylaxis
Markdown: https://magentlab.com/docs/geneva-prophylaxis.md

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

## What it computes

Compute the Chopard 2006 Geneva risk score for VTE thromboprophylaxis in acutely ill medical inpatients from age and caller-assigned findings.

## When to use

When an agent needs the published Chopard 2006 Geneva prophylaxis point total (not the Revised Geneva PE diagnostic score, not Padua) for an acutely ill medical inpatient.

## When not to use

- Not a medical device and not a diagnosis of VTE. magent does not examine the patient; every flag is caller-assigned.
- Chopard 2006 Geneva prophylaxis score for acutely ill medical inpatients only. Not the Revised Geneva PE diagnostic score (Le Gal 2006). Not Padua.
- Obesity is a caller-applied BMI >30 flag; magent does not take height or weight.
- Immobilization is a caller-applied flag (walk <30 min/day for ≥3 days); magent does not observe walking time.
- Does not return Padua points, PE probabilities, or a prophylaxis regimen. risk_group high means published score ≥3 (prophylaxis indicated in the letter), not an order.

## Formula

```
geneva_prophylaxis = cardiac_failure (2) + respiratory_failure (2) + recent_stroke (2) + recent_myocardial_infarction (2) + acute_infectious_disease (2) + acute_rheumatic_disease (2) + malignancy (2) + myeloproliferative_syndrome (2) + nephrotic_syndrome (2) + history_of_vte (2) + known_hypercoagulable_state (2) + immobilization_ge_3d (1) + recent_travel_gt_6h (1) + age>60 (1) + obesity_bmi_gt_30 (1) + chronic_venous_insufficiency (1) + pregnancy (1) + hormonal_therapy (1) + dehydration (1); Chopard 2006 letter table; max 30; <3 low, >=3 high (prophylaxis indicated)
```

## Citation

[Identifying acutely ill medical patients requiring thromboprophylaxis](https://doi.org/10.1111/j.1538-7836.2006.01818.x)
Chopard P, Spirk D, Bounameaux H
J Thromb Haemost. 2006;4(4):915-916
DOI: [10.1111/j.1538-7836.2006.01818.x](https://doi.org/10.1111/j.1538-7836.2006.01818.x)

## Worked example

### All items absent

Given: `acute_infectious_disease=false, acute_rheumatic_disease=false, age=50, cardiac_failure=false, chronic_venous_insufficiency=false, dehydration=false, history_of_vte=false, hormonal_therapy=false, immobilization_ge_3d=false, known_hypercoagulable_state=false, malignancy=false, myeloproliferative_syndrome=false, nephrotic_syndrome=false, obesity_bmi_gt_30=false, pregnancy=false, recent_myocardial_infarction=false, recent_stroke=false, recent_travel_gt_6h=false, respiratory_failure=false`

1. Age 50 is not >60 → 0; all eighteen flags false → 0
2. Score = 0 (max 30); risk_group low


### Cardiac failure plus immobilization is high

Given: `acute_infectious_disease=false, acute_rheumatic_disease=false, age=50, cardiac_failure=true, chronic_venous_insufficiency=false, dehydration=false, history_of_vte=false, hormonal_therapy=false, immobilization_ge_3d=true, known_hypercoagulable_state=false, malignancy=false, myeloproliferative_syndrome=false, nephrotic_syndrome=false, obesity_bmi_gt_30=false, pregnancy=false, recent_myocardial_infarction=false, recent_stroke=false, recent_travel_gt_6h=false, respiratory_failure=false`

1. cardiac_failure → 2; immobilization_ge_3d → 1
2. Score = 3 (max 30); risk_group high (prophylaxis indicated ≥3)


## Also searched as

- Geneva prophylaxis score
- Chopard 2006 Geneva score
- Geneva thromboprophylaxis score
- Chopard VTE prophylaxis
- acutely ill medical VTE score
- Geneva medical inpatient VTE
- Chopard Geneva risk score

## Parameters

- `age` (integer, required): Age in years (18-120). Age >60 scores 1 (Chopard 2006). Age 60 is the ≤60 arm and scores 0.
- `cardiac_failure` (boolean, required): Cardiac failure as assigned by the caller (Chopard 2006 Geneva prophylaxis table). true scores 2. magent does not examine the patient.
- `respiratory_failure` (boolean, required): Respiratory failure as assigned by the caller (Chopard 2006). true scores 2. magent does not examine the patient.
- `recent_stroke` (boolean, required): Recent stroke as assigned by the caller (Chopard 2006). true scores 2. magent does not diagnose stroke.
- `recent_myocardial_infarction` (boolean, required): Recent myocardial infarction as assigned by the caller (Chopard 2006). true scores 2. magent does not diagnose myocardial infarction.
- `acute_infectious_disease` (boolean, required): Acute infectious disease including sepsis as assigned by the caller (Chopard 2006). true scores 2. magent does not diagnose infection.
- `acute_rheumatic_disease` (boolean, required): Acute rheumatic disease as assigned by the caller (Chopard 2006). true scores 2. magent does not diagnose rheumatic disease.
- `malignancy` (boolean, required): Malignancy as assigned by the caller (Chopard 2006). true scores 2. magent does not diagnose cancer.
- `myeloproliferative_syndrome` (boolean, required): Myeloproliferative syndrome as assigned by the caller (Chopard 2006). true scores 2. magent does not diagnose a myeloproliferative neoplasm.
- `nephrotic_syndrome` (boolean, required): Nephrotic syndrome as assigned by the caller (Chopard 2006). true scores 2. magent does not diagnose nephrotic syndrome.
- `history_of_vte` (boolean, required): History of VTE as assigned by the caller (Chopard 2006). true scores 2. magent does not diagnose VTE.
- `known_hypercoagulable_state` (boolean, required): Known hypercoagulable state as assigned by the caller (Chopard 2006). true scores 2. magent does not interpret a thrombophilia panel.
- `immobilization_ge_3d` (boolean, required): Immobilization as assigned by the caller (walk <30 min/day for ≥3 days, Chopard 2006). true scores 1. magent does not observe walking time.
- `recent_travel_gt_6h` (boolean, required): Recent travel >6 hours as assigned by the caller (Chopard 2006). true scores 1.
- `obesity_bmi_gt_30` (boolean, required): Obesity as assigned by the caller (BMI >30, Chopard 2006). true scores 1. magent does not take height or weight.
- `chronic_venous_insufficiency` (boolean, required): Chronic venous insufficiency as assigned by the caller (Chopard 2006). true scores 1. magent does not examine the patient.
- `pregnancy` (boolean, required): Pregnancy as assigned by the caller (Chopard 2006). true scores 1. magent does not confirm pregnancy.
- `hormonal_therapy` (boolean, required): Hormonal therapy as assigned by the caller (Chopard 2006). true scores 1.
- `dehydration` (boolean, required): Dehydration as assigned by the caller (Chopard 2006). true scores 1. magent does not assay volume status.

## 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.

Method: `POST /api/calc/geneva_prophylaxis`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: 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:

```json
{
  "items": [
    {
      "acute_infectious_disease": "false",
      "acute_rheumatic_disease": "false",
      "age": "50",
      "cardiac_failure": "false",
      "chronic_venous_insufficiency": "false",
      "dehydration": "false",
      "history_of_vte": "false",
      "hormonal_therapy": "false",
      "immobilization_ge_3d": "false",
      "known_hypercoagulable_state": "false",
      "malignancy": "false",
      "myeloproliferative_syndrome": "false",
      "nephrotic_syndrome": "false",
      "obesity_bmi_gt_30": "false",
      "pregnancy": "false",
      "recent_myocardial_infarction": "false",
      "recent_stroke": "false",
      "recent_travel_gt_6h": "false",
      "respiratory_failure": "false"
    },
    {
      "acute_infectious_disease": "false",
      "acute_rheumatic_disease": "false",
      "age": "50",
      "cardiac_failure": "false",
      "chronic_venous_insufficiency": "false",
      "dehydration": "false",
      "history_of_vte": "false",
      "hormonal_therapy": "false",
      "immobilization_ge_3d": "false",
      "known_hypercoagulable_state": "false",
      "malignancy": "false",
      "myeloproliferative_syndrome": "false",
      "nephrotic_syndrome": "false",
      "obesity_bmi_gt_30": "false",
      "pregnancy": "false",
      "recent_myocardial_infarction": "false",
      "recent_stroke": "false",
      "recent_travel_gt_6h": "false",
      "respiratory_failure": "false"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/geneva-prophylaxis

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/geneva_prophylaxis",
  "items": [
    {
      "components": [
        {
          "factor": "cardiac_failure",
          "points": 0,
          "present": false
        },
        {
          "factor": "respiratory_failure",
          "points": 0,
          "present": false
        },
        {
          "factor": "recent_stroke",
          "points": 0,
          "present": false
        },
        {
          "factor": "recent_myocardial_infarction",
          "points": 0,
          "present": false
        },
        {
          "factor": "acute_infectious_disease",
          "points": 0,
          "present": false
        },
        {
          "factor": "acute_rheumatic_disease",
          "points": 0,
          "present": false
        },
        {
          "factor": "malignancy",
          "points": 0,
          "present": false
        },
        {
          "factor": "myeloproliferative_syndrome",
          "points": 0,
          "present": false
        },
        {
          "factor": "nephrotic_syndrome",
          "points": 0,
          "present": false
        },
        {
          "factor": "history_of_vte",
          "points": 0,
          "present": false
        },
        {
          "factor": "known_hypercoagulable_state",
          "points": 0,
          "present": false
        },
        {
          "factor": "immobilization_ge_3d",
          "points": 0,
          "present": false
        },
        {
          "factor": "recent_travel_gt_6h",
          "points": 0,
          "present": false
        },
        {
          "value": 50,
          "factor": "age_gt_60",
          "points": 0,
          "present": false
        },
        {
          "factor": "obesity_bmi_gt_30",
          "points": 0,
          "present": false
        },
        {
          "factor": "chronic_venous_insufficiency",
          "points": 0,
          "present": false
        },
        {
          "factor": "pregnancy",
          "points": 0,
          "present": false
        },
        {
          "factor": "hormonal_therapy",
          "points": 0,
          "present": false
        },
        {
          "factor": "dehydration",
          "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": "Chopard P, Spirk D, Bounameaux H",
        "doi": "10.1111/j.1538-7836.2006.01818.x",
        "id": "chopard-2006",
        "pmid": "16553641",
        "source": "J Thromb Haemost. 2006;4(4):915-916",
        "title": "Identifying acutely ill medical patients requiring thromboprophylaxis"
      },
      "formula": "geneva_prophylaxis",
      "formula_expression": "geneva_prophylaxis = cardiac_failure (2) + respiratory_failure (2) + recent_stroke (2) + recent_myocardial_infarction (2) + acute_infectious_disease (2) + acute_rheumatic_disease (2) + malignancy (2) + myeloproliferative_syndrome (2) + nephrotic_syndrome (2) + history_of_vte (2) + known_hypercoagulable_state (2) + immobilization_ge_3d (1) + recent_travel_gt_6h (1) + age>60 (1) + obesity_bmi_gt_30 (1) + chronic_venous_insufficiency (1) + pregnancy (1) + hormonal_therapy (1) + dehydration (1); Chopard 2006 letter table; max 30; <3 low, >=3 high (prophylaxis indicated)",
      "age_years": 50,
      "max_score": 30,
      "score": 0,
      "risk_group": "low"
    },
    {
      "components": [
        {
          "factor": "cardiac_failure",
          "points": 0,
          "present": false
        },
        {
          "factor": "respiratory_failure",
          "points": 0,
          "present": false
        },
        {
          "factor": "recent_stroke",
          "points": 0,
          "present": false
        },
        {
          "factor": "recent_myocardial_infarction",
          "points": 0,
          "present": false
        },
        {
          "factor": "acute_infectious_disease",
          "points": 0,
          "present": false
        },
        {
          "factor": "acute_rheumatic_disease",
          "points": 0,
          "present": false
        },
        {
          "factor": "malignancy",
          "points": 0,
          "present": false
        },
        {
          "factor": "myeloproliferative_syndrome",
          "points": 0,
          "present": false
        },
        {
          "factor": "nephrotic_syndrome",
          "points": 0,
          "present": false
        },
        {
          "factor": "history_of_vte",
          "points": 0,
          "present": false
        },
        {
          "factor": "known_hypercoagulable_state",
          "points": 0,
          "present": false
        },
        {
          "factor": "immobilization_ge_3d",
          "points": 0,
          "present": false
        },
        {
          "factor": "recent_travel_gt_6h",
          "points": 0,
          "present": false
        },
        {
          "value": 50,
          "factor": "age_gt_60",
          "points": 0,
          "present": false
        },
        {
          "factor": "obesity_bmi_gt_30",
          "points": 0,
          "present": false
        },
        {
          "factor": "chronic_venous_insufficiency",
          "points": 0,
          "present": false
        },
        {
          "factor": "pregnancy",
          "points": 0,
          "present": false
        },
        {
          "factor": "hormonal_therapy",
          "points": 0,
          "present": false
        },
        {
          "factor": "dehydration",
          "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": "Chopard P, Spirk D, Bounameaux H",
        "doi": "10.1111/j.1538-7836.2006.01818.x",
        "id": "chopard-2006",
        "pmid": "16553641",
        "source": "J Thromb Haemost. 2006;4(4):915-916",
        "title": "Identifying acutely ill medical patients requiring thromboprophylaxis"
      },
      "formula": "geneva_prophylaxis",
      "formula_expression": "geneva_prophylaxis = cardiac_failure (2) + respiratory_failure (2) + recent_stroke (2) + recent_myocardial_infarction (2) + acute_infectious_disease (2) + acute_rheumatic_disease (2) + malignancy (2) + myeloproliferative_syndrome (2) + nephrotic_syndrome (2) + history_of_vte (2) + known_hypercoagulable_state (2) + immobilization_ge_3d (1) + recent_travel_gt_6h (1) + age>60 (1) + obesity_bmi_gt_30 (1) + chronic_venous_insufficiency (1) + pregnancy (1) + hormonal_therapy (1) + dehydration (1); Chopard 2006 letter table; max 30; <3 low, >=3 high (prophylaxis indicated)",
      "age_years": 50,
      "max_score": 30,
      "score": 0,
      "risk_group": "low"
    }
  ]
}
```

## Response fields

- `formula` (string): geneva_prophylaxis
- `formula_expression` (string): Exact expression used
- `score` (integer): Total points 0-30
- `max_score` (integer): Always 30 (11×2 + 8×1)
- `risk_group` (string): low when score is <3; high when score is ≥3 (Chopard 2006 prophylaxis indicated). Not a diagnosis or prophylaxis order. Not Padua.
- `age_years` (integer): Age used for the >60 criterion
- `components` (array): Per-factor points
- `citation` (object): Chopard 2006 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "factor": "cardiac_failure",
      "points": 0,
      "present": false
    },
    {
      "factor": "respiratory_failure",
      "points": 0,
      "present": false
    },
    {
      "factor": "recent_stroke",
      "points": 0,
      "present": false
    },
    {
      "factor": "recent_myocardial_infarction",
      "points": 0,
      "present": false
    },
    {
      "factor": "acute_infectious_disease",
      "points": 0,
      "present": false
    },
    {
      "factor": "acute_rheumatic_disease",
      "points": 0,
      "present": false
    },
    {
      "factor": "malignancy",
      "points": 0,
      "present": false
    },
    {
      "factor": "myeloproliferative_syndrome",
      "points": 0,
      "present": false
    },
    {
      "factor": "nephrotic_syndrome",
      "points": 0,
      "present": false
    },
    {
      "factor": "history_of_vte",
      "points": 0,
      "present": false
    },
    {
      "factor": "known_hypercoagulable_state",
      "points": 0,
      "present": false
    },
    {
      "factor": "immobilization_ge_3d",
      "points": 0,
      "present": false
    },
    {
      "factor": "recent_travel_gt_6h",
      "points": 0,
      "present": false
    },
    {
      "value": 50,
      "factor": "age_gt_60",
      "points": 0,
      "present": false
    },
    {
      "factor": "obesity_bmi_gt_30",
      "points": 0,
      "present": false
    },
    {
      "factor": "chronic_venous_insufficiency",
      "points": 0,
      "present": false
    },
    {
      "factor": "pregnancy",
      "points": 0,
      "present": false
    },
    {
      "factor": "hormonal_therapy",
      "points": 0,
      "present": false
    },
    {
      "factor": "dehydration",
      "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": "Chopard P, Spirk D, Bounameaux H",
    "doi": "10.1111/j.1538-7836.2006.01818.x",
    "id": "chopard-2006",
    "pmid": "16553641",
    "source": "J Thromb Haemost. 2006;4(4):915-916",
    "title": "Identifying acutely ill medical patients requiring thromboprophylaxis"
  },
  "formula": "geneva_prophylaxis",
  "formula_expression": "geneva_prophylaxis = cardiac_failure (2) + respiratory_failure (2) + recent_stroke (2) + recent_myocardial_infarction (2) + acute_infectious_disease (2) + acute_rheumatic_disease (2) + malignancy (2) + myeloproliferative_syndrome (2) + nephrotic_syndrome (2) + history_of_vte (2) + known_hypercoagulable_state (2) + immobilization_ge_3d (1) + recent_travel_gt_6h (1) + age>60 (1) + obesity_bmi_gt_30 (1) + chronic_venous_insufficiency (1) + pregnancy (1) + hormonal_therapy (1) + dehydration (1); Chopard 2006 letter table; max 30; <3 low, >=3 high (prophylaxis indicated)",
  "age_years": 50,
  "max_score": 30,
  "score": 0,
  "risk_group": "low"
}
```

## Errors

- HTTP 400 `invalid_age`: age must be an integer from 18 to 120 Returned before settlement; you are not charged.
- HTTP 400 `invalid_geneva_prophylaxis`: each Chopard 2006 Geneva prophylaxis flag must be true or false. Returned before settlement; you are not charged.
- HTTP 400 `invalid_flag`: boolean clinical flags must be true or false Returned before settlement; you are not charged.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [Padua score](https://magentlab.com/docs/padua) — Compute the Barbar 2010 Padua Prediction Score for VTE risk in hospitalized medical patients from age and ten caller-assigned findings.

## 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.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/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.
