# EDACS Score Calculator (Emergency Department Assessment of Chest Pain Score)

> EDACS Score Calculator (Emergency Department Assessment of Chest Pain Score) 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).

Calculates the EDACS (Emergency Department Assessment of Chest Pain Score) from age, sex, CAD history, and symptom flags, returning the numeric score and whether it falls below the low-risk threshold of 16.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/edacs
- 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/edacs-score-calculator-emergency-department-assessment-of-chest-pain-9e71009f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qv9lBGa6UMfSL0k6gGFzy

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 edacs-score-calculator-emergency-department-assessment-of-chest-pain-9e71009f
```

Example prompt: Calculate the EDACS score for a 44-year-old male with diaphoresis, no known CAD or three risk factors, pain radiating to his left arm, no pain with inspiration, and no pain reproduced by palpation — is he low risk?

## When to prefer this

Choose this endpoint when you need a deterministic, published EDACS arithmetic calculation (Than 2014) for chest pain risk stratification in an emergency or clinical decision support workflow. It is ideal when the clinical flags have already been assessed by a clinician and you need the numeric score quickly. It does not replace ECG or troponin interpretation, so pair with those results for a full ADP. Prefer this over manual calculation to avoid arithmetic errors.

## Known failure modes

- Missing required query parameters returns an error (age, sex, known_cad_or_three_risk_factors, diaphoresis, pain_radiates_arm_shoulder_neck_jaw, pain_with_inspiration, pain_reproduced_by_palpation are all required)
- Age outside valid range (must be integer 18-120) may return an error or unexpected scoring
- Invalid sex enum value (must be 'male' or 'female') causes request failure
- Payment failure (x402 protocol) if USDC balance is insufficient or wallet not configured
- Network timeout or HTTP error from the upstream API

## How this service works

Than 2014 EDACS from age bands, male sex, known CAD or three risk factors (age 18-50 only), diaphoresis, radiation, inspiration (−4), and palpation (−6). Returns the point total (may be negative) and whether the score is <16. The paper ADP also requires ECG and 0/2h troponin, which magent does not take. Not a diagnosis or discharge order. Deterministic published arithmetic with citation.

## Output

Returns the integer EDACS point total (which may be negative) and a boolean indicating whether the score is less than 16 (the low-risk threshold used in the Than 2014 Accelerated Diagnostic Protocol). Does not include ECG interpretation or troponin results. Not a diagnosis or discharge order.

## 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": [
      "age",
      "sex",
      "known_cad_or_three_risk_factors",
      "diaphoresis",
      "pain_radiates_arm_shoulder_neck_jaw",
      "pain_with_inspiration",
      "pain_reproduced_by_palpation"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). 18-45 scores 2; then +2 per 5-year band through 81-85 (18); ≥86 scores 20."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "male scores 6; female scores 0."
      },
      "diaphoresis": {
       "type": "boolean",
       "description": "Diaphoresis with the pain. true scores +3."
      },
      "pain_with_inspiration": {
       "type": "boolean",
       "description": "Pain occurred or worsened with inspiration. true scores −4."
      },
      "pain_reproduced_by_palpation": {
       "type": "boolean",
       "description": "Pain reproduced by palpation. true scores −6."
      },
      "known_cad_or_three_risk_factors": {
       "type": "boolean",
       "description": "Caller-assigned known CAD or ≥3 risk factors (Than 2014). Scores +4 only when age is 18-50; required even when age >50 (then 0). magent does not count risk factors. true or false."
      },
      "pain_radiates_arm_shoulder_neck_jaw": {
       "type": "boolean",
       "description": "Pain radiates to arm, shoulder, neck, or jaw. true scores +5. magent does not interpret the history."
      }
     }
    }
   },
   "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/edacs",
  "count": 2,
  "items": [
   {
    "sex": "female",
    "score": 2,
    "formula": "edacs",
    "citation": {
     "id": "than-2014",
     "doi": "10.1111/1742-6723.12164",
     "pmid": "24428678",
     "title": "Development and validation of the Emergency Department Assessment of Chest pain Score and 2 h accelerated diagnostic protocol",
     "source": "Emerg Med Australas. 2014;26(1):34-44",
     "authors": "Than M, Flaws D, Sanders S, et al."
    },
    "age_years": 40,
    "components": [
     {
      "value": 40,
      "factor": "age",
      "points": 2,
      "present": true
     },
     {
      "value": "female",
      "factor": "sex_male",
      "points": 0,
      "present": false
     },
     {
      "factor": "known_cad_or_three_risk_factors",
      "points": 0,
      "present": false
     },
     {
      "factor": "diaphoresis",
      "points": 0,
      "present": false
     },
     {
      "factor": "pain_radiates_arm_shoulder_neck_jaw",
      "points": 0,
      "present": false
     },
     {
      "factor": "pain_with_inspiration",
      "points": 0,
      "present": false
     },
     {
      "factor": "pain_reproduced_by_palpation",
      "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.",
    "score_lt_16": true,
    "formula_expression": "EDACS = age (18-45:2, 46-50:4, 51-55:6, 56-60:8, 61-65:10, 66-70:12, 71-75:14, 76-80:16, 81-85:18, >=86:20) + male 6 + known_cad_or_three_risk_factors 4 if age 18-50 else 0 + diaphoresis 3 + pain_radiates_arm_shoulder_neck_jaw 5 + pain_with_inspiration -4 + pain_reproduced_by_palpation -6; score may be negative; paper ADP uses EDACS < 16 plus ECG and 0/2h troponin"
   },
   {
    "sex": "female",
    "score": 2,
    "formula": "edacs",
    "citation": {
     "id": "than-2014",
     "doi": "10.1111/1742-6723.12164",
     "pmid": "24428678",
     "title": "Development and validation of the Emergency Department Assessment of Chest pain Score and 2 h accelerated diagnostic protocol",
     "source": "Emerg Med Australas. 2014;26(1):34-44",
     "authors": "Than M, Flaws D, Sanders S, et al."
    },
    "age_years": 40,
    "components": [
     {
      "value": 40,
      "factor": "age",
      "points": 2,
      "present": true
     },
     {
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/edacs-score-calculator-emergency-department-assessment-of-chest-pain-9e71009f/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)
