{"uid":"cap_8klvtgZDMyGx1zUt-Lb7X","slug":"karter-2017-12-month-hypoglycemia-risk-score-t2d-45110e7b","name":"Karter 2017 12-Month Hypoglycemia Risk Score (T2D)","description":"Karter 2017 Figure 2 T2D 12-month hypoglycemia-related ED/hospital-use risk from prior_hypo_ed_hospital_count (0-20), ed_visits_12mo (0-50), insulin, sulfonylurea, severe_or_esrd (dialysis or CKD 4-5, eGFR <=29), and age_lt_77. First-match 6 options: >=3 prior or 1-2 plus insulin = high (>5%); remaining rows intermediate (1-5%) or low (<1%). Not a points sum. magent does not assay glucose. Not a diagnosis. Not an insulin dose.","url":"https://api.magentlab.com/api/calc/hypoglycemia_risk_score","method":"GET","headers":{},"bodySchema":{"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":["prior_hypo_ed_hospital_count","ed_visits_12mo","insulin","sulfonylurea","severe_or_esrd","age_lt_77"],"properties":{"insulin":{"type":"boolean","description":"Current insulin use as assigned by the caller (Karter 2017 Figure 2). true or false. With 1-2 prior hypoglycemia-related ED or hospital episodes, insulin is high; with 0 prior episodes, insulin plus ED visits >=2, severe_or_esrd, or age not <77 is intermediate. Not an insulin dose."},"age_lt_77":{"type":"boolean","description":"Age younger than 77 years as assigned by the caller (Karter 2017 Figure 2). true or false. When prior episodes are 0 and insulin is true, age not <77 (with ED visits <2 and severe_or_esrd false) is intermediate. magent does not compute age."},"sulfonylurea":{"type":"boolean","description":"Current sulfonylurea use as assigned by the caller (Karter 2017 Figure 2). true or false. With 0 prior episodes and no insulin, sulfonylurea plus ED visits >=2 or severe_or_esrd is intermediate. magent does not dispense medication."},"ed_visits_12mo":{"type":"integer","description":"ED encounters for any reason in the prior 12 months (integer 0-50). Karter 2017 Figure 2 bands: <2 vs >=2. magent does not count visits."},"severe_or_esrd":{"type":"boolean","description":"Severe or end-stage kidney disease as assigned by the caller (Karter 2017: dialysis or CKD stage 4-5, eGFR <=29 mL/min/1.73 m2). true or false. magent does not compute eGFR."},"prior_hypo_ed_hospital_count":{"type":"integer","description":"Count of prior hypoglycemia-related ED visits or hospitalizations (integer 0-20). Karter 2017 Figure 2 bands: 0, 1-2, or >=3. >=3 is high regardless of other inputs. magent does not read claims."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AHY1jHwB33u6dMIeoT7Pl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies a type 2 diabetes patient into high, intermediate, or low 12-month risk of hypoglycemia-related ED or hospital use based on the Karter 2017 Figure 2 decision tree.","exampleAgentPrompt":"Using the Karter 2017 hypoglycemia risk algorithm, classify this T2D patient: they've had 2 prior hypoglycemia-related ED or hospital episodes, 3 ED visits in the past 12 months for any reason, they're on insulin but not sulfonylurea, no severe kidney disease, and they're 70 years old (so age under 77 is true).","exampleUseCases":[{"title":"High-risk insulin user triage","prompt":"I need to classify a type 2 diabetes patient for hypoglycemia risk using the Karter 2017 Figure 2 rule — they've had 3 prior hypoglycemia-related hospitalizations, 5 ED visits in the last 12 months, they're on insulin, not on a sulfonylurea, no severe kidney disease, and they're 65 years old."},{"title":"Low-risk patient safety check","prompt":"Can you run the Karter 2017 hypoglycemia risk score for a T2D patient who has had zero prior hypoglycemia ED or hospital episodes, only 1 ED visit in the past year, is not on insulin or a sulfonylurea, has no dialysis or severe CKD, and is 55 years old?"},{"title":"Sulfonylurea patient with kidney disease","prompt":"Stratify this diabetic patient's 12-month hypoglycemia risk using the Karter 2017 algorithm: 0 prior hypoglycemia-related ED or hospital visits, 2 ED visits in the last 12 months for any reason, not on insulin, on a sulfonylurea, has CKD stage 5 so severe_or_esrd is true, and is 80 years old."}],"resultDescription":"Returns one of three risk categories — high (>5% 12-month probability of hypoglycemia-related ED or hospital use), intermediate (1–5%), or low (<1%) — determined by first-match traversal of the Karter 2017 Figure 2 decision tree. Not a points sum; not a glucose measurement; not a clinical diagnosis or prescription.","failureModes":["Missing required query parameters returns a validation error","Out-of-range integer values (e.g. prior_hypo_ed_hospital_count > 20 or ed_visits_12mo > 50) may return an error or undefined behavior","Non-boolean values for insulin, sulfonylurea, severe_or_esrd, or age_lt_77 cause schema validation failure","Payment failure or missing x402 header results in 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need to apply the specific Karter 2017 Figure 2 branching algorithm for 12-month hypoglycemia-related ED or hospitalization risk in type 2 diabetes patients. Prefer it over generic risk calculators when the clinical context explicitly calls for the Karter 2017 evidence-based rule, especially in care management workflows that need programmatic stratification without building the decision logic themselves.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:58:58.759Z","isFirstParty":false}