Lee 2012 EHMRG 7-day ED model (Table 3 integer score)
Lee 2012 EHMRG 7-day ED model (Table 3 integer score): 2*age + 60 if EMS transport - min(SBP,160) + clamp(HR,80-120) - 2*min(SpO2,92) + 20*creatinine_mg_dl + K (<=3.9: +5; 4.0-4.5: 0; >=4.6: +30) + 60 if troponin>ULN + 45 if active cancer + 60 if home metolazone + 12. Groups 1/2/3/4/5a/5b. Dialysis-dependent excluded. Not EHMRG30-ST, not ADHERE CART, not a discharge or admission order.
Answeringour last check, 2026-09-28
1 of 1checks answered this week
309 msmedian answer time
$0.005listed price per call
$0.005price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.magentlab.com/api/calc/ehmrg
| Category | Everything else |
|---|---|
| Provider host | api.magentlab.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-28 | valid payment request | 402 | $0.005 | 309 ms |
Example input (from the provider)
{
"body": {
"items": [
{
"active_cancer": false,
"age": 70,
"creatinine_mg_dl": 1,
"creatinine_umol_l": 88.4,
"dialysis_dependent": false,
"ems_transport": false,
"heart_rate_bpm": 80,
"metolazone": false,
"potassium_mmol_l": 4.2,
"spo2_percent": 92,
"systolic_mm_hg": 160,
"troponin_gt_uln": false
},
{
"active_cancer": false,
"age": 70,
"creatinine_mg_dl": 1,
"creatinine_umol_l": 88.4,
"dialysis_dependent": false,
"ems_transport": false,
"heart_rate_bpm": 80,
"metolazone": false,
"potassium_mmol_l": 4.2,
"spo2_percent": 92,
"systolic_mm_hg": 160,
"troponin_gt_uln": false
}
]
},
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"properties": {
"active_cancer": {
"description": "Active cancer as assigned by the caller (true or false). Lee 2012 Table 3: +45 if true.",
"type": "boolean"
},
"age": {
"description": "Age in years (integer 18-120). Lee 2012 Table 3 adds +2 per year. magent does not assign age.",
"type": "integer"
},
"creatinine_mg_dl": {
"description": "Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Lee 2012 Table 3 adds +20 per mg/dL. magent does not measure creatinine.",
"type": "number"
},
"creatinine_umol_l": {
"description": "Serum creatinine in \u00b5mol/L (9-1768). Converted as mg/dL = \u00b5mol/L / 88.42. Provide this or creatinine_mg_dl, not both.",
"type": "number"
},
"dialysis_dependent": {
"description": "Dialysis dependence as assigned by the caller (true or false). Lee 2012 excludes dialysis-dependent patients; true returns HTTP 400. magent does not determine dialysis status.",
"type": "boolean"
},
"ems_transport": {
"description": "Transported by EMS as assigned by the caller (true or false). Lee 2012 Table 3: +60 if true.",
"type": "boolean"
},
"heart_rate_bpm": {
"description": "Heart rate in beats/min (integer 30-220). Lee 2012 Table 3 scores +1 * clamp(HR, 80, 120): floor 80, ceiling 120. magent does not measure heart rate.",
"type": "integer"
},
"metolazone": {
"description": "Metolazone at home as assigned by the caller (true or false). Lee 2012 Table 3: +60 if true.",
"type": "boolean"
},
"potassium_mmol_l": {
"description": "Serum potassium in mmol/L (1.5-8.0). Lee 2012 Table 3: 4.0-4.5 inclusive \u2192 0; >=4.6 \u2192 +30; <=3.9 \u2192 +5. Unpublished 3.91-3.99 pin with <=3.9; 4.51-4.59 pin with >=4.6. magent does not measure potassium.",
"type": "number"
},
"spo2_percent": {
"description": "Lowest initial/triage oxygen saturation percent (50-100). Lee 2012 Table 3 scores -2 * min(SpO2, 92); values above 92% are capped. magent does not measure saturation.",
"type": "number"
},
"systolic_mm_hg": {
"description": "Initial/triage systolic blood pressure in mm Hg (integer 50-250). Lee 2012 Table 3 scores -1 * min(SBP, 160); values above 160 mm Hg are capped. magent does not measure blood pressure.",
"type": "integer"
},
"troponin_gt_uln": {
"description": "Troponin above the local upper limit of normal as assigned by the caller (true or false). Lee 2012 Table 3: +60 if true.",
"type": "boolean"
}
},
"required": [
"age",
"ems_transport",
"systolic_mm_hg",
"heart_rate_bpm",
"spo2_percent",
"potassium_mmol_l",
"troponin_gt_uln",
"active_cancer",
"metolazone",
"dialysis_dependent"
],
"type": "object"
},
"maxItems": 25,
"minItems": 1,
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"method": {
"const": "POST",
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}