# Diastolic Shock Index (DSI) Calculator

> Diastolic Shock Index (DSI) Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes the diastolic shock index (DSI) as heart rate divided by diastolic blood pressure, rounded to two decimal places, per Ospina-Tascón 2020.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/dsi
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/diastolic-shock-index-dsi-calculator-af782c51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-DOzQKdhP6gY2PoXkU6rP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability diastolic-shock-index-dsi-calculator-af782c51
```

Example prompt: Can you calculate the diastolic shock index for a patient with a heart rate of 112 bpm and a diastolic blood pressure of 68 mm Hg?

## When to prefer this

Use this endpoint when you need the Ospina-Tascón 2020 diastolic shock index specifically (HR/diastolic BP), as opposed to the classic Allgöwer–Burri shock index (HR/systolic BP). Choose it for hemodynamic ratio computation in research or monitoring pipelines where a quick, reproducible two-decimal ratio is needed without any embedded clinical decision logic.

## Known failure modes

- Missing required query parameters heart_rate_bpm or diastolic_mm_hg returns an error
- Heart rate outside integer range 30–220 bpm may be rejected or yield unreliable output
- Diastolic pressure outside range 20–160 mm Hg may be rejected
- Division by zero if diastolic pressure is 0 (should be blocked by schema minimum)
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Diastolic shock index as heart rate in bpm divided by cuff diastolic pressure in mm Hg (Ospina-Tascón 2020). Returns the ratio rounded to two decimals. Not a shock diagnosis, treatment target, or cutoff. Distinct from Allgöwer–Burri HR/SBP shock index. The 2020 cohort had no normal-subject control group, so a DSI cutoff to identify abnormality could be misleading.

## Output

Returns the diastolic shock index as a numeric ratio (heart rate in bpm divided by diastolic blood pressure in mm Hg), rounded to two decimal places. This is a raw computed value with no diagnostic interpretation, cutoff, or clinical recommendation attached.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "heart_rate_bpm",
      "diastolic_mm_hg"
     ],
     "properties": {
      "heart_rate_bpm": {
       "type": "integer",
       "description": "Heart rate in beats per minute (integer 30-220)."
      },
      "diastolic_mm_hg": {
       "type": "number",
       "description": "Cuff diastolic blood pressure in mm Hg (20-160)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/dsi",
  "count": 2,
  "items": [
   {
    "dsi": 1,
    "formula": "dsi",
    "citation": {
     "id": "ospina-tascon-2020",
     "doi": "10.1186/s13613-020-00658-8",
     "pmid": "32296976",
     "title": "Diastolic shock index and clinical outcomes in patients with septic shock.",
     "source": "Ann Intensive Care. 2020;10(1):41",
     "authors": "Ospina-Tascón GA, Teboul JL, Hernandez G, et al."
    },
    "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.",
    "heart_rate_bpm": 80,
    "diastolic_mm_hg": 80,
    "formula_expression": "dsi = heart_rate_bpm / diastolic_mm_hg"
   },
   {
    "dsi": 1,
    "formula": "dsi",
    "citation": {
     "id": "ospina-tascon-2020",
     "doi": "10.1186/s13613-020-00658-8",
     "pmid": "32296976",
     "title": "Diastolic shock index and clinical outcomes in patients with septic shock.",
     "source": "Ann Intensive Care. 2020;10(1):41",
     "authors": "Ospina-Tascón GA, Teboul JL, Hernandez G, et al."
    },
    "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.",
    "heart_rate_bpm": 80,
    "diastolic_mm_hg": 80,
    "formula_expression": "dsi = heart_rate_bpm / diastolic_mm_hg"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/diastolic-shock-index-dsi-calculator-af782c51/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
