HACOR Score Calculator (Duan 2017) 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 HACOR score (Heart rate, Acidosis, Consciousness, Oxygenation, Respiratory rate) to predict NIV failure risk, returning a total score and low/high risk classification.
Duan 2017 HACOR (ESM Table 2): HR ≤120 → 0, ≥121 → 1; pH ≥7.35 → 0, 7.30–7.34 → 2, 7.25–7.29 → 3, <7.25 → 4; GCS 15 → 0, 13–14 → 2, 11–12 → 5, ≤10 → 10; P/F ≥201 → 0, 176–200 → 2, 151–175 → 3, 126–150 → 4, 101–125 → 5, ≤100 → 6; RR ≤30 → 0, 31–35 → 1, 36–40 → 2, 41–45 → 3, ≥46 → 4. Max 25. Low ≤5, high >5. Not an intubation or NIV-failure order. magent does not read an ABG, GCS the patient, or a ventilator.
Returns the total HACOR score (integer 0–25) computed from the five weighted components per Duan 2017 ESM Table 2, plus a risk tier: low (≤5) or high (>5). The endpoint does not read ABG values, assess GCS, or interrogate ventilator data — all inputs must be supplied by the caller.
GEThttps://api.magentlab.com/api/calc/hacorUse this endpoint when you need to programmatically compute the validated Duan 2017 HACOR score for a patient on or being considered for NIV and all five required clinical values (HR, pH, GCS, P/F ratio, RR) are already known. It is not a substitute for clinical judgment, does not issue intubation orders, and does not replace direct ABG reading or bedside GCS assessment.
| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
{
"type": "json",
"example": {
"path": "/api/calc/hacor",
"count": 2,
"items": [
{
"ph": 7.4,
"gcs": 15,
"score": 0,
"formula": "hacor",
"citation": {
"id": "duan-2017",
"doi": "10.1007/s00134-016-4601-3",
"pmid": "27812731",
"title": "Assessment of heart rate, acidosis, consciousness, oxygenation, and respiratory rate to predict noninvasive ventilation failure in hypoxemic patients",
"source": "Intensive Care Med. 2017;43(2):192-199",
"authors": "Duan J, Han X, Bai L, Zhou L, Huang S"
},
"pf_ratio": 300,
"max_score": 25,
"components": [
{
"value": 80,
"factor": "heart_rate_bpm",
"points": 0,
"present": false
},
{
"value": 7.4,
"factor": "ph",
"points": 0,
"present": false
},
{
"value": 15,
"factor": "gcs",
"points": 0,
"present": false
},
{
"value": 300,
"factor": "pf_ratio",
"points": 0,
"present": false
},
{
"value": 18,
"factor": "respiratory_rate",
"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.",
"hacor_band": "low",
"heart_rate_bpm": 80,
"respiratory_rate": 18,
"formula_expression": "HACOR = HR(≤120→0, ≥121→1) + pH(≥7.35→0, 7.30–7.34→2, 7.25–7.29→3, <7.25→4) + GCS(15→0, 13–14→2, 11–12→5, ≤10→10) + P/F(≥201→0, 176–200→2, 151–175→3, 126–150→4, 101–125→5, ≤100→6) + RR(≤30→0, 31–35→1, 36–40→2, 41–45→3, ≥46→4); Duan 2017 ESM Table 2; max 25; low ≤5, high >5"
},
{
"ph": 7.4,
"gcs": 15,
"score": 0,
"formula": "hacor",
"citation": {
"id": "duan-2017",
"doi": "10.1007/s00134-016-4601-3",
"pmid": "27812731",
"title": "Assessment of heart rate, acidosis, consciousness, oxygenation, and respiratory rate to predict noninvasive ventilation failure in hypoxemic patients",
"source": "Intensive Care Med. 2017;43(2):192-199",
"authors": "Duan J, Han X, Bai L, Zhou L, Huang S"
},
"pf_ratio": 300,
"max_score": 25,
"components": [
{
"value": 80,
"factor": "heart_rate_bpm",
"points": 0,
"present": false
},
{
"value": 7.4,
"factor": "ph",
"points": 0,
"present": false
},
{
"value": 15,
"factor": "gcs",
"points": 0,
"present": false
},
{
"value": 300,
"factor": "pf_ratio",
"points": 0,
"present": false
},
{
"value": 18,
"factor": "respiratory_rate",
"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.",
"hacor_band": "low",
"heart_rate_bpm": 80,
"respiratory_rate": 18,
"formula_expression": "HACOR = HR(≤120→0, ≥121→1) + pH(≥7.35→0, 7.30–7.34→2, 7.25–7.29→3, <7.25→4) + GCS(15→0, 13–14→2, 11–12→5, ≤10→10) + P/F(≥201→0, 176–200→2, 151–175→3, 126–150→4, 101–125→5, ≤100→6) + RR(≤30→0, 31–35→1, 36–40→2, 41–45→3, ≥46→4); Duan 2017 ESM Table 2; max 25; low ≤5, high >5"
}
]
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"