{"slug":"api-magentlab-com-api-calc-ehmrg-7cc777","title":"Lee 2012 EHMRG 7-day ED model (Table 3 integer score)","host":"api.magentlab.com","method":"POST","resource":"https://api.magentlab.com/api/calc/ehmrg","category":"other","description":"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-","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":309,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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"},"output_schema":{"$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 µmol/L (9-1768). Converted as mg/dL = µmol/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 → 0; >=4.6 → +30; <=3.9 → +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"},"history":[{"day":"2026-09-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":309,"error":null}],"description_full":"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.","last_updated":"2026-09-28T14:40:03.571Z","schemes":["exact"]}