{"uid":"cap_LeCbWYvpvlRacWlYAYtl_","slug":"lrinec-score-calculator-4869b1b3","name":"LRINEC Score Calculator","description":"Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.","url":"https://api.magentlab.com/api/calc/lrinec?utm_source=zero.xyz","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":["crp_mg_l","hemoglobin_g_dl","sodium_mmol_l"],"properties":{"wbc_ul":{"type":"number","description":"WBC in cells/µL (same as cells/mm^3). Provide wbc_k_ul or wbc_ul. Range 10-500000. Converted as k/µL = cells/µL / 1000."},"crp_mg_l":{"type":"number","description":"C-reactive protein in mg/L (0-500). ≥150 scores 4; otherwise 0."},"wbc_k_ul":{"type":"number","description":"WBC in 10^3/mm^3 (same as k/µL or 10^9/L). Provide wbc_k_ul or wbc_ul. Range 0.01-500. <15 scores 0; 15-25 scores 1; >25 scores 2."},"glucose_mg_dl":{"type":"number","description":"Plasma glucose in mg/dL (50-1000). Provide this or glucose_mmol_l, not both. Converted as mmol/L = mg/dL / 18.0182. >10 mmol/L scores 1."},"sodium_mmol_l":{"type":"number","description":"Serum sodium in mmol/L (110-160). <135 scores 2; otherwise 0."},"glucose_mmol_l":{"type":"number","description":"Plasma glucose in mmol/L (2.8-55.5). Provide this or glucose_mg_dl, not both. >10 scores 1."},"hemoglobin_g_dl":{"type":"number","description":"Hemoglobin in g/dL (3-22). >13.5 scores 0; 11-13.5 scores 1; <11 scores 2."},"creatinine_mg_dl":{"type":"number","description":"Creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l. Converted as µmol/L = mg/dL × 88.42. >141 µmol/L scores 2."},"creatinine_umol_l":{"type":"number","description":"Creatinine in µmol/L (9-1768). Provide this or creatinine_mg_dl. >141 scores 2."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/lrinec","count":2,"items":[{"score":0,"formula":"lrinec","citation":{"id":"wong-2004","doi":"10.1097/01.ccm.0000131218.22741.d4","title":"The LRINEC (Laboratory Risk Indicator for Necrotizing Fasciitis) score: a tool for distinguishing necrotizing fasciitis from other soft tissue infections","source":"Crit Care Med. 2004;32(7):1535-1541","authors":"Wong CH, Khin LW, Heng KS, Tan KC, Low CO"},"crp_mg_l":20,"wbc_k_ul":8,"max_score":13,"components":[{"value":20,"factor":"crp","points":0,"present":false},{"value":8,"factor":"wbc","points":0,"present":false},{"value":14,"factor":"hemoglobin","points":0,"present":false},{"value":140,"factor":"sodium","points":0,"present":false},{"value":88.42,"factor":"creatinine","points":0,"present":false},{"value":4.994949551009535,"factor":"glucose","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.","sodium_mmol_l":140,"glucose_mmol_l":4.994949551009535,"hemoglobin_g_dl":14,"creatinine_umol_l":88.42,"at_or_above_cutoff":false,"formula_expression":"LRINEC = CRP (>=150 mg/L → 4) + WBC 10^3/mm^3 (<15 → 0; 15-25 → 1; >25 → 2) + hemoglobin g/dL (>13.5 → 0; 11-13.5 → 1; <11 → 2) + sodium (<135 mmol/L → 2) + creatinine (>141 µmol/L → 2) + glucose (>10 mmol/L → 1); max 13; cutoff >=6"},{"score":0,"formula":"lrinec","citation":{"id":"wong-2004","doi":"10.1097/01.ccm.0000131218.22741.d4","title":"The LRINEC (Laboratory Risk Indicator for Necrotizing Fasciitis) score: a tool for distinguishing necrotizing fasciitis from other soft tissue infections","source":"Crit Care Med. 2004;32(7):1535-1541","authors":"Wong CH, Khin LW, Heng KS, Tan KC, Low CO"},"crp_mg_l":20,"wbc_k_ul":8,"max_score":13,"components":[{"value":20,"factor":"crp","points":0,"present":false},{"value":8,"factor":"wbc","points":0,"present":false},{"value":14,"factor":"hemoglobin","points":0,"present":false},{"value":140,"factor":"sodium","points":0,"present":false},{"value":88.42,"factor":"creatinine","points":0,"present":false},{"value":4.994949551009535,"factor":"glucose","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.","sodium_mmol_l":140,"glucose_mmol_l":4.994949551009535,"hemoglobin_g_dl":14,"creatinine_umol_l":88.42,"at_or_above_cutoff":false,"formula_expression":"LRINEC = CRP (>=150 mg/L → 4) + WBC 10^3/mm^3 (<15 → 0; 15-25 → 1; >25 → 2) + hemoglobin g/dL (>13.5 → 0; 11-13.5 → 1; <11 → 2) + sodium (<135 mmol/L → 2) + creatinine (>141 µmol/L → 2) + glucose (>10 mmol/L → 1); max 13; cutoff >=6"}]}},"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_dtAL9XJaOn4YLqLU1HvyT","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":"Computes the LRINEC score (Wong 2004) from laboratory values to assess risk of necrotizing fasciitis","exampleAgentPrompt":"Calculate the LRINEC score for a patient with CRP 200 mg/L, WBC 20k/µL, hemoglobin 10.5 g/dL, sodium 130 mmol/L, creatinine 160 µmol/L, and glucose 12 mmol/L — and tell me whether the score meets the ≥6 cutoff for elevated necrotizing fasciitis risk.","exampleUseCases":[{"title":"ED triage for necrotizing fasciitis","prompt":"I have a patient in the ED with a rapidly spreading soft tissue infection. Labs show CRP 175 mg/L, WBC 27k/µL, hemoglobin 11.8 g/dL, sodium 133 mmol/L, creatinine 1.6 mg/dL, and glucose 185 mg/dL. Can you compute the LRINEC score and tell me if it's above 6?"},{"title":"Surgical consult documentation","prompt":"The surgical consult wants the formal LRINEC score before they come evaluate — patient has CRP 90 mg/L, WBC 14k/µL, hemoglobin 13.0 g/dL, sodium 138 mmol/L, creatinine 95 µmol/L, glucose 9 mmol/L. What's the score and what does it mean?"},{"title":"Clinical decision support integration","prompt":"For this ICU patient with suspected necrotizing fasciitis, run the LRINEC score using CRP 210 mg/L, WBC 31k/µL, hemoglobin 9.5 g/dL, sodium 129 mmol/L, creatinine 2.0 mg/dL, and glucose 230 mg/dL, and flag if the score is ≥6 or ≥8."}],"resultDescription":"Returns the total LRINEC score (0–13), individual component scores for each lab input, and interpretation relative to the ≥6 cutoff for elevated necrotizing fasciitis risk. Includes a citation note that the score does not diagnose NF and a score below cutoff does not exclude disease.","failureModes":["Missing required parameters (crp_mg_l, hemoglobin_g_dl, sodium_mmol_l) returns 400 validation error","Providing both glucose_mg_dl and glucose_mmol_l or both creatinine units simultaneously may cause error or ambiguity","Values outside specified ranges (e.g. CRP >500, hemoglobin <3 g/dL) may be rejected","402 Payment Required if x402 payment header is absent or insufficient","Conflicting WBC units (both wbc_ul and wbc_k_ul provided) may cause unexpected behavior"],"whenToPreferThis":"Use this endpoint when you need a deterministic, citation-backed LRINEC score computed from raw lab values without manual lookup of component thresholds. Prefer it over general LLM reasoning for clinical score calculation where reproducibility and the published Wong 2004 algorithm matter. It supports flexible unit input (mg/dL or µmol/L for creatinine, mg/dL or mmol/L for glucose, cells/µL or k/µL for WBC), making it easy to pass labs as charted without unit conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:51:20.920Z","isFirstParty":false,"canonicalSlug":"lrinec-score-calculator-4869b1b3"}