{
  "x402Version": 2,
  "id": 39541,
  "slug": "39541",
  "resource": "https://api.magentlab.com/api/calc/lrinec",
  "description": "LRINEC (Wong 2004): CRP ≥150 mg/L (4), WBC k/µL (<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. Deterministic published laboratory score with citation; not a diagnosis of necrotizing fasciitis and not an operative decision. A score below cutoff does not exclude disease.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88.42,
                "crp_mg_l": 20,
                "glucose_mg_dl": 90,
                "glucose_mmol_l": 5,
                "hemoglobin_g_dl": 14,
                "sodium_mmol_l": 140,
                "wbc_k_ul": 8,
                "wbc_ul": 8000
              },
              {
                "creatinine_mg_dl": 1,
                "creatinine_umol_l": 88.42,
                "crp_mg_l": 20,
                "glucose_mg_dl": 90,
                "glucose_mmol_l": 5,
                "hemoglobin_g_dl": 14,
                "sodium_mmol_l": 140,
                "wbc_k_ul": 8,
                "wbc_ul": 8000
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "at_or_above_cutoff": false,
                "citation": {
                  "authors": "Wong CH, Khin LW, Heng KS, Tan KC, Low CO",
                  "doi": "10.1097/01.ccm.0000131218.22741.d4",
                  "id": "wong-2004",
                  "source": "Crit Care Med. 2004;32(7):1535-1541",
                  "title": "The LRINEC (Laboratory Risk Indicator for Necrotizing Fasciitis) score: a tool for distinguishing necrotizing fasciitis from other soft tissue infections"
                },
                "components": [
                  {
                    "factor": "crp",
                    "points": 0,
                    "present": false,
                    "value": 20
                  },
                  {
                    "factor": "wbc",
                    "points": 0,
                    "present": false,
                    "value": 8
                  },
                  {
                    "factor": "hemoglobin",
                    "points": 0,
                    "present": false,
                    "value": 14
                  },
                  {
                    "factor": "sodium",
                    "points": 0,
                    "present": false,
                    "value": 140
                  },
                  {
                    "factor": "creatinine",
                    "points": 0,
                    "present": false,
                    "value": 88.42
                  },
                  {
                    "factor": "glucose",
                    "points": 0,
                    "present": false,
                    "value": 4.994949551009535
                  }
                ],
                "creatinine_umol_l": 88.42,
                "crp_mg_l": 20,
                "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.",
                "formula": "lrinec",
                "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",
                "glucose_mmol_l": 4.994949551009535,
                "hemoglobin_g_dl": 14,
                "max_score": 13,
                "score": 0,
                "sodium_mmol_l": 140,
                "wbc_k_ul": 8
              },
              {
                "at_or_above_cutoff": false,
                "citation": {
                  "authors": "Wong CH, Khin LW, Heng KS, Tan KC, Low CO",
                  "doi": "10.1097/01.ccm.0000131218.22741.d4",
                  "id": "wong-2004",
                  "source": "Crit Care Med. 2004;32(7):1535-1541",
                  "title": "The LRINEC (Laboratory Risk Indicator for Necrotizing Fasciitis) score: a tool for distinguishing necrotizing fasciitis from other soft tissue infections"
                },
                "components": [
                  {
                    "factor": "crp",
                    "points": 0,
                    "present": false,
                    "value": 20
                  },
                  {
                    "factor": "wbc",
                    "points": 0,
                    "present": false,
                    "value": 8
                  },
                  {
                    "factor": "hemoglobin",
                    "points": 0,
                    "present": false,
                    "value": 14
                  },
                  {
                    "factor": "sodium",
                    "points": 0,
                    "present": false,
                    "value": 140
                  },
                  {
                    "factor": "creatinine",
                    "points": 0,
                    "present": false,
                    "value": 88.42
                  },
                  {
                    "factor": "glucose",
                    "points": 0,
                    "present": false,
                    "value": 4.994949551009535
                  }
                ],
                "creatinine_umol_l": 88.42,
                "crp_mg_l": 20,
                "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.",
                "formula": "lrinec",
                "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",
                "glucose_mmol_l": 4.994949551009535,
                "hemoglobin_g_dl": 14,
                "max_score": 13,
                "score": 0,
                "sodium_mmol_l": 140,
                "wbc_k_ul": 8
              }
            ],
            "path": "/api/calc/lrinec"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "creatinine_mg_dl": {
                          "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.",
                          "type": "number"
                        },
                        "creatinine_umol_l": {
                          "description": "Creatinine in µmol/L (9-1768). Provide this or creatinine_mg_dl. >141 scores 2.",
                          "type": "number"
                        },
                        "crp_mg_l": {
                          "description": "C-reactive protein in mg/L (0-500). ≥150 scores 4; otherwise 0.",
                          "type": "number"
                        },
                        "glucose_mg_dl": {
                          "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.",
                          "type": "number"
                        },
                        "glucose_mmol_l": {
                          "description": "Plasma glucose in mmol/L (2.8-55.5). Provide this or glucose_mg_dl, not both. >10 scores 1.",
                          "type": "number"
                        },
                        "hemoglobin_g_dl": {
                          "description": "Hemoglobin in g/dL (3-22). >13.5 scores 0; 11-13.5 scores 1; <11 scores 2.",
                          "type": "number"
                        },
                        "sodium_mmol_l": {
                          "description": "Serum sodium in mmol/L (110-160). <135 scores 2; otherwise 0.",
                          "type": "number"
                        },
                        "wbc_k_ul": {
                          "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.",
                          "type": "number"
                        },
                        "wbc_ul": {
                          "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.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "crp_mg_l",
                        "hemoglobin_g_dl",
                        "sodium_mmol_l"
                      ],
                      "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"
      }
    }
  },
  "tags": [
    "lrinec",
    "necrotizing-fasciitis",
    "infection",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:16:11.443Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T14:16:11.316Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88.42,
                  "crp_mg_l": 20,
                  "glucose_mg_dl": 90,
                  "glucose_mmol_l": 5,
                  "hemoglobin_g_dl": 14,
                  "sodium_mmol_l": 140,
                  "wbc_k_ul": 8,
                  "wbc_ul": 8000
                },
                {
                  "creatinine_mg_dl": 1,
                  "creatinine_umol_l": 88.42,
                  "crp_mg_l": 20,
                  "glucose_mg_dl": 90,
                  "glucose_mmol_l": 5,
                  "hemoglobin_g_dl": 14,
                  "sodium_mmol_l": 140,
                  "wbc_k_ul": 8,
                  "wbc_ul": 8000
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "at_or_above_cutoff": false,
                  "citation": {
                    "authors": "Wong CH, Khin LW, Heng KS, Tan KC, Low CO",
                    "doi": "10.1097/01.ccm.0000131218.22741.d4",
                    "id": "wong-2004",
                    "source": "Crit Care Med. 2004;32(7):1535-1541",
                    "title": "The LRINEC (Laboratory Risk Indicator for Necrotizing Fasciitis) score: a tool for distinguishing necrotizing fasciitis from other soft tissue infections"
                  },
                  "components": [
                    {
                      "factor": "crp",
                      "points": 0,
                      "present": false,
                      "value": 20
                    },
                    {
                      "factor": "wbc",
                      "points": 0,
                      "present": false,
                      "value": 8
                    },
                    {
                      "factor": "hemoglobin",
                      "points": 0,
                      "present": false,
                      "value": 14
                    },
                    {
                      "factor": "sodium",
                      "points": 0,
                      "present": false,
                      "value": 140
                    },
                    {
                      "factor": "creatinine",
                      "points": 0,
                      "present": false,
                      "value": 88.42
                    },
                    {
                      "factor": "glucose",
                      "points": 0,
                      "present": false,
                      "value": 4.994949551009535
                    }
                  ],
                  "creatinine_umol_l": 88.42,
                  "crp_mg_l": 20,
                  "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.",
                  "formula": "lrinec",
                  "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",
                  "glucose_mmol_l": 4.994949551009535,
                  "hemoglobin_g_dl": 14,
                  "max_score": 13,
                  "score": 0,
                  "sodium_mmol_l": 140,
                  "wbc_k_ul": 8
                },
                {
                  "at_or_above_cutoff": false,
                  "citation": {
                    "authors": "Wong CH, Khin LW, Heng KS, Tan KC, Low CO",
                    "doi": "10.1097/01.ccm.0000131218.22741.d4",
                    "id": "wong-2004",
                    "source": "Crit Care Med. 2004;32(7):1535-1541",
                    "title": "The LRINEC (Laboratory Risk Indicator for Necrotizing Fasciitis) score: a tool for distinguishing necrotizing fasciitis from other soft tissue infections"
                  },
                  "components": [
                    {
                      "factor": "crp",
                      "points": 0,
                      "present": false,
                      "value": 20
                    },
                    {
                      "factor": "wbc",
                      "points": 0,
                      "present": false,
                      "value": 8
                    },
                    {
                      "factor": "hemoglobin",
                      "points": 0,
                      "present": false,
                      "value": 14
                    },
                    {
                      "factor": "sodium",
                      "points": 0,
                      "present": false,
                      "value": 140
                    },
                    {
                      "factor": "creatinine",
                      "points": 0,
                      "present": false,
                      "value": 88.42
                    },
                    {
                      "factor": "glucose",
                      "points": 0,
                      "present": false,
                      "value": 4.994949551009535
                    }
                  ],
                  "creatinine_umol_l": 88.42,
                  "crp_mg_l": 20,
                  "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.",
                  "formula": "lrinec",
                  "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",
                  "glucose_mmol_l": 4.994949551009535,
                  "hemoglobin_g_dl": 14,
                  "max_score": 13,
                  "score": 0,
                  "sodium_mmol_l": 140,
                  "wbc_k_ul": 8
                }
              ],
              "path": "/api/calc/lrinec"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "creatinine_mg_dl": {
                            "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.",
                            "type": "number"
                          },
                          "creatinine_umol_l": {
                            "description": "Creatinine in µmol/L (9-1768). Provide this or creatinine_mg_dl. >141 scores 2.",
                            "type": "number"
                          },
                          "crp_mg_l": {
                            "description": "C-reactive protein in mg/L (0-500). ≥150 scores 4; otherwise 0.",
                            "type": "number"
                          },
                          "glucose_mg_dl": {
                            "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.",
                            "type": "number"
                          },
                          "glucose_mmol_l": {
                            "description": "Plasma glucose in mmol/L (2.8-55.5). Provide this or glucose_mg_dl, not both. >10 scores 1.",
                            "type": "number"
                          },
                          "hemoglobin_g_dl": {
                            "description": "Hemoglobin in g/dL (3-22). >13.5 scores 0; 11-13.5 scores 1; <11 scores 2.",
                            "type": "number"
                          },
                          "sodium_mmol_l": {
                            "description": "Serum sodium in mmol/L (110-160). <135 scores 2; otherwise 0.",
                            "type": "number"
                          },
                          "wbc_k_ul": {
                            "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.",
                            "type": "number"
                          },
                          "wbc_ul": {
                            "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.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "crp_mg_l",
                          "hemoglobin_g_dl",
                          "sodium_mmol_l"
                        ],
                        "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}